MEDIUM6.5
GHSA-m2hh-2m46-x6j5
silverstripe/framework may disclose database credentials during connection failure
Quick fix
GHSA-m2hh-2m46-x6j5 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.7.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
3.7.0-rc1Fixed in: 3.7.1Fix
composer require silverstripe/framework:^3.7.1Packagist/silverstripe/framework
Introduced in:
4.0.0-rc1Fixed in: 4.0.5Fix
composer require silverstripe/framework:^4.0.5Packagist/silverstripe/framework
Introduced in:
4.1.0-rc1Fixed in: 4.1.3Fix
composer require silverstripe/framework:^4.1.3Packagist/silverstripe/framework
Introduced in:
4.2.0-rc1Fixed in: 4.2.2Fix
composer require silverstripe/framework:^4.2.2References
- https://github.com/silverstripe/silverstripe-framework/commit/214e28127f5425b61c15b69f884afdbad31133c2[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/54251952387394d72b221e797a80edfbf9a973ee[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/9aabe0a0f7a061d87cc92923f8811e14d7a032f5[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-018-1.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/ss-2018-018[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/framework"]}'