{"id":"CVE-2026-61738","summary":"SOCFortress CoPilot: Arbitrary Host File Write as Root via Path Traversal in the ScoutSuite GCP Report Upload (RCE)","details":"SOCFortress CoPilot focuses on providing a single pane of glass for all your security operations needs. Prior to 0.1.77, `POST /api/scoutsuite/generate-gcp-report` in `backend/app/integrations/scoutsuite/routes/scoutsuite.py` admits admin and analyst users and validates the uploaded content as `GCPScoutSuiteJSON`, but passes raw `file.filename` from the multipart header to `save_file_to_directory` in `backend/app/integrations/scoutsuite/services/scoutsuite.py`. The writer combines this filename with `scoutsuite-report` using `os.path.join` without sanitization or a resolved-path containment check. A traversal filename therefore writes the supplied JSON outside the intended report directory. In the reported root-running backend, the researcher demonstrated root-owned writes outside that directory and into the application source directory. This permits host-file overwrite subject to the accepted JSON-content constraint and can disrupt application operation; the demonstrated primitive does not establish unrestricted executable contents or unconditional cross-tenant confidentiality loss. Version 0.1.77 removes caller-controlled filenames from the affected route; unrestricted-content and direct-code-execution claims require separate curator reconciliation.","aliases":["GHSA-q3g8-3cf7-744f"],"modified":"2026-11-07T02:30:55.378058300Z","published":"2026-10-30T14:36:10.445Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61738.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-22","CWE-434","CWE-73"]},"references":[{"type":"WEB","url":"https://github.com/socfortress/CoPilot/tree/v0.1.77"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61738.json"},{"type":"ADVISORY","url":"https://github.com/socfortress/CoPilot/security/advisories/GHSA-q3g8-3cf7-744f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61738"},{"type":"FIX","url":"https://github.com/socfortress/CoPilot/commit/1881ef8d28bc7f45ffa88d7ba4fcca7302355508"},{"type":"FIX","url":"https://github.com/socfortress/CoPilot/commit/bfa630b65d554670c7462a32ce6fd4e3cbd0254c"},{"type":"FIX","url":"https://github.com/socfortress/CoPilot/pull/940"},{"type":"FIX","url":"https://github.com/socfortress/CoPilot/pull/941"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/socfortress/copilot","events":[{"introduced":"0"},{"fixed":"624be9677695f87133ccb1ee3d3a029c19ad836f"},{"fixed":"1881ef8d28bc7f45ffa88d7ba4fcca7302355508"},{"fixed":"bfa630b65d554670c7462a32ce6fd4e3cbd0254c"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.1.77"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"1881ef8d28bc7f45ffa88d7ba4fcca7302355508"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"bfa630b65d554670c7462a32ce6fd4e3cbd0254c"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.1.76","v0.1.75","v0.1.74","v0.1.73","v0.1.72","v0.1.71","v0.1.70","v0.1.69","v0.1.68","v0.1.67","v0.1.66","v0.1.65","v0.1.64","v0.1.63","v0.1.62","v0.1.61","v0.1.60","v0.1.59","v0.1.58","v0.1.57","v0.1.56","v0.1.55","v0.1.54","v0.1.53","v0.1.52","v0.1.51","v0.1.50","v0.1.49","v0.1.48","v0.1.47","v0.1.46","v0.1.45","v0.1.44","v0.1.43","v0.1.42","v0.1.41","v0.1.40","v0.1.39","v0.1.38","v0.1.37","v0.1.36","v0.1.35","v0.1.34","v0.1.33","v0.1.32","v0.1.31","v0.1.30","v0.1.29","v0.1.28","v0.1.27","v0.1.26","v0.1.25","v0.1.24","v0.1.23","v0.1.22","v0.1.21","v0.1.20","v0.1.19","v0.1.18","v0.1.17","v0.1.16","v0.1.15","v0.1.14","v0.1.13","v0.1.12","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v.0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0","v0.0.9","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61738.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}