{"cve":"CVE-2026-42087","nvd":{"published":"2026-05-04T18:16:30.830","modified":"2026-10-26T19:10:00.163","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","score":9.6},"cwes":["CWE-89"],"references":["https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415","https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3","https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5","https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5"],"products":["openc3:cosmos"],"source":"nvd","synced_at":"2026-10-26T19:31:02.781428341+00:00"},"epss":{"cve":"CVE-2026-42087","score":0.00323,"percentile":0.25073,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-v529-vhwc-wfc5","url":"https://osv.dev/vulnerability/GHSA-v529-vhwc-wfc5","summary":"OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database","modified":"2026-07-13T07:26:28.641096018Z","packages":[{"ecosystem":"RubyGems","name":"openc3","purl":"pkg:gem/openc3","ranges":[">=6.7.0 <7.0.0-rc3"],"fixed":["7.0.0-rc3"]}]},{"id":"PYSEC-2026-2244","url":"https://osv.dev/vulnerability/PYSEC-2026-2244","summary":"","modified":"2026-07-13T07:15:38.980182568Z","packages":[{"ecosystem":"PyPI","name":"openc3","purl":"pkg:pypi/openc3","ranges":[">=6.7.0 <7.0.0"],"fixed":["7.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}