MantisBT: Remote Code Execution via eval() Class Hoisting in adm_config_set.php
High severity. Published 15 July 2026. Update mantisbt/mantisbt to 2.28.4 or later: composer update mantisbt/mantisbt.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| mantisbt/mantisbt (opens in a new tab) | >= 1.3.0, <= 2.28.3 | 2.28.4 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show mantisbt/mantisbt
composer auditAdvisory details
| Severity | High |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-49273 (opens in a new tab) |
| GHSA | GHSA-v84x-qvhg-f36r (opens in a new tab) |
| Weakness | CWE-95 |
What the advisory says
MantisBT 2.28.3 and earlier contains a remote code execution vulnerability in the admin "Manage Configuration" feature (admconfigset.php). When setting a configuration value with a non-string type (integer, float, complex), the value is passed through ConfigParser - Tokenizer, which calls eval() with a return; prefix intended to prevent code execution.
However, PHP hoists function and class declarations at compile time, even past a return statement. An attacker can define a class in the eval()'d code that hijacks a class loaded later via PHP's autoloader, achieving arbitrary code execution.
This vulnerability requires administrator access to the web UI (admconfigset.php).
Source: GHSA-v84x-qvhg-f36r (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- MantisBT: Reflected XSS in admin/install.php via unescaped printf (critical, 15 July 2026)
- MantisBT: SQL Injection via history_order Configuration Value (high, 15 July 2026)
- MantisBT: REST API unauthorized Issue status change (opens in a new tab) (medium, 15 July 2026)
- MantisBT: Stored XSS in print_all_bug_page_word.php (high, 15 July 2026)
- MantisBT: SOAP API Authentication Bypass with Privilege Escalation to Administrator (critical, 15 July 2026)