Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-43608
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:23 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-43608
Complete source record
{
"id": "f51db7c409adf3734cd490178ad16c960e85238c067e4694238a32228ed45833",
"url": "https://osv.dev/vulnerability/CVE-2021-43608",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-43608",
"summary": "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.",
"evidence": "osv:CVE-2021-43608",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-43608",
"aliases": [
"CVE-2021-43608",
"GHSA-r7cj-8hjg-x622"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/doctrine/dbal",
"type": "GIT",
"events": [
{
"introduced": "ee6d1260d5cc20ec506455a585945d7bdb98662c"
},
{
"fixed": "821b4f01a36ce63ed36c090ea74767b72db367e9"
},
{
"fixed": "9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:doctrine-project:database_abstraction_layer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.1.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"3.1.3",
"3.1.2",
"3.1.1",
"3.1.0",
"3.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43608.json"
}
}
],
"modified": "2026-10-20T10:54:11.868671219Z",
"provider": "osv",
"references": [
"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"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-43608",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384938,
"published_at": "2021-12-09T20:15:07.937+00:00"
}