Vulnerability DatabaseGHSA-6q9v-4hq6-5m67

GHSA-6q9v-4hq6-5m67
PHP vulnerability analysis and mitigation

Overview

A critical SQL injection vulnerability was discovered in Doctrine ORM, affecting versions 2.0.0-2.0.2 and 1.0.0-1.2.3. The vulnerability was identified on September 25, 2011, and immediate updates were released with versions 1.2.4 and 2.0.3 to address this security issue. The vulnerability specifically affected PostgreSQL and DB2 Dialects in the database abstraction layer (GitHub Advisory, Doctrine Blog).

Technical details

The vulnerability was found in the Doctrine\DBAL\Platforms\AbstractPlatform::modifyLimitQuery() function, which failed to properly cast input values for limit and offset parameters to integers. This oversight allowed potential execution of malicious SQL when these parameters were passed directly from request variables without proper integer type casting. The issue also affected higher-level ORM functionality, specifically the Doctrine\ORM\Query::setFirstResult() and Doctrine\ORM\Query::setMaxResults() methods (Doctrine Blog).

Impact

The vulnerability could allow malicious actors to execute arbitrary SQL commands through the affected limit and offset parameters, potentially compromising the security of applications using the affected Doctrine versions. This was particularly critical for applications that passed request variables directly to these methods without proper input validation (GitHub Advisory).

Exploitability

The vulnerability could be exploited when request variables were passed directly into Doctrine 2 without proper integer casting, specifically through the limit and offset parameters in query functions. The issue was particularly relevant for PostgreSQL and DB2 Dialects users (Doctrine Blog).

Mitigation and workarounds

Users were strongly urged to update immediately to versions 1.2.4 or 2.0.3, which contained the security fix. The fix involved marking the modifyLimitQuery() method as final and introducing a new doModifyLimitQuery() method for extending functionality. Developers who previously extended the modifyLimitQuery() method needed to update their code to override doModifyLimitQuery() instead (Doctrine Blog).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-wg23-69c2-gjc8CRITICAL9.1
  • PHP logoPHP
  • craftcms/cms
NoYesAug 07, 2026
CVE-2026-71488HIGH7.5
  • PHP logoPHP
  • commonmark
NoYesAug 06, 2026
CVE-2026-62996MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 2026
CVE-2026-62992MEDIUM6.9
  • PHP logoPHP
  • smarty/smarty
NoYesAug 07, 2026
CVE-2026-71478MEDIUM6.1
  • PHP logoPHP
  • commonmark
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management