What’s Vulnerable › Vulnerabilities
CVE-2021-43608
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-12-09 · updated 2026-06-17
- Weakness: CWE-89
Description
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.
Affected products
- Doctrine-Project Database Abstraction Layer: from 3.0.0 before 3.1.4 — fixed in 3.1.4
How to fix
Upgrade to a fixed version: Doctrine-Project Database Abstraction Layer 3.1.4. Check the vendor advisory for mitigations.
References
- https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d
- https://github.com/doctrine/dbal/releases
- https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622
- https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html
- https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d
- https://github.com/doctrine/dbal/releases
- https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622
- https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html
Get alerted when CVE-2021-43608 or the next vulnerability affects your stack