CVE-2021-43257 MantisBT CSV Injection unprivileged user access in csv_export.php
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.
| Package | Affected | Fixed in |
|---|---|---|
mantisbt/mantisbt Packagist | All versions | 2.25.3 |
mantisbt/mantisbt Packagist | All versions | 2.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.
Other vulnerabilities in Mantisbt Mantisbt
- CVE-2019-15074 MantisBT allows cross-site scripting (XSS) via crafted filename
- CVE-2026-30849 MantisBT SOAP API has an authentication bypass vulnerability on MySQL
- CVE-2025-47776 MantisBT: Authentication bypass for some passwords due to PHP type juggling
- CVE-2017-7615 MantisBT allows arbitrary password reset
- CVE-2026-33517 MantisBT Vulnerable to Stored HTML Injection in Tag Delete Confirmation
Sources
Also known as GHSA-rg8f-5p7x-m6wv.