From b79a1e4cc7adab37c9d022e6d08937d70180c2b7 Mon Sep 17 00:00:00 2001
From: SAWITRI SAENGCHAN
<263185432+sawitrisaengchan08-cell@users.noreply.github.com>
Date: Fri, 1 May 2026 21:52:16 +0700
Subject: [PATCH 1/2] Improve GHSA-2wvh-87g2-89hr
---
.../04/GHSA-2wvh-87g2-89hr/GHSA-2wvh-87g2-89hr.json | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/advisories/github-reviewed/2026/04/GHSA-2wvh-87g2-89hr/GHSA-2wvh-87g2-89hr.json b/advisories/github-reviewed/2026/04/GHSA-2wvh-87g2-89hr/GHSA-2wvh-87g2-89hr.json
index dbb7387bb8c6f..950320e34cbf3 100644
--- a/advisories/github-reviewed/2026/04/GHSA-2wvh-87g2-89hr/GHSA-2wvh-87g2-89hr.json
+++ b/advisories/github-reviewed/2026/04/GHSA-2wvh-87g2-89hr/GHSA-2wvh-87g2-89hr.json
@@ -1,17 +1,12 @@
{
"schema_version": "1.4.0",
"id": "GHSA-2wvh-87g2-89hr",
- "modified": "2026-04-23T14:17:53Z",
+ "modified": "2026-04-23T14:17:55Z",
"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
\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
\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
\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
\n\nFigure 4: Uploading file to change the plugin store URL setting\n \n
\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"
- }
- ],
+ "severity": [],
"affected": [
{
"package": {
@@ -47,7 +42,7 @@
"cwe_ids": [
"CWE-250"
],
- "severity": "CRITICAL",
+ "severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2026-04-23T14:17:53Z",
"nvd_published_at": null
From 61fb31e3b70bf55a3be55c41c1186fd3da5f87ef Mon Sep 17 00:00:00 2001
From: SAWITRI SAENGCHAN
<263185432+sawitrisaengchan08-cell@users.noreply.github.com>
Date: Fri, 1 May 2026 21:52:21 +0700
Subject: [PATCH 2/2] Improve GHSA-2wvh-87g2-89hr