Vulnerabilities in pkg:gem/openc3-cosmos-tool-iframe

PACKAGE
Advisory Identifier: GHSA-p67j-387g-75wc
Advisory Summary

CVE-2025-28384 is a CRITICAL (CVSS 9.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Openc3 cosmos tool iframe libraries in the RubyGems ecosystem. The issue involves openc3 cosmos vulnerable to directory traversal via /script-api/scripts/ endpoint. Remediation is available in the latest vendor maintenance releases.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/openc3-cosmos-tool-iframe

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/openc3-cosmos-tool-iframe. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p67j-387g-75wc CVE-2025-28384 CRITICAL OpenC3 COSMOS Vulnerable to Directory Traversal via /script-api/scripts/ endpoint
GHSA-cf8v-5mrc-jv7f CVE-2025-28382 HIGH OpenC3 COSMOS Vulnerable to Directory Traversal via openc3-api/tables endpoint

CVE-2025-28384 at a Glance

CVE Identifier CVE-2025-28384
GHSA Identifier GHSA-p67j-387g-75wc
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Openc3 cosmos tool iframe
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-28384

To remediate this vulnerability, upgrade all affected Openc3 cosmos tool iframe dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

openc3-cosmos-tool-iframe fixed: Latest secure release
Upgrade openc3-cosmos-tool-iframe to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for openc3-cosmos-tool-iframe

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-28384, inspect your project dependencies for Openc3 cosmos tool iframe:

inspect dependencies for openc3-cosmos-tool-iframe

Analyze the terminal output to locate any version of Openc3 cosmos tool iframe in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Openc3 cosmos tool iframe, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue in the /script-api/scripts/ endpoint of OpenC3 COSMOS 6.0.0 allows attackers to execute a directory traversal.

CVE-2025-28384 Affected Openc3 cosmos tool iframe Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
openc3-cosmos-tool-iframe
RubyGems
6.0.0
All 1 versions
6.0.0
None specified

References

Frequently Asked Questions

What is CVE-2025-28384?
CVE-2025-28384 is a security vulnerability in Openc3 cosmos tool iframe involving OpenC3 COSMOS Vulnerable to Directory Traversal via /script-api/scripts/ endpoint under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Openc3 cosmos tool iframe versions are affected?
Affected versions include releases prior to current release patches across affected packages: openc3-cosmos-tool-iframe.
What version fixes CVE-2025-28384?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is openc3-cosmos-tool-iframe affected?
Yes, openc3-cosmos-tool-iframe is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-28384?
CVE-2025-28384 has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-28384?
CVE-2025-28384 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check RubyGems dependencies for CVE-2025-28384?
Run the dependency tree command: 'inspect dependencies for openc3-cosmos-tool-iframe'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p67j-387g-75wc",
  "modified" : "2025-10-27T20:00:51Z",
  "published" : "2025-06-13T15:30:31Z",
  "aliases" : [ "CVE-2025-28384" ],
  "summary" : "OpenC3 COSMOS Vulnerable to Directory Traversal via /script-api/scripts/ endpoint",
  "details" : "An issue in the /script-api/scripts/ endpoint of OpenC3 COSMOS 6.0.0 allows attackers to execute a directory traversal.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "openc3-cosmos-tool-iframe"
    },
    "versions" : [ "6.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-28384"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenC3/cosmos/pull/1828"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenC3/cosmos/pull/1828/commits/fc7e11310a7cdf9f1939886e1b29009db4d4b718"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenC3/cosmos"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OpenC3/cosmos/releases/tag/v6.1.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3-cosmos-tool-iframe/CVE-2025-28384.yml"
  }, {
    "type" : "WEB",
    "url" : "https://openc3.com"
  }, {
    "type" : "WEB",
    "url" : "https://visionspace.com/openc3-cosmos-a-security-assessment-of-an-open-source-mission-framework"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-16T13:04:16Z",
    "nvd_published_at" : "2025-06-13T14:15:20Z"
  }
}