OpenC3 COSMOS
OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.7.0, < 7.0.0-rc3
Fixed in 7.0.0-rc3
Mitigation
Upgrade cosmos to 7.0.0-rc3 or later.
References
- Vendor advisory github.com/OpenC3/cosmos/security/advisories/G…
- Patch github.com/OpenC3/cosmos/commit/9ba60c09c8836a…
- Release notes github.com/OpenC3/cosmos/releases/tag/v7.0.0-r…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.