CVE-2026-55565

Yamcs: Authenticated remote code execution via unescaped StreamSQL `LIKE` pattern compiled by Janino (`LikeExpression`)

Published Aug 28, 2026 CVSS 3.1 · 9.9 Critical EPSS < 1% KEV · Not listed
Description
Yamcs is a mission control framework. Prior to 5.12.8 and 5.13.2, Yamcs LikeExpression.fillCode_getValueReturn in yamcs-core/src/main/java/org/yamcs/yarch/streamsql/LikeExpression.java inserts an unescaped LIKE pattern into Java source compiled by Expression.getCompiledExpression through SimpleCompiler.cook instead of applying ValueExpression.escapeJavaString. The pattern can originate from POST /api/archive/{instance}:executeSql, POST /api/archive/{instance}:streamSql, POST /api/archive/{instance}/tables/{table}:readRows, GET /api/archive/{instance}/events, or activity searches, including paths available with ReadTables, ReadEvents, or ReadActivities. A quote in the pattern can inject Java that runs as the Yamcs server process. This issue is fixed in versions 5.12.8 and 5.13.2.

Analysis

AI-generated

Technical impact

An authenticated user with permission to submit StreamSQL queries can insert an unescaped LIKE pattern that is compiled into Java source code by the Janino compiler. If the pattern contains a quote character, it injects Java code that executes in the context of the Yamcs server process, allowing the attacker to run arbitrary code and achieve full control over the server. The flaw is a classic code injection weakness (CWE-94) that directly compromises confidentiality, integrity, and availability of the affected system.

Affected Systems

The vulnerability affects the Yamcs mission control framework (vendor yamcs, product yamcs). All releases older than 5.12.8 and older than 5.13.2 are impacted. The attack vector is through API endpoints that accept StreamSQL input, including POST /api/archive/{instance}:executeSql, POST /api/archive/{instance}:streamSql, POST /api/archive/{instance}/tables/{table}:readRows, GET /api/archive/{instance}/events, and certain activity searches,

Risk and Exploitability

The CVSS score of 9.9 marks this flaw as critical, and while no EPSS score is currently available, the absence does not diminish the severity because the defect allows arbitrary code execution. The vulnerability is not listed in the CISA KEV catalog, so no confirmed public exploits are known, but the high CVSS and the nature of the flaw warrant rapid action. Because it requires authentication and access to the StreamSQL endpoints, any user with the necessary privileges can exploit it, making the risk high for installations that grant broad write permissions to these endpoints.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Yamcs to version 5.12.8 or newer, or to 5.13.2 or newer, which contain the fix that safely escapes LIKE patterns before compilation.
  • Reconfigure role‑based access controls to restrict the affected API endpoints—POST /api/archive/{instance}:executeSql, POST /api/archive/{instance}:streamSql, POST /api/archive/{instance}/tables/{table}:readRows, and GET /api/archive/{instance}/events—to users who truly need them, and disable or remove them for any non‑essential accounts.
  • Enhance monitoring of the Yamcs logs for anomalous activity on the StreamSQL endpoints, and investigate any unexpected Java code execution or errors that could indicate an attempted exploitation of the injection flaw.

Generated by OpenCVE AI on August 28, 2026 at 21:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c64q-hj4j-375f Yamcs vulnerable to authenticated remote code execution via unescaped StreamSQL `LIKE` pattern compiled by Janino (`LikeExpression`)
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Yamcs
Yamcs yamcs
Vendors & Products Yamcs
Yamcs yamcs
Type Values Removed Values Added
Description Yamcs is a mission control framework. Prior to 5.12.8 and 5.13.2, Yamcs LikeExpression.fillCode_getValueReturn in yamcs-core/src/main/java/org/yamcs/yarch/streamsql/LikeExpression.java inserts an unescaped LIKE pattern into Java source compiled by Expression.getCompiledExpression through SimpleCompiler.cook instead of applying ValueExpression.escapeJavaString. The pattern can originate from POST /api/archive/{instance}:executeSql, POST /api/archive/{instance}:streamSql, POST /api/archive/{instance}/tables/{table}:readRows, GET /api/archive/{instance}/events, or activity searches, including paths available with ReadTables, ReadEvents, or ReadActivities. A quote in the pattern can inject Java that runs as the Yamcs server process. This issue is fixed in versions 5.12.8 and 5.13.2.
Title Yamcs: Authenticated remote code execution via unescaped StreamSQL `LIKE` pattern compiled by Janino (`LikeExpression`)
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 31, 2026, 6:54 PM
Reserved
Jun 16, 2026, 11:11 PM
Status
Awaiting Analysis
Published
Aug 28, 2026, 8:18 PM
Modified
Sep 8, 2026, 9:08 PM