BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
mantisbt/mantisbt (opens in a new tab)>= 1.3.0, <= 2.28.32.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 audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-49273 (opens in a new tab)
GHSAGHSA-v84x-qvhg-f36r (opens in a new tab)
WeaknessCWE-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

All Composer security advisories