Advisory

GHSA-r7cj-8hjg-x622

Also known as: CVE-2021-43608

Summary

DBAL 3 SQL Injection Security Vulnerability

Details

We have released a new version Doctrine DBAL 3.1.4 that fixes a critical SQL injection vulnerability in the LIMIT clause generation API provided by the Platform abstraction.

We advise everyone using Doctrine DBAL 3.0.0 up to 3.1.3 to upgrade to 3.1.4 immediately.

The vulnerability can happen when unsanitized input is passed to many APIs in Doctrine DBAL and ORM that ultimately end up calling AbstractPlatform::modifyLimitQuery.

As a workaround you can cast all limit and offset parameters to integers before passing them to Doctrine APIs.

This vulnerability has been assigned CVE-2021-43608.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-11-16 17:25 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

doctrine/dbal

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.1.4 (ecosystem)

Fixed versions

3.1.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences