GHSA-mqjc-x563-c9q8 silverstripe/framework CSV Excel Macro Injection

Not scored Published

Attackers can inject malicious macros into CSV exports, leading to code execution when victims open the file in spreadsheet software.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-mqjc-x563-c9q8?

GHSA-mqjc-x563-c9q8 is a code injection vulnerability in silverstripe/framework, published on 27 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In the CSV export feature of the CMS it's possible for the output to contain macros and scripts, which if imported without sanitisation into software (including Microsoft Excel) may be executed.

In order to safeguard against this threat all potentially executable cell values exported from CSV will be prepended with a literal tab character.

Which versions are affected by GHSA-mqjc-x563-c9q8?

6 open source packages ship an affected version, including silverstripe/framework.

PackageAffectedFixed in
silverstripe/framework PackagistFrom 3.5.0-rc13.5.6
silverstripe/framework PackagistFrom 3.5.0-rc13.5.6
silverstripe/framework PackagistFrom 3.6.0-rc13.6.3
silverstripe/framework PackagistFrom 3.6.0-rc13.6.3
silverstripe/framework PackagistFrom 4.0.0-rc14.0.1
silverstripe/framework PackagistFrom 4.0.0-rc14.0.1

How do I fix GHSA-mqjc-x563-c9q8?

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 GHSA-mqjc-x563-c9q8 being exploited?

There is no known exploitation of GHSA-mqjc-x563-c9q8 in the wild and no public exploit code.

Sources

Is GHSA-mqjc-x563-c9q8 in your software?

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

Check your SBOMs for free