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.
Published: 2026-08-28
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 28 Aug 2026 22:00:00 +0000

Type Values Removed Values Added
First Time appeared Yamcs
Yamcs yamcs
Vendors & Products Yamcs
Yamcs yamcs

Fri, 28 Aug 2026 19:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-31T18:54:38.310Z

Reserved: 2026-06-16T23:11:20.214Z

Link: CVE-2026-55565

cve-icon Vulnrichment

Updated: 2026-08-31T18:54:30.610Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-28T20:18:29.070

Modified: 2026-09-08T21:08:37.320

Link: CVE-2026-55565

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T21:45:03Z

Weaknesses
  • CWE-94

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