GHSA-2wvh-87g2-89hr: OpenC3 COSMOS Permissions Bypass Provides User Access Vulnerability

CRITICAL
CVSS 9.6
CWE-250
Published
Advisory Summary

GHSA-2wvh-87g2-89hr is a CRITICAL (CVSS 9.6) permissions bypass provides user access vulnerability (CWE-250: Execution with Unnecessary Privileges) affecting OpenC3 COSMOS libraries in the RubyGems ecosystem. The issue involves permissions bypass provides user access to unassigned administrative actions via script runner tool. Remediation is available by upgrading affected packages to version 7.0.0-rc3.

GHSA-2wvh-87g2-89hr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2wvh-87g2-89hr
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-250: Execution with Unnecessary Privileges
Affected Product OpenC3 COSMOS
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 9.6

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

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

How to Fix GHSA-2wvh-87g2-89hr

To remediate this vulnerability, upgrade all affected OpenC3 COSMOS 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 fixed: 7.0.0-rc3
Upgrade openc3 to 7.0.0-rc3
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

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2wvh-87g2-89hr, inspect your project dependencies for OpenC3 COSMOS:

inspect dependencies for openc3

Analyze the terminal output to locate any version of OpenC3 COSMOS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.0-rc3), 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-250: Execution with Unnecessary Privileges, where the product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses. In OpenC3 COSMOS, 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

**Vulnerability Type: Execution with Unnecessary Privileges Attack type: Authenticated remote Impact: Data disclosure/manipulation, privilege escalation Affected components: The following docker images: • Openc3inc/openc3-COSMOS-script-runner-api** The Script Runner widget allows users to execute Python and Ruby scripts directly from the openc3-COSMOS-script-runner-api container. Because all the docker containers share a network, users can execute specially crafted scripts to bypass the API permissions check and perform administrative actions, including reading and modifying data inside the Redis database, which can be used to read secrets and change COSMOS settings, as well as read and write to the buckets service, which holds configuration, log, and plugin files. These actions are normally only available from the Admin Console or with administrative privileges. Any user with permission to create and run scripts can connect to any service in the docker network. <img width="940" height="473" alt="image" src="https://github.com/user-attachments/assets/bf524163-127d-4349-999b-cefc53d4374d" /> Figure 1: Environment variables, including Redis credentials, found in the Script Runner container A Ruby script is used to expose the Redis username, password, hostname, and port. These credentials might also be found from the source code or through a brute-force attack. <img width="940" height="507" alt="image" src="https://github.com/user-attachments/assets/6d3ccad4-949d-4eeb-a5f8-3aca48bbe815" /> Figure 2: A Python script is used to add data to Redis and retrieve the new data A Python script is then used to create a new entry in the Redis database called `openc3__settings_hacked` with a key of `store_url` and a value of `http://hacked.com`. <img width="940" height="70" alt="image" src="https://github.com/user-attachments/assets/fcef13be-5416-4627-9c95-617a24674ee0" /> Figure 3: The new data found in the Redis database The new entry was successfully added to the Redis database, as is confirmed by using `redis-cli`. The following example shows how an attacker might change the plugin store URL file that is stored in the config bucket. <img width="940" height="640" alt="image" src="https://github.com/user-attachments/assets/681b4dd6-4b6e-4a91-8480-0c9fbff76ede" /> Figure 4: Uploading file to change the plugin store URL setting <img width="940" height="189" alt="image" src="https://github.com/user-attachments/assets/630db0bb-217e-4205-be1d-e9891516b22f" /> Figure 5: The URL file was successfully changed ### Steps To Reproduce 1. Run the following Ruby code to find the Redis credentials: ```ruby puts `env | grep redis` ``` 3. Add the following Python script with the credentials to create a new entry and read it ```python import redis import json import time r = redis.Redis( host = 'openc3-redis', port = 6379, username = 'openc3', password = 'openc3password', decode_responses=True ) # Save a setting setting_data = { 'name': 'store_url', 'data': 'http://hacked.com', 'updated_at': time.time_ns() } r.hset('openc3__settings_hacked','store_url',json.dumps(setting_data)) print(r.hget('openc3__settings_hacked','store_url')) ``` ### Recommendations • Limit the permissions of the script runner API to prevent lower level users from performing administrative actions

GHSA-2wvh-87g2-89hr Affected OpenC3 COSMOS Versions

1 component(s)
Fixed Versions:
7.0.0-rc3
Product / Package Ecosystem Affected Versions Fixed Version
openc3
RubyGems
< 7.0.0-rc3
7.0.0-rc3

References

Frequently Asked Questions

What is GHSA-2wvh-87g2-89hr?
GHSA-2wvh-87g2-89hr is a security vulnerability in OpenC3 COSMOS involving Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool under CWE-250: Execution with Unnecessary Privileges.
Which OpenC3 COSMOS versions are affected?
Affected versions include releases prior to 7.0.0-rc3 across affected packages: openc3.
What version fixes GHSA-2wvh-87g2-89hr?
Upgrading to 7.0.0-rc3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openc3 affected?
Yes, openc3 is affected in releases prior to 7.0.0-rc3. Upgrade your dependency to 7.0.0-rc3 or later.
What is the CVSS score of GHSA-2wvh-87g2-89hr?
GHSA-2wvh-87g2-89hr has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with GHSA-2wvh-87g2-89hr?
GHSA-2wvh-87g2-89hr is classified under CWE-250: Execution with Unnecessary Privileges (The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.).
How can I check RubyGems dependencies for GHSA-2wvh-87g2-89hr?
Run the dependency tree command: 'inspect dependencies for openc3'. 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-2wvh-87g2-89hr",
  "modified" : "2026-04-23T14:17:53Z",
  "published" : "2026-04-23T14:17:53Z",
  "aliases" : [ ],
  "summary" : "OpenC3 COSMOS: Permissions Bypass Provides User Access to Unassigned Administrative Actions via Script Runner Tool",
  "details" : "**Vulnerability Type: Execution with Unnecessary Privileges\nAttack type: Authenticated remote\nImpact: Data disclosure/manipulation, privilege escalation\nAffected components: The following docker images:\n•\tOpenc3inc/openc3-COSMOS-script-runner-api**\n\nThe Script Runner widget allows users to execute Python and Ruby scripts directly from the openc3-COSMOS-script-runner-api container. Because all the docker containers share a network, users can execute specially crafted scripts to bypass the API permissions check and perform administrative actions, including reading and modifying data inside the Redis database, which can be used to read secrets and change COSMOS settings, as well as read and write to the buckets service, which holds configuration, log, and plugin files. These actions are normally only available from the Admin Console or with administrative privileges. Any user with permission to create and run scripts can connect to any service in the docker network. \n \n<img width=\"940\" height=\"473\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bf524163-127d-4349-999b-cefc53d4374d\" />\n\nFigure 1: Environment variables, including Redis credentials, found in the Script Runner container\nA Ruby script is used to expose the Redis username, password, hostname, and port. These credentials might also be found from the source code or through a brute-force attack.\n \n<img width=\"940\" height=\"507\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6d3ccad4-949d-4eeb-a5f8-3aca48bbe815\" />\n\nFigure 2: A Python script is used to add data to Redis and retrieve the new data\nA Python script is then used to create a new entry in the Redis database called `openc3__settings_hacked` with a key of `store_url` and a value of `http://hacked.com`.\n \n<img width=\"940\" height=\"70\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fcef13be-5416-4627-9c95-617a24674ee0\" />\n\nFigure 3: The new data found in the Redis database\nThe new entry was successfully added to the Redis database, as is confirmed by using `redis-cli`. \nThe following example shows how an attacker might change the plugin store URL file that is stored in the config bucket.\n \n<img width=\"940\" height=\"640\" alt=\"image\" src=\"https://github.com/user-attachments/assets/681b4dd6-4b6e-4a91-8480-0c9fbff76ede\" />\n\nFigure 4: Uploading file to change the plugin store URL setting\n \n<img width=\"940\" height=\"189\" alt=\"image\" src=\"https://github.com/user-attachments/assets/630db0bb-217e-4205-be1d-e9891516b22f\" />\n\nFigure 5: The URL file was successfully changed\n###\tSteps To Reproduce\n1.\tRun the following Ruby code to find the Redis credentials:\n```ruby\nputs `env | grep redis`\n```\n3.\tAdd the following Python script with the credentials to create a new entry and read it\n```python\nimport redis\nimport json\nimport time\n\nr = redis.Redis(\n    host = 'openc3-redis',\n    port = 6379,\n    username = 'openc3', \n    password = 'openc3password',  \n    decode_responses=True\n)\n\n# Save a setting\nsetting_data = {\n    'name': 'store_url',\n    'data': 'http://hacked.com',\n    'updated_at': time.time_ns()\n}\nr.hset('openc3__settings_hacked','store_url',json.dumps(setting_data))\nprint(r.hget('openc3__settings_hacked','store_url'))\n```\n\n###\tRecommendations\n•\tLimit the permissions of the script runner API to prevent lower level users from performing administrative actions",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "openc3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.0-rc3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OpenC3/cosmos/security/advisories/GHSA-2wvh-87g2-89hr"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OpenC3/cosmos"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-250" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-23T14:17:53Z",
    "nvd_published_at" : null
  }
}