GHSA-m2hh-2m46-x6j5 silverstripe/framework may disclose database credentials during connection failure
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.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 3.7.0-rc1 | 3.7.1 |
silverstripe/framework Packagist | From 3.7.0-rc1 | 3.7.1 |
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.5 |
silverstripe/framework Packagist | From 4.0.0-rc1 | 4.0.5 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.3 |
silverstripe/framework Packagist | From 4.1.0-rc1 | 4.1.3 |
2 more packages
silverstripe/framework Packagist | From 4.2.0-rc1 | 4.2.2 |
silverstripe/framework Packagist | From 4.2.0-rc1 | 4.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.