CVE-2026-42087 OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base
CriticalCVSS 9.6
EPSS 0.32%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| openc3 cosmos | = 7.0.0-rc1; = 7.0.0-rc2; = >= 6.7.0, < 7.0.0-rc3; >= 6.7.0, < 7.0.0 | 7.0.0 | Fixed |
| pypi openc3(PyPI) | = 6.7.0; = 6.8.0; = 6.8.1; = 6.9.0 +12 more | 7.0.0 | Fixed |
| rubygems openc3(RubyGems) | = 6.7.0; = 6.8.0; = 6.8.1; = 6.9.0 +10 more | 7.0.0-rc3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openc3 cosmos | = >= 6.7.0, < 7.0.0-rc3 | No fix listed |
| pypi openc3(PyPI) | >= 6.7.0, < 7.0.0 | 7.0.0 |
| pypi openc3(PyPI) | = 6.10.0 | No fix listed |
| pypi openc3(PyPI) | = 6.10.1 | No fix listed |
| pypi openc3(PyPI) | = 6.10.2 | No fix listed |
| pypi openc3(PyPI) | = 6.10.3 | No fix listed |
| pypi openc3(PyPI) | = 6.10.4 | No fix listed |
| pypi openc3(PyPI) | = 6.10.5 | No fix listed |
| pypi openc3(PyPI) | = 6.10.6 | No fix listed |
| pypi openc3(PyPI) | = 6.7.0 | No fix listed |
| pypi openc3(PyPI) | = 6.8.0 | No fix listed |
| pypi openc3(PyPI) | = 6.8.1 | No fix listed |
| pypi openc3(PyPI) | = 6.9.0 | No fix listed |
| pypi openc3(PyPI) | = 6.9.1 | No fix listed |
| pypi openc3(PyPI) | = 6.9.2 | No fix listed |
| pypi openc3(PyPI) | = 7.0.0rc2 | No fix listed |
| pypi openc3(PyPI) | = 7.0.0rc3 | No fix listed |
| rubygems openc3(RubyGems) | >= 6.7.0, < 7.0.0-rc3 | 7.0.0-rc3 |
| rubygems openc3(RubyGems) | = 6.10.0 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.1 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.2 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.3 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.4 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.5 | No fix listed |
| rubygems openc3(RubyGems) | = 6.10.6 | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems openc3(RubyGems) | = 6.7.0 | No fix listed |
| rubygems openc3(RubyGems) | = 6.8.0 | No fix listed |
| rubygems openc3(RubyGems) | = 6.8.1 | No fix listed |
| rubygems openc3(RubyGems) | = 6.9.0 | No fix listed |
| rubygems openc3(RubyGems) | = 6.9.1 | No fix listed |
| rubygems openc3(RubyGems) | = 6.9.2 | No fix listed |
| openc3 cosmos | >= 6.7.0, < 7.0.0 | 7.0.0 |
| openc3 cosmos | = 7.0.0-rc1 | No fix listed |
| openc3 cosmos | = 7.0.0-rc2 | No fix listed |
References
- https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5 exploit vendor-advisory
- https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415 patch
- https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3 release-notes vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com exploit
- github.com