CVE-2022-38148 Blind SQL Injection via GridFieldSortableHeader

High 8.8 Published Updated

Attackers can execute arbitrary SQL commands via the Silverstripe framework, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-38148?

CVE-2022-38148 is a high-severity SQL injection vulnerability in n/a, published on 21 Nov 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Silverstripe silverstripe/framework through 4.11 allows SQL Injection.

Weakness: CWE-89

Which versions are affected by CVE-2022-38148?

4 open source packages ship an affected version, including silverstripe/framework. It affects 1 product.

PackageAffectedFixed in
silverstripe/framework PackagistFrom 4.0.04.10.11
silverstripe/framework PackagistFrom 4.0.04.10.11
silverstripe/framework PackagistFrom 4.11.04.11.14
silverstripe/framework PackagistFrom 4.11.04.11.14

Products include Silverstripe Framework.

How do I fix CVE-2022-38148?

Upgrade silverstripe/framework to a fixed version for your release line: 4.10.11 or 4.11.14.

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 CVE-2022-38148 being exploited?

There is no known exploitation of CVE-2022-38148 in the wild and no public exploit code.

Sources

Also known as GHSA-rr8h-f97q-8p9c.

Is CVE-2022-38148 in your software?

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

Check your SBOMs for free