{"id":"CVE-2026-42087","published":"2026-05-04T17:18:02Z","modified":"2026-05-05T12:46:14Z","title":"OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base","vendor":"OpenC3","product":"cosmos","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.6,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00445,"percentile":0.30622,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":6.12},{"name":"CVSS severity","points":6.72}]},"vendorSlug":"openc3","affectedVersions":[{"vendor":"OpenC3","product":"cosmos","versions":[">= 6.7.0, < 7.0.0-rc3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-05T12:46:08.929960Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"openc3","vulnerableRanges":[">=6.7.0, <7.0.0-rc3"],"patched":["7.0.0-rc3"],"from":["GHSA-v529-vhwc-wfc5"],"provenance":"source"},{"ecosystem":"PyPI","package":"openc3","vulnerableRanges":[">=6.7.0, <7.0.0"],"patched":["7.0.0"],"from":["PYSEC-2026-2244"],"provenance":"source"}],"summary":{"text":"OpenC3 COSMOS (product \"cosmos\") contains a SQL injection flaw in its QuestDB Time-Series Database component, where the tsdb_lookup function in cvt_model.rb places user-supplied input directly into a SQL query without sanitization. An attacker with low-privilege authenticated access over the network, requiring no user interaction, can break out of the intended SQL statement to run arbitrary SQL commands, including deleting data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:06Z"},"euvd":{"id":"EUVD-2026-27063","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-68271","published":"2026-01-13","fixed":"6.10.2","kev":false},{"cve":"CVE-2026-42084","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42085","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42087","published":"2026-05-04","fixed":"7.0.0-rc3","kev":false},{"cve":"CVE-2026-42086","published":"2026-05-04","fixed":"7.0.0","kev":false,"link":{"from":"CVE-2026-42087","to":"CVE-2026-42086","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:openc3","fromFixed":"7.0.0-rc3","toFixed":"7.0.0","daysApart":0}]}},{"cve":"CVE-2026-77601","published":"2026-09-23","fixed":"7.3.0","kev":false},{"cve":"CVE-2026-77602","published":"2026-09-23","fixed":"7.3.0","kev":false}],"package":"RubyGems:openc3"}}