{"id":"CVE-2021-43608","published":"2021-12-09T19:02:59Z","modified":"2024-08-04T04:03:08Z","title":"Doctrine DBAL 3.x before 3.1.4 allows SQL Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"Doctrine DBAL 3.x before 3.1.4 allows SQL Injection. The escaping of offset and length inputs to the generation of a LIMIT clause was not probably cast to an integer, allowing SQL injection to take place if application developers passed unescaped user input to the DBAL QueryBuilder or any other API that ultimately uses the AbstractPlatform::modifyLimitQuery API.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02447,"percentile":0.84743,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d","tags":["x_refsource_MISC"]},{"url":"https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/doctrine/dbal/releases","tags":["x_refsource_MISC"]},{"url":"https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.95}]},"affected":[{"ecosystem":"Packagist","package":"doctrine/dbal","vulnerableRanges":[">=3.0.0, <3.1.4"],"patched":["3.1.4"],"from":["GHSA-r7cj-8hjg-x622"],"provenance":"source"}],"summary":{"text":"Doctrine DBAL 3.x versions before 3.1.4 contain a flaw in how offset and length values are handled when generating a LIMIT clause, where these inputs are not properly cast to integers. An attacker can inject SQL when application developers pass unescaped user input to the DBAL QueryBuilder or another API that relies on AbstractPlatform::modifyLimitQuery.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:42Z"},"euvd":{"id":"EUVD-2021-2388","exploited":false,"provenance":"source"}}