{"id":"CVE-2026-34406","summary":"APTRS: Privilege Escalation via Mass Assignment of is_superuser in User Edit Endpoint","details":"APTRS (Automated Penetration Testing Reporting System) is a Python and Django-based automated reporting tool designed for penetration testers and security organizations. Prior to version 2.0.1, the edit_user endpoint (POST /api/auth/edituser/\u003cpk\u003e) allows Any user who can reach that endpoint and submit crafted permission to escalate their own account (or any other account) to superuser by including \"is_superuser\": true in the request body. The root cause is that CustomUserSerializer explicitly includes is_superuser in its fields list but omits it from read_only_fields, making it a writable field. The edit_user view performs no additional validation to prevent non-superusers from modifying this field. Once is_superuser is set to true, gaining unrestricted access to all application functionality without requiring re-authentication. This issue has been patched in version 2.0.1.","aliases":["GHSA-gv25-wp4h-9c35"],"modified":"2026-08-12T03:51:29.003262489Z","published":"2026-03-31T21:18:51.205Z","database_specific":{"cwe_ids":["CWE-915"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34406.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/APTRS/APTRS/releases/tag/2.0.1"},{"type":"ADVISORY","url":"https://github.com/APTRS/APTRS/security/advisories/GHSA-gv25-wp4h-9c35"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34406.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34406"},{"type":"FIX","url":"https://github.com/APTRS/APTRS/commit/d1f1b3a5d1953082af8e075712ca29742e900d56"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/aptrs/aptrs","events":[{"introduced":"0"},{"fixed":"50f1158d958a47d7891223169c8ae785debd9b1e"},{"fixed":"d1f1b3a5d1953082af8e075712ca29742e900d56"}],"database_specific":{"cpe":"cpe:2.3:a:aptrs:aptrs:*:*:*:*:*:python:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.0.1"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["2.0","1.0.1","1.0","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34406.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"}]}