CVE-2017-18049 SilverStripe CSV Excel Macro Injection

Medium 5.5 Published Updated

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.

PackageAffectedFixed in
silverstripe/framework PackagistAll versions3.5.6
silverstripe/framework PackagistAll versions3.5.6
silverstripe/framework PackagistFrom 3.6.03.6.3
silverstripe/framework PackagistFrom 3.6.03.6.3
silverstripe/framework PackagistFrom 4.0.04.0.1
silverstripe/framework PackagistFrom 4.0.04.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.

All Silverstripe Silverstripe vulnerabilities

Sources

Also known as GHSA-2jvj-mhf2-g99w.

Is CVE-2017-18049 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free