CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2021-43608

PUBLISHEDOfficial status check: verifiedCVSS unknown: unknown · unknown

PHP packages · CVE-2021-43608

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 2.447% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssunknownunknownunknown
epssverified2026-11-19T16:04:31.971ZFIRST EPSS
patchesverified2026-11-19T12:52:34.220ZOSV
affectedverified2026-11-19T12:56:13.568ZCVE Program
lifecycleverified2026-11-19T12:56:13.568ZCVE Program

Affected versions and configuration

n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "n/a",
      "product": "n/a",
      "versions": [
        {
          "status": "affected",
          "version": "n/a"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/doctrine/dbal/releases",
          "tags": [
            "x_refsource_MISC",
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622",
          "tags": [
            "x_refsource_CONFIRM",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-04T04:03:08.429Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-r7cj-8hjg-x622",
  "aliases": [
    "CVE-2021-43608"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "3.0.0"
            },
            {
              "fixed": "3.1.4"
            }
          ]
        }
      ],
      "package": {
        "name": "doctrine/dbal",
        "purl": "pkg:composer/doctrine/dbal",
        "ecosystem": "Packagist"
      },
      "versions": [
        "3.0.0",
        "3.1.0",
        "3.1.1",
        "3.1.2",
        "3.1.3"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-r7cj-8hjg-x622/GHSA-r7cj-8hjg-x622.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/doctrine/dbal/security/advisories/GHSA-r7cj-8hjg-x622",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-43608",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/doctrine/dbal/commit/9dcfa4cb6c03250b78a84737ba7ceb82f4b7ba4d",
      "type": "WEB"
    },
    {
      "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/doctrine/dbal/CVE-2021-43608.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/doctrine/dbal",
      "type": "WEB"
    },
    {
      "url": "https://github.com/doctrine/dbal/releases",
      "type": "WEB"
    },
    {
      "url": "https://www.doctrine-project.org/2021/11/11/dbal3-vulnerability-fixed.html",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-89"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "nvd_published_at": "2021-12-09T20:15:00Z",
    "github_reviewed_at": "2021-11-15T22:34:32Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packagedoctrine/dbalNot a distribution channel3.1.4Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history