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

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-23T14:12:02.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-v529-vhwc-wfc5, PYSEC-2026-2244
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OpenC3 cosmos: >= 6.7.0, < 7.0.0-rc3; from 6.7.0 before 7.0.0; 7.0.0
- openc3 (RubyGems): from 6.7.0 before 7.0.0-rc3
- openc3 (PyPI): from 6.7.0 before 7.0.0

## Every score

- GitHub_M: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 9.6 Critical `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> (exploit, evidence, vendor-advisory, web)
- <https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415> (fix, patch, web)
- <https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42087> (advisory)
- <https://github.com/OpenC3/cosmos> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/openc3/CVE-2026-42087.yml> (web)

## Sources

- CVE List: [CVE-2026-42087](https://www.cve.org/CVERecord?id=CVE-2026-42087), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-v529-vhwc-wfc5](https://github.com/advisories/GHSA-v529-vhwc-wfc5), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-42087](https://nvd.nist.gov/vuln/detail/CVE-2026-42087), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2244](https://osv.dev/vulnerability/PYSEC-2026-2244), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42087 · Whole record: https://cve.day/CVE-2026-42087.json · Rebuilt by cve.day 2026-11-25T22:59:20.541Z
