CVE-2021-43608: doctrine-project database_abstraction_layer SQL Injection
Vulnerability summary
CVE-2021-43608 is a critical (CVSS 9.8) SQL Injection vulnerability in doctrine-project database_abstraction_layer. EPSS estimates a 2.45% chance of exploitation in the next 30 days, higher than 84.2% of scored vulnerabilities.
Timeline
- 09-12-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.45%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
+0.08 pp
From 2.37% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Doctrine-project1 product
- database_abstraction_layer≥ 3.0.0, < 3.1.4
Ubuntu1 product
- php-doctrine-dbalAll versions (No fix recorded)
2 vendors · 2 products
References
6 links- github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4dX Refsource MISCPatchThird Party Advisory
- github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622X Refsource CONFIRMREPORTThird Party Advisory