CVE-2021-43608 DBAL 3 SQL Injection Security Vulnerability
CriticalCVSS 9.8
EPSS 2.4%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- PHPUbuntuDebian
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.
Upgrade path
3 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/php-doctrine-dbal(Ubuntu 16.04) | = 2.4.4-2; = 2.4.5-1; = 2.4.5-1ubuntu1; = 2.4.5-2 +2 more | No fix listed | No fix yet |
| doctrine-project database abstraction layer | >= 3.0.0, < 3.1.4 | 3.1.4 | Fixed |
| doctrine/dbal(Packagist) | = 3.0.0; = 3.1.0; = 3.1.1; = 3.1.2 +2 more | 3.1.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| doctrine/dbal(Packagist) | >= 3.0.0, < 3.1.4 | 3.1.4 |
| doctrine/dbal(Packagist) | = 3.0.0 | No fix listed |
| doctrine/dbal(Packagist) | = 3.1.0 | No fix listed |
| doctrine/dbal(Packagist) | = 3.1.1 | No fix listed |
| doctrine/dbal(Packagist) | = 3.1.2 | No fix listed |
| doctrine/dbal(Packagist) | = 3.1.3 | No fix listed |
| doctrine-project database abstraction layer | >= 3.0.0, < 3.1.4 | 3.1.4 |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | = 2.4.4-2 | No fix listed |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | = 2.4.5-1 | No fix listed |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | = 2.4.5-1ubuntu1 | No fix listed |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | = 2.4.5-2 | No fix listed |
| ubuntu/php-doctrine-dbal(Ubuntu:16.04) | = 2.4.5-2build1 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com exploit
- github.com
- github.com release-notes third-party-advisory
- www.doctrine-project.org vendor-advisory
- Debian Security Tracker CVE-2021-43608 vendor-advisory
- github.com
- ubuntu.com issue-tracking
- www.cve.org issue-tracking