HIGH7.8
GHSA-rg8f-5p7x-m6wv
MantisBT CSV Injection unprivileged user access in csv_export.php
Quick fix
GHSA-rg8f-5p7x-m6wv — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^2.25.3Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/mantisbt/mantisbt
Introduced in:
0Fixed in: 2.25.3Fix
composer require mantisbt/mantisbt:^2.25.3References
- https://nvd.nist.gov/vuln/detail/CVE-2021-43257[ADVISORY]
- https://github.com/mantisbt/mantisbt/commit/7f4534c723e3162b8784aebda4836324041dbc3e[WEB]
- https://github.com/mantisbt/mantisbt/commit/99eb8d41cbacc703f88807898dcc9ac55eec0f15[WEB]
- https://github.com/mantisbt/mantisbt[PACKAGE]
- https://www.mantisbt.org/bugs/view.php?id=29130[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/mantisbt/mantisbt"]}'