CVE-2026-47142: SQL Injection in MantisBT history_order Configuration
CVE-2026-47142 is a SQL injection vulnerability in MantisBT affecting core/history_api.php. The flaw arises from insufficient neutralization of attacker-controlled SQL syntax in the history_order configuration value, which is incorporated into an ORDER BY clause. An administrator can set a crafted value that is later processed when users view issues containing history entries, causing the application to execute unintended SQL against the bug tracker database.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can expose sensitive data stored in the MantisBT database, including credentials, password hashes, API tokens, and private issue information. Because the malicious configuration is triggered when users access affected bug history views, the vulnerability can be used as a stored attack path. In deployments where the backing MySQL account has the FILE privilege, the SQL injection may also be escalated to remote code execution by writing attacker-controlled PHP content to a web-accessible location.
Mitigation
If you can’t patch tonight, do this now.
No vendor workaround short of upgrading is available. As a temporary risk-reduction measure, restrict administrative access, review and sanitize the history_order configuration value, and ensure the database account used by MantisBT does not have unnecessary privileges such as MySQL FILE; however, these measures do not replace patching.
Remediation
Patch, then assume compromise.
Upgrade MantisBT to version 2.28.4 or later, which contains the fix for this vulnerability.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-47142 exploited in the wild?
- As of Jul 16, 2026, Mallory has no reports of CVE-2026-47142 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-47142?
- As of Jul 16, 2026, Mallory has found no public exploit for CVE-2026-47142.
- Is there a patch for CVE-2026-47142?
- Upgrade MantisBT to version 2.28.4 or later, which contains the fix for this vulnerability.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.