CVE-2021-43608

NameCVE-2021-43608
DescriptionDoctrine 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-doctrine-dbal (PTS)buster2.9.2-1fixed
bullseye2.12.1-2fixed
bookworm3.6.1+dfsg-1fixed
sid, trixie3.8.3+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-doctrine-dbalsource(unstable)(not affected)

Notes

- php-doctrine-dbal <not-affected> (Vulnerable code introduced in 3.0.0)
Bug was introduced in 3.0.0, and fixed in experimental in 3.1.4+dfsg-1 and
only present in experimental suite.
https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622

Search for package or bug name: Reporting problems