CVE-2021-43257 MantisBT CSV Injection unprivileged user access in csv_export.php

High 7.8 Published Updated

An attacker can inject malicious formulas into CSV exports, leading to code execution or data disclosure when victims open the file in 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-2021-43257?

CVE-2021-43257 is a high-severity code injection vulnerability in Mantisbt Mantisbt, published on 14 Apr 2022. 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

Lack of Neutralization of Formula Elements in the CSV API of MantisBT before 2.25.3 allows an unprivileged attacker to execute code or gain access to information when a user opens the csv_export.php generated CSV file in Excel.

Weakness: CWE-1236

Which versions are affected by CVE-2021-43257?

2 open source packages ship an affected version, including mantisbt/mantisbt. It affects 1 product.

PackageAffectedFixed in
mantisbt/mantisbt PackagistAll versions2.25.3
mantisbt/mantisbt PackagistAll versions2.25.3

Products include Mantisbt Mantisbt.

How do I fix CVE-2021-43257?

Upgrade mantisbt/mantisbt to 2.25.3 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-43257 being exploited?

There is no known exploitation of CVE-2021-43257 in the wild and no public exploit code.

All Mantisbt Mantisbt vulnerabilities

Sources

Also known as GHSA-rg8f-5p7x-m6wv.

Is CVE-2021-43257 in your software?

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

Check your SBOMs for free