GHSA-m2hh-2m46-x6j5 silverstripe/framework may disclose database credentials during connection failure

Not scored Published

Attackers can view database credentials in error messages when SilverStripe runs in dev mode with the mysqli driver.

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

What is GHSA-m2hh-2m46-x6j5?

GHSA-m2hh-2m46-x6j5 is a vulnerability in silverstripe/framework, published on 28 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

When running SilverStripe 3.7 or 4.x in dev mode with the mysqli database driver, there is a potential to disclose the connection details.

We have blacklisted the sensitive parts of the connection information from being included in dev mode stack traces when database errors occur.

Which versions are affected by GHSA-m2hh-2m46-x6j5?

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

PackageAffectedFixed in
silverstripe/framework PackagistFrom 3.7.0-rc13.7.1
silverstripe/framework PackagistFrom 3.7.0-rc13.7.1
silverstripe/framework PackagistFrom 4.0.0-rc14.0.5
silverstripe/framework PackagistFrom 4.0.0-rc14.0.5
silverstripe/framework PackagistFrom 4.1.0-rc14.1.3
silverstripe/framework PackagistFrom 4.1.0-rc14.1.3
2 more packages
silverstripe/framework PackagistFrom 4.2.0-rc14.2.2
silverstripe/framework PackagistFrom 4.2.0-rc14.2.2

How do I fix GHSA-m2hh-2m46-x6j5?

Upgrade silverstripe/framework to a fixed version for your release line: 3.7.1, 4.0.5, 4.1.3 or 4.2.2.

Is GHSA-m2hh-2m46-x6j5 being exploited?

There is no known exploitation of GHSA-m2hh-2m46-x6j5 in the wild and no public exploit code.

Sources

Is GHSA-m2hh-2m46-x6j5 in your software?

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

Check your SBOMs for free