GHSA-xx4r-5265-48j6 silverstripe/framework SQL injection in full text search

Not scored Published

Unescaped 'start' parameter in SilverStripe fulltext search allows SQL injection, enabling attackers to read or modify database contents.

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

What is GHSA-xx4r-5265-48j6?

GHSA-xx4r-5265-48j6 is a SQL injection vulnerability in silverstripe/framework, published on 27 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When performing a fulltext search in SilverStripe 4.0.0 the 'start' querystring parameter is never escaped safely. This exposes a possible SQL injection vulnerability.

The issue exists in 3.5 and 3.6 but is less vulnerable, as SearchForm sanitises these variables prior to passing to mysql.

Which versions are affected by GHSA-xx4r-5265-48j6?

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

PackageAffectedFixed in
silverstripe/framework PackagistFrom 3.5.0-rc13.5.6
silverstripe/framework PackagistFrom 3.5.0-rc13.5.6
silverstripe/framework PackagistFrom 3.6.0-rc13.6.3
silverstripe/framework PackagistFrom 3.6.0-rc13.6.3
silverstripe/framework PackagistFrom 4.0.0-rc14.0.1
silverstripe/framework PackagistFrom 4.0.0-rc14.0.1

How do I fix GHSA-xx4r-5265-48j6?

Upgrade silverstripe/framework to a fixed version for your release line: 3.5.6, 3.6.3 or 4.0.1.

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-xx4r-5265-48j6 being exploited?

There is no known exploitation of GHSA-xx4r-5265-48j6 in the wild and no public exploit code.

Sources

Is GHSA-xx4r-5265-48j6 in your software?

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

Check your SBOMs for free