GHSA-v84x-qvhg-f36r: MantisBT: Remote Code Execution via eval() Class Hoisting in adm_config_set.php
MantisBT versions 1.3.0 up to 2.28.3 contain a remote code execution vulnerability in the admin Manage Configuration feature (adm_config_set.php). The vulnerability arises because the configuration value is evaluated via PHP's eval() with a return prefix, but PHP hoists class declarations even past return statements. An attacker with administrator access to the web UI can define a class that hijacks autoloaded classes, leading to arbitrary code execution as the web server user. The REST API is not affected. A patch fixing this issue is available in version 2.28.4.
AI Analysis
Technical Summary
MantisBT before version 2.28.4 has a remote code execution vulnerability in adm_config_set.php due to unsafe use of eval() in the ConfigParser -> Tokenizer when setting configuration values of non-string types. PHP's compile-time hoisting of class declarations allows an attacker with admin UI access to inject a class definition that hijacks autoloaded classes, resulting in arbitrary code execution as the web server user. The REST API ConfigsSetCommand is not vulnerable as it does not use eval(). This vulnerability requires administrator privileges and no workaround exists. The issue is fixed in version 2.28.4.
Potential Impact
An authenticated administrator user can execute arbitrary code on the server running MantisBT as the web server user (commonly www-data). This can lead to full compromise of the application environment. The vulnerability does not allow unauthenticated remote code execution and does not affect the REST API. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade MantisBT to version 2.28.4 or later, which contains an official fix for this vulnerability. No workarounds are available. Since this is not a cloud service, remediation depends on applying the patch.
GHSA-v84x-qvhg-f36r: MantisBT: Remote Code Execution via eval() Class Hoisting in adm_config_set.php
Description
MantisBT versions 1.3.0 up to 2.28.3 contain a remote code execution vulnerability in the admin Manage Configuration feature (adm_config_set.php). The vulnerability arises because the configuration value is evaluated via PHP's eval() with a return prefix, but PHP hoists class declarations even past return statements. An attacker with administrator access to the web UI can define a class that hijacks autoloaded classes, leading to arbitrary code execution as the web server user. The REST API is not affected. A patch fixing this issue is available in version 2.28.4.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
MantisBT before version 2.28.4 has a remote code execution vulnerability in adm_config_set.php due to unsafe use of eval() in the ConfigParser -> Tokenizer when setting configuration values of non-string types. PHP's compile-time hoisting of class declarations allows an attacker with admin UI access to inject a class definition that hijacks autoloaded classes, resulting in arbitrary code execution as the web server user. The REST API ConfigsSetCommand is not vulnerable as it does not use eval(). This vulnerability requires administrator privileges and no workaround exists. The issue is fixed in version 2.28.4.
Potential Impact
An authenticated administrator user can execute arbitrary code on the server running MantisBT as the web server user (commonly www-data). This can lead to full compromise of the application environment. The vulnerability does not allow unauthenticated remote code execution and does not affect the REST API. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade MantisBT to version 2.28.4 or later, which contains an official fix for this vulnerability. No workarounds are available. Since this is not a cloud service, remediation depends on applying the patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v84x-qvhg-f36r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49273"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a58b51668715ace43db3b14
Added to database: 07/16/2026, 10:40:22 UTC
Last enriched: 07/16/2026, 14:28:04 UTC
Last updated: 07/16/2026, 19:34:48 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.