CVE-2017-18049 SilverStripe CSV Excel Macro Injection
Attackers can inject malicious macros or scripts into CSV exports, leading to code execution when victims import the file into applications like Microsoft Excel.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-18049?
CVE-2017-18049 is a medium-severity code injection vulnerability in Silverstripe Silverstripe, published on 23 Jan 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-74
Which versions are affected by CVE-2017-18049?
6 open source packages ship an affected version, including silverstripe/framework. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | All versions | 3.5.6 |
silverstripe/framework Packagist | All versions | 3.5.6 |
silverstripe/framework Packagist | From 3.6.0 | 3.6.3 |
silverstripe/framework Packagist | From 3.6.0 | 3.6.3 |
silverstripe/framework Packagist | From 4.0.0 | 4.0.1 |
silverstripe/framework Packagist | From 4.0.0 | 4.0.1 |
Products include Silverstripe Silverstripe.
How do I fix CVE-2017-18049?
Upgrade silverstripe/framework to a fixed version for your release line: 3.5.6, 3.6.3 or 4.0.1.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2017-18049 being exploited?
There is no known exploitation of CVE-2017-18049 in the wild and no public exploit code.
Other vulnerabilities in Silverstripe Silverstripe
Sources
Also known as GHSA-2jvj-mhf2-g99w.