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.
References (4)
Core 4
Core References
Patch, Third Party Advisory x_refsource_misc
https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d
Vendor Advisory x_refsource_misc
https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/doctrine/dbal/releases
Third Party Advisory x_refsource_confirm
https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622
Scores
CVSS v3
9.8
EPSS
0.0237
EPSS Percentile
81.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-89
Status
published
Products (2)
doctrine/dbal
3.0.0 - 3.1.4Packagist
doctrine-project/database_abstraction_layer
3.0.0 - 3.1.4
Published
Dec 09, 2021
Tracked Since
Feb 18, 2026