MantisBT versions 2.28.3 and earlier contain a SQL injection vulnerability in core/history_api.php. The vulnerability arises because the history_order configuration value is used directly in a SQL ORDER BY clause without sanitization or validation. An administrator can set this value via the web UI or REST API, enabling injection that triggers when any user views a bug with history entries. This can lead to sensitive data exposure and, with certain MySQL privileges, remote code execution.