GHSA-m2hh-2m46-x6j5: Silverstripe/framework Silverstripe/framework May Disclose Database Credentials Vulnerability
MODERATEGHSA-m2hh-2m46-x6j5 is a MODERATE (CVSS 6.5) silverstripe/framework may disclose database credentials vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe/framework may disclose database credentials during connection failure. Remediation is available by upgrading affected packages to version 3.7.1, 4.0.5, 4.1.3, 4.2.2.
GHSA-m2hh-2m46-x6j5 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix GHSA-m2hh-2m46-x6j5
To remediate this vulnerability, upgrade all affected Silverstripe/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade silverstripe/framework to 3.7.1
Upgrade silverstripe/framework to 4.0.5
Upgrade silverstripe/framework to 4.1.3
Upgrade silverstripe/framework to 4.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/framework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-m2hh-2m46-x6j5, inspect your project dependencies for Silverstripe/framework:
inspect dependencies for silverstripe/framework
Analyze the terminal output to locate any version of Silverstripe/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.7.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In Silverstripe/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-m2hh-2m46-x6j5 Affected Silverstripe/framework Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
≥ 3.7.0-rc1
< 3.7.1
|
3.7.1
|
|
silverstripe/framework
|
Packagist |
≥ 4.0.0-rc1
< 4.0.5
|
4.0.5
|
|
silverstripe/framework
|
Packagist |
≥ 4.1.0-rc1
< 4.1.3
|
4.1.3
|
|
silverstripe/framework
|
Packagist |
≥ 4.2.0-rc1
< 4.2.2
|
4.2.2
|
References
Frequently Asked Questions
What is GHSA-m2hh-2m46-x6j5?
Which Silverstripe/framework versions are affected?
What version fixes GHSA-m2hh-2m46-x6j5?
Is silverstripe/framework affected?
What is the CVSS score of GHSA-m2hh-2m46-x6j5?
What CWE is associated with GHSA-m2hh-2m46-x6j5?
How can I check Packagist dependencies for GHSA-m2hh-2m46-x6j5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m2hh-2m46-x6j5",
"modified" : "2024-05-28T12:53:45Z",
"published" : "2024-05-28T12:53:45Z",
"aliases" : [ ],
"summary" : "silverstripe/framework may disclose database credentials during connection failure",
"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.\n\nWe have blacklisted the sensitive parts of the connection information from being included in dev mode stack traces when database errors occur.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.0-rc1"
}, {
"fixed" : "3.7.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-rc1"
}, {
"fixed" : "4.0.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0-rc1"
}, {
"fixed" : "4.1.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0-rc1"
}, {
"fixed" : "4.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/214e28127f5425b61c15b69f884afdbad31133c2"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/54251952387394d72b221e797a80edfbf9a973ee"
}, {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/commit/9aabe0a0f7a061d87cc92923f8811e14d7a032f5"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2018-018-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-framework"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2018-018"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-209" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-28T12:53:45Z",
"nvd_published_at" : null
}
}