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.