# MantisBT: SQL Injection via history_order Configuration Value

High severity, published 2026-07-15. Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.

Canonical URL: https://buzzphp.com/security/ghsa-mw6p-33vw-46cc · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-15 |
| Updated | 2026-07-15 |
| CVE | [CVE-2026-47142](https://nvd.nist.gov/vuln/detail/CVE-2026-47142) |
| GHSA | [GHSA-mw6p-33vw-46cc](https://github.com/advisories/GHSA-mw6p-33vw-46cc) |
| Weakness | CWE-89 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mantisbt/mantisbt | <= 2.28.3 | 2.28.4 |

## What to do

Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.

Check which version you run with `composer show mantisbt/mantisbt`, and every affected package with `composer audit`.

## About this advisory

MantisBT 2.28.3 and earlier versions contains a SQL injection vulnerability in core/historyapi.php. The historyorder 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 (admconfigset.php) or the REST API (PATCH /api/rest/config). The injected SQL then executes whenever any user views a bug with history entries.



## Links

- [GHSA-mw6p-33vw-46cc on GitHub](https://github.com/advisories/GHSA-mw6p-33vw-46cc)
- [CVE-2026-47142 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-47142)
- [All Composer security advisories](https://buzzphp.com/security)
