CVE-2017-18049: Silverstripe/framework SilverStripe CSV Excel Macro Injection Vulnerability
MODERATECVE-2017-18049 is a MODERATE (CVSS 5.5) silverstripe csv excel macro injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe csv excel macro injection. Remediation is available by upgrading affected packages to version 3.5.6, 3.6.3, 4.0.1.
CVE-2017-18049 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2017-18049
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.5.6
Upgrade silverstripe/framework to 3.6.3
Upgrade silverstripe/framework to 4.0.1
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-2017-18049, 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.5.6), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. 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-2017-18049 Affected Silverstripe/framework Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
< 3.5.6
|
3.5.6
|
|
silverstripe/framework
|
Packagist |
≥ 3.6.0
< 3.6.3
|
3.6.3
|
|
silverstripe/framework
|
Packagist |
≥ 4.0.0
< 4.0.1
|
4.0.1
|
References
Frequently Asked Questions
What is CVE-2017-18049?
Which Silverstripe/framework versions are affected?
What version fixes CVE-2017-18049?
Is silverstripe/framework affected?
What is the CVSS score of CVE-2017-18049?
What CWE is associated with CVE-2017-18049?
How can I check Packagist dependencies for CVE-2017-18049?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2jvj-mhf2-g99w",
"modified" : "2024-04-25T21:06:31Z",
"published" : "2022-05-14T03:45:17Z",
"aliases" : [ "CVE-2017-18049" ],
"summary" : "SilverStripe CSV Excel Macro Injection",
"details" : "In the CSV export feature of SilverStripe before 3.5.6, 3.6.x before 3.6.3, and 4.x before 4.0.1, it's possible for the output to contain macros and scripts, which may be executed if imported without sanitization into common software (including Microsoft Excel). For example, the CSV data may contain untrusted user input from the \"First Name\" field of a user's /myprofile page.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.5.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.6.0"
}, {
"fixed" : "3.6.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-18049"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-framework"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/43396"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2017-007"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-74" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T21:06:31Z",
"nvd_published_at" : "2018-01-23T06:29:00Z"
}
}