Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-43608 EUVD-2021-2388GHSA-r7cj-8hjg-x622

DBAL 3 SQL Injection Security Vulnerability

Published Dec 9, 2021 · Updated Aug 4, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS php-doctrine-dbal No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist doctrine/dbal >= 3.0.0, < 3.1.4 3.1.4 GHSA-r7cj-8hjg-x622

References