{
  "id": "CVE-2026-42087",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42087",
  "published_at": "2026-05-04T17:18:02.965Z",
  "title": "OpenC3 COSMOS: SQL Injection in QuestDB Time-Series Data Base",
  "vendor": "OpenC3",
  "product": "cosmos",
  "cvss": {
    "score": 9.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-89",
  "cpes": [
    "cpe:2.3:a:openc3:cosmos:*:*:*:*:open_source:*:*:*",
    "cpe:2.3:a:openc3:cosmos:7.0.0:rc1:*:*:open_source:*:*:*",
    "cpe:2.3:a:openc3:cosmos:7.0.0:rc2:*:*:open_source:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "OpenC3",
        "product": "cosmos",
        "ranges": [
          "\u003e= 6.7.0, \u003c 7.0.0-rc3"
        ],
        "fixed_in": [
          "7.0.0-rc3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cosmos to 7.0.0-rc3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/OpenC3/cosmos/security/advisories/GHSA-v529-vhwc-wfc5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/OpenC3/cosmos/commit/9ba60c09c8836a37a2e4ea67ab35fe403e041415"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/OpenC3/cosmos/releases/tag/v7.0.0-rc3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
