VDB
Sign up
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.1

Details

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.1
Fixcomposer require silverstripe/framework:^3.7.1
Packagist/silverstripe/framework
Introduced in: 4.0.0-rc1Fixed in: 4.0.5
Fixcomposer require silverstripe/framework:^4.0.5
Packagist/silverstripe/framework
Introduced in: 4.1.0-rc1Fixed in: 4.1.3
Fixcomposer require silverstripe/framework:^4.1.3
Packagist/silverstripe/framework
Introduced in: 4.2.0-rc1Fixed in: 4.2.2
Fixcomposer require silverstripe/framework:^4.2.2

References

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"]}'