high

CVE-2026-47142

Packagist · mantisbt/mantisbt

Summary

MantisBT: SQL Injection via history_order Configuration Value

Severity
high
CWE
CWE-89
Also known as
GHSA-mw6p-33vw-46cc
Published
2026-07-15
Updated
2026-07-15

Advisory details

MantisBT 2.28.3 and earlier versions contains a SQL injection vulnerability in core/history_api.php. The history_order configuration value is concatenated directly into a SQL ORDER BY clause without any sanitisation, parameterization, or validation against a whitelist.

An administrator can set this configuration value via the web UI (adm_config_set.php) or the REST API (PATCH /api/rest/config). The injected SQL then executes whenever any user views a bug with history entries.

Impact

Patches

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Resources

Credits

McCaulay Hudson (@McCaulay) of watchTowr

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.