GHSA-vjrg-wpm8-rhrw doctrine/orm Regression in Query Parenthesis can have Security Implications

Not scored Published

Improper handling of case-insensitive checks in WHERE clauses may allow SQL injection, potentially exposing or modifying database data.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Not stated
Victim action needed
Not stated
Fix
Available

What is GHSA-vjrg-wpm8-rhrw?

GHSA-vjrg-wpm8-rhrw is a SQL injection vulnerability in doctrine/orm, published on 15 May 2024.

Official description

An issue identified in doctrine/orm project related to statement in Where-Clause were not wrapped in brackets due to improper hadandling of case insensitive check.

Which versions are affected by GHSA-vjrg-wpm8-rhrw?

2 open source packages ship an affected version, including doctrine/orm.

PackageAffectedFixed in
doctrine/orm PackagistFrom 2.8.32.8.4
doctrine/orm PackagistFrom 2.8.32.8.4

How do I fix GHSA-vjrg-wpm8-rhrw?

Upgrade doctrine/orm to 2.8.4 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is GHSA-vjrg-wpm8-rhrw being exploited?

There is no known exploitation of GHSA-vjrg-wpm8-rhrw in the wild and no public exploit code.

Sources

Is GHSA-vjrg-wpm8-rhrw in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free