# MantisBT: Remote Code Execution via eval() Class Hoisting in adm_config_set.php

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-v84x-qvhg-f36r · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-15 |
| Updated | 2026-07-15 |
| CVE | [CVE-2026-49273](https://nvd.nist.gov/vuln/detail/CVE-2026-49273) |
| GHSA | [GHSA-v84x-qvhg-f36r](https://github.com/advisories/GHSA-v84x-qvhg-f36r) |
| Weakness | CWE-95 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mantisbt/mantisbt | >= 1.3.0, <= 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 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).

## Links

- [GHSA-v84x-qvhg-f36r on GitHub](https://github.com/advisories/GHSA-v84x-qvhg-f36r)
- [CVE-2026-49273 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-49273)
- [All Composer security advisories](https://buzzphp.com/security)
