{"items":[{"id":"NVI-00002789","kind":"vulnerability","title":"MantisBT: SQL Injection via history_order Configuration Value","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-mw6p-33vw-46cc","CVE-2026-47142"],"plain_summary":"OSV carries this publisher advisory for mantisbt/mantisbt. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.28.4 for mantisbt/mantisbt. Confirm the publisher’s latest guidance.","source_ids":["sr-26e0cf13f906d6487751cf45f09fa7ec"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-26e0cf13f906d6487751cf45f09fa7ec","url":"https://github.com/advisories/GHSA-mw6p-33vw-46cc","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-mw6p-33vw-46cc","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.983Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-26e0cf13f906d6487751cf45f09fa7ec"],"technology":"mantisbt/mantisbt","known_exclusions":[],"conditions_summary":"MantisBT 2.28.3 and earlier versions contains a SQL injection vulnerability in core/history_api.php. The history_order configuration value is concatenated directly into a SQL ORDER BY clause without any sanitisation, parameterization, or validation against a whitelist.\n\nAn administrator can set this configuration value via the web UI (adm_config_set.php) or the REST API (PATCH /api/rest/config). The injected SQL then executes whenever any user views a bug with history entries.\n\n### Impact\n- Sensitive data extraction from the entire bugtracker database including user credentials (cookie_string, password hashes), API tokens, and private issue data\n- With MySQL FILE privilege: full RCE via INTO OUTFILE writing a PHP webshell to the web root\n- The admin plants the payload once; any authenticated user viewing a bug with history triggers the injection\n\n### Patches\n- https://github.com/mantisbt/mantisbt/commit/6ad20bea2e01f33c6e4170775ae4d9dbe2c75325\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### Resources\n- https://mantisbt.org/bugs/view.php?id=37123\n\n### Credits\nMcCaulay Hudson (@McCaulay) of watchTowr","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 2.28.4"]}],"null_published_at":"2026-10-31T22:12:38.452Z","source_updated_at":"2026-07-15T16:56:40.831Z","source_disclosed_at":"2026-07-15T16:38:22.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:30.983Z"}],"next_cursor":null,"snapshot_revision":"42594"}