GHSA-265q-222x-52m6 silverstripe/framework has potential SQL Injection vulnerability in PostgreSQL database connector

Not scored Published

SilverStripe framework allows potential SQL injection via PostgreSQL adapter, requiring patched table name escaping to prevent data exposure.

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

What is GHSA-265q-222x-52m6?

GHSA-265q-222x-52m6 is a SQL injection vulnerability in silverstripe/framework, published on 28 May 2024. It can be exploited over the network.

Official description

A potential SQL injection vulnerability was identified by using the silverstripe/postgresql database adapter. While unlikely to be exploitable, we have patched silverstripe/framework to ensure that table names are safely escaped before being passed to database adapters or user code.

Which versions are affected by GHSA-265q-222x-52m6?

6 open source packages ship an affected version, including silverstripe/framework.

PackageAffectedFixed in
silverstripe/framework PackagistFrom 4.0.0-rc14.0.6
silverstripe/framework PackagistFrom 4.0.0-rc14.0.6
silverstripe/framework PackagistFrom 4.1.0-rc14.1.4
silverstripe/framework PackagistFrom 4.1.0-rc14.1.4
silverstripe/framework PackagistFrom 4.2.0-rc14.2.3
silverstripe/framework PackagistFrom 4.2.0-rc14.2.3

How do I fix GHSA-265q-222x-52m6?

Upgrade silverstripe/framework to a fixed version for your release line: 4.0.6, 4.1.4 or 4.2.3.

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-265q-222x-52m6 being exploited?

There is no known exploitation of GHSA-265q-222x-52m6 in the wild and no public exploit code.

Sources

Is GHSA-265q-222x-52m6 in your software?

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

Check your SBOMs for free