CVE-2026-42087

Source
https://cve.org/CVERecord?id=CVE-2026-42087
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42087.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42087
Aliases
Published
2026-05-04T17:18:02Z
Modified
2026-10-28T02:30:26Z
Severity
  • 9.6 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42087.json"
}
References

Affected packages

Git / github.com/openc3/cosmos

Affected ranges

Type
GIT
Repo
https://github.com/openc3/cosmos
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*",
            "range": [
                {
                    "introduced": "6.7.0"
                },
                {
                    "fixed": "7.0.0"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:openc3:cosmos:7.0.0:rc1:*:*:open_source:*:*:*",
            "range": [
                {
                    "introduced": "7.0.0-rc1"
                },
                {
                    "last_affected": "7.0.0-rc1"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:openc3:cosmos:7.0.0:rc2:*:*:open_source:*:*:*",
            "range": [
                {
                    "introduced": "7.0.0-rc2"
                },
                {
                    "last_affected": "7.0.0-rc2"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "range": [
                {
                    "fixed": "9ba60c09c8836a37a2e4ea67ab35fe403e041415"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "v7.0.0-rc3",
            "range": [
                {
                    "fixed": "c3ea3499cc01801122361524f6ccce2fdfbc35f0"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

7.*
7.0.0-rc1
7.0.0-rc2
v7.*
v7.0.0-rc1
v7.0.0-rc2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42087.json"