CVE-2019-12245: Silverstripe/framework Lack Of Access Control On Vulnerability
MODERATECVE-2019-12245 is a MODERATE (CVSS 5.3) lack of access control on vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves lack of access control on upoaded files. Remediation is available by upgrading affected packages to version 3.6.8, 3.7.4, 4.3.6, 4.4.4, 1.3.5, 1.4.4.
CVE-2019-12245 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2019-12245
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.6.8
Upgrade silverstripe/framework to 3.7.4
Upgrade silverstripe/framework to 4.3.6
Upgrade silverstripe/framework to 4.4.4
Upgrade silverstripe/assets to 1.3.5
Upgrade silverstripe/assets to 1.4.4
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 CVE-2019-12245, 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.6.8), 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-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. 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
CVE-2019-12245 Affected Silverstripe/framework Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
< 3.6.8
|
3.6.8
|
|
silverstripe/framework
|
Packagist |
≥ 3.7.0
< 3.7.4
|
3.7.4
|
|
silverstripe/framework
|
Packagist |
≥ 4.0.0
< 4.3.6
|
4.3.6
|
|
silverstripe/framework
|
Packagist |
≥ 4.4.0
< 4.4.4
|
4.4.4
|
|
silverstripe/assets
|
Packagist |
≥ 1.0.0
< 1.3.5
|
1.3.5
|
|
silverstripe/assets
|
Packagist |
≥ 1.4.0
< 1.4.4
|
1.4.4
|
References
Frequently Asked Questions
What is CVE-2019-12245?
Which Silverstripe/framework versions are affected?
What version fixes CVE-2019-12245?
Is silverstripe/framework affected?
Is silverstripe/assets affected?
What is the CVSS score of CVE-2019-12245?
What CWE is associated with CVE-2019-12245?
How can I check Packagist dependencies for CVE-2019-12245?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jvx5-rm6q-gx7p",
"modified" : "2021-08-18T22:29:09Z",
"published" : "2019-11-12T23:01:50Z",
"aliases" : [ "CVE-2019-12245" ],
"summary" : "Lack of access control on upoaded files",
"details" : "SilverStripe through 4.3.3 has incorrect access control for protected files uploaded via Upload::loadIntoFile(). An attacker may be able to guess a filename in silverstripe/assets via the AssetControlExtension.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.6.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.7.0"
}, {
"fixed" : "3.7.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.3.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.4.0"
}, {
"fixed" : "4.4.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/assets"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.3.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/assets"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-12245"
}, {
"type" : "WEB",
"url" : "https://forum.silverstripe.org/c/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2019-12245.yaml"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/CVE-2019-12245"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/cve-2019-12245"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-732" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-11-12T22:50:39Z",
"nvd_published_at" : null
}
}