Live threats

All CVEs / Doctrine-project

CVE-2021-43608Doctrine-project Database Abstraction Layer

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Database Abstraction Layer.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
doctrine-projectdatabase_abstraction_layer≥ 3.0.0 < 3.1.4

Official sources

References

Links published by the sources. Open them with care.