{"id":"GHSA-pw5x-2mf9-3xc8","aliases":["CVE-2026-42071"],"title":"MantisBT has a Private Bugnote Attachment Content Leak via REST API","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"A missing authorization check in MantisBT's file visibility function allows any authenticated user (REPORTER+) to download attachments on private bugnotes they should not be able to access, via the REST API endpoint GET /api/rest/issues/{id}/files and SOAP API mc_issue_attachment_get endpoint.\n\n### Impact\n- REPORTER (access level 25) can view file attachments that were uploaded to private bugnotes by DEVELOPER/MANAGER/ADMIN users\n- Private bugnotes are intended for internal developer discussion; their attachments (logs, screenshots, patches) should be equally protected\n- The web UI is NOT affected — it filters through bugnote_get_all_visible_bugnotes() first\n\n### Patches\n- 029d9d203d9e4ae96b3e59d552fa7395cc1e5071\n\n### Workarounds\nNone\n\n### Credits\nThanks to the following security researchers for independently discovering and responsibly reporting the issue.\n- Vishal Shukla \n- Tristan Madani (@TristanInSec) from Talence Security \n- Tang Cheuk Hei (@siunam321) \n\nThis advisory's contents was largely copied from Tristan's well-written report.","severity":"high","score":7.2,"published":"2026-05-11T19:39:43.000Z","modified":"2026-09-10T03:51:06.756Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"mantisbt/mantisbt","sources":[{"name":"OSV · GHSA-pw5x-2mf9-3xc8","url":"https://osv.dev/vulnerability/GHSA-pw5x-2mf9-3xc8"}],"ranges":[{"events":[{"introduced":"2.23.0"},{"fixed":"2.28.2"}],"type":"ECOSYSTEM"}],"versions":["2.23.0","2.23.1","2.24.0","2.24.1","2.24.2","2.24.3","2.24.4","2.24.5","2.25.0","2.25.1","2.25.2","2.25.3","2.25.4","2.25.5","2.25.6","2.25.7","2.25.8","2.26.0","2.26.1","2.26.2","2.26.3","2.26.4","2.27.0","2.27.1","2.27.2","2.27.3","2.28.0","2.28.1"],"fixed":["2.28.2"]}],"sourceAffected":[],"references":["https://github.com/mantisbt/mantisbt/security/advisories/GHSA-pw5x-2mf9-3xc8","https://nvd.nist.gov/vuln/detail/CVE-2026-42071","https://github.com/mantisbt/mantisbt/commit/029d9d203d9e4ae96b3e59d552fa7395cc1e5071","https://github.com/advisories/GHSA-xjmx-cprh-646r","https://github.com/mantisbt/mantisbt","https://mantisbt.org/bugs/view.php?id=27039","https://mantisbt.org/bugs/view.php?id=36985","https://mantisbt.org/bugs/view.php?id=37092"],"sources":[{"name":"OSV","id":"GHSA-pw5x-2mf9-3xc8","modified":"2026-09-10T03:51:06.756563086Z","url":"https://osv.dev/vulnerability/GHSA-pw5x-2mf9-3xc8"}],"assessments":[{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N","score":7.2}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-29T01:45:31.656Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}