CVE-2021-43608:
DBAL 3 SQL Injection Security Vulnerability
9.8
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
11/16/2021
Updated
2/6/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
doctrine/dbal | composer | >= 3.0.0, < 3.1.4 | 3.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability was explicitly fixed in AbstractPlatform::modifyLimitQuery by adding integer casting (commit 9dcfa4c). This method is the core handler for LIMIT clause generation, and the lack of input validation here directly enabled SQL injection. The CVE description and patch both specifically reference this method as the vulnerability source. The affected version range (3.0.0-3.1.3) matches the method's existence in those releases.