GHSA-76w8-mqx4-wjrf Doctrine DBAL SQL injection possibility

Not scored Published

SQL injection vulnerability in Doctrine DBAL identifier quoting allows attackers to manipulate database queries when user input is used.

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

What is GHSA-76w8-mqx4-wjrf?

GHSA-76w8-mqx4-wjrf is a SQL injection vulnerability in doctrine/dbal, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The identifier quoting in Doctrine DBAL has a potential security problem when user-input is passed into this function, making the security aspect of this functionality obsolete. If you make use of AbstractPlatform::quoteIdentifier() or Doctrine::quoteIdentifier() please upgrade immediately. The ORM itself does not use identifier quoting in combination with user-input, however we still urge everyone to update to the latest version of DBAL.

Which versions are affected by GHSA-76w8-mqx4-wjrf?

4 open source packages ship an affected version, including doctrine/dbal.

PackageAffectedFixed in
doctrine/dbal PackagistFrom 2.0.02.0.8
doctrine/dbal PackagistFrom 2.0.02.0.8
doctrine/dbal PackagistFrom 2.1.02.1.2
doctrine/dbal PackagistFrom 2.1.02.1.2

How do I fix GHSA-76w8-mqx4-wjrf?

Upgrade doctrine/dbal to a fixed version for your release line: 2.0.8 or 2.1.2.

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-76w8-mqx4-wjrf being exploited?

There is no known exploitation of GHSA-76w8-mqx4-wjrf in the wild and no public exploit code.

Sources

Is GHSA-76w8-mqx4-wjrf in your software?

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

Check your SBOMs for free