CVE-2026-61738

SOCFortress CoPilot: Arbitrary Host File Write as Root via Path Traversal in the ScoutSuite GCP Report Upload (RCE)

Published Oct 30, 2026 CVSS 3.1 · 10 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Prior to version 0.1.77, the endpoint POST /api/scoutsuite/generate-gcp-report allowed admin and analyst users to upload a GCPScoutSuiteJSON file. The filename supplied in the multipart header was concatenated with the base report directory using os.path.join without sanitization or a resolved-path containment check. This flaw enabled a path-traversal vector that permitted an attacker to write a JSON file outside the intended directory, including into the application source tree when the backend ran as root. The resulting host-file overwrite could disrupt application operation and, if an attacker supplies an executable payload, might lead to remote code execution.

Affected Systems

All releases of SOCFortress CoPilot before version 0.1.77 contain the vulnerability. Administrators and analysts who can access the vulnerable endpoint are affected.

Risk and Exploitability

The CVSS score for this vulnerability is 10, indicating a maximum severity. No EPSS score is publicly available and the issue is not listed in the CISA KEV catalog. Exploitation requires remote access to the backend with credentials that carry the admin or analyst role, and the full impact materialises only when the backend is executed with root privileges. Given the high score and potential for root-level file overwrite, the risk remains maximal for systems that have not applied the 0.1.77 fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SOCFortress CoPilot to version 0.1.77 or later, which removes the filename-based vulnerability
  • Configure the CoPilot backend service to run under a non-privileged user instead of root to limit damage from file writes
  • If an upgrade is not yet possible, disable or tightly restrict the /api/scoutsuite/generate-gcp-report endpoint for all users, or enforce strict path validation or path resolution checks before writing files

Generated by OpenCVE AI on October 30, 2026 at 16:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Socfortress
Socfortress copilot
Vendors & Products Socfortress
Socfortress copilot
Type Values Removed Values Added
Description 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.
Title SOCFortress CoPilot: Arbitrary Host File Write as Root via Path Traversal in the ScoutSuite GCP Report Upload (RCE)
Weaknesses CWE-22
CWE-434
CWE-73
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 9:37 PM
Reserved
Jul 10, 2026, 6:59 PM
Status
Deferred
Published
Oct 30, 2026, 3:16 PM
Modified
Nov 5, 2026, 10:18 PM