RubySec

Providing security resources for the Ruby community

CVE-2026-42087 (openc3): OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database

OpenC3 COSMOS has SQL Injection in QuestDB Time-Series Database

Published: April 23, 2026

SECURITY IDENTIFIERS

GEM

openc3

SEVERITY

CVSS v3.x: 9.6 (Critical)

UNAFFECTED VERSIONS

< 6.7.0

PATCHED VERSIONS

>= 7.0.0

DESCRIPTION

Vulnerability Type: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Attack type: Authenticated remote

Impact: Telemetry data disclosure and deletion

Affected components: openc3-tsdb (QuestDB)

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.

Recommendations

  • Sanitize all user-supplied input before executing it.
  • Use prepared statements with parameterized queries when executing SQL statements.

RELATED