Vulnerability · Published May 4, 2026 · Assigned by GitHub_M
CVE-2026-42087OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base
Critical 9.6
In plain English
A critical-severity SQL injection in cosmos from OpenC3. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | openc3 | 7.0.0 | PYSEC-2026-2244 |
| RubyGems | openc3 | 7.0.0-rc3 | GHSA-v529-vhwc-wfc5 |
Affected products (as reported)
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
References
- https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5 x_refsource_CONFIRM
- https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415 x_refsource_MISC
- https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3 x_refsource_MISC