CVE-2025-28384

9.1 CRITICAL

📋 TL;DR

This directory traversal vulnerability in OpenC3 COSMOS allows attackers to access files outside the intended directory via the /script-api/scripts/ endpoint. Attackers could read sensitive system files, potentially leading to information disclosure or further exploitation. All OpenC3 COSMOS deployments before version 6.1.0 are affected.

💻 Affected Systems

Products:
  • OpenC3 COSMOS
Versions: All versions before 6.1.0
Operating Systems: All supported platforms
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the default configuration of affected versions.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise through reading sensitive configuration files, credentials, or executing arbitrary code by accessing critical system files.

🟠

Likely Case

Information disclosure of sensitive configuration files, scripts, or credentials stored in accessible directories.

🟢

If Mitigated

Limited impact with proper network segmentation and access controls preventing external access to vulnerable endpoints.

🌐 Internet-Facing: HIGH - If the endpoint is exposed to the internet, attackers can exploit this without authentication.
🏢 Internal Only: MEDIUM - Internal attackers or compromised internal systems could exploit this vulnerability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Directory traversal vulnerabilities typically have low exploitation complexity and can be exploited with simple HTTP requests.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 6.1.0

Vendor Advisory: https://github.com/OpenC3/cosmos/releases/tag/v6.1.0

Restart Required: Yes

Instructions:

1. Backup your current configuration and data. 2. Update OpenC3 COSMOS to version 6.1.0 or later. 3. Restart the COSMOS services. 4. Verify the update was successful.

🔧 Temporary Workarounds

Network Access Restriction

all

Restrict network access to the /script-api/scripts/ endpoint using firewall rules or network segmentation.

Web Application Firewall

all

Implement WAF rules to block directory traversal patterns in requests to the vulnerable endpoint.

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate the COSMOS instance from untrusted networks.
  • Deploy a reverse proxy or WAF with rules to detect and block directory traversal attempts.

🔍 How to Verify

Check if Vulnerable:

Check if your OpenC3 COSMOS version is below 6.1.0. Test by attempting to access files outside the intended directory via the /script-api/scripts/ endpoint.

Check Version:

Check the COSMOS version in the web interface or configuration files, or run: docker images | grep openc3/cosmos

Verify Fix Applied:

After updating to 6.1.0 or later, verify that directory traversal attempts to the /script-api/scripts/ endpoint are properly blocked.

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests to /script-api/scripts/ containing '../' or similar traversal patterns
  • Access denied errors for traversal attempts
  • Unusual file access patterns

Network Indicators:

  • HTTP requests with directory traversal sequences in URL parameters or paths
  • Multiple failed attempts to access restricted paths

SIEM Query:

source="web_logs" AND (url_path="/script-api/scripts/" AND (url_query="*../*" OR url_path="*../*"))

🔗 References

📤 Share & Export