CVE-2021-43608Doctrine-project Database Abstraction Layer
Critical 9.8 No auth needed
Follow: this CVE · Doctrine-project · Doctrine-project Database Abstraction Layer We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 85
- Auth required
- No
- Published
- Dec 9, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Database Abstraction Layer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | doctrine/dbal |
≥ 3.0.0 < 3.1.4 |
3.1.4 |
composer require "doctrine/dbal:^3.1.4" |
Per OSV / GitHub Advisories (GHSA-r7cj-8hjg-x622). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| doctrine-project | database_abstraction_layer | ≥ 3.0.0 < 3.1.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- www.doctrine-project.org Vendor Advisory