CVE-2026-46621

Yamcs: Authenticated Remote Code Execution (RCE) via Jython Algorithm Code Injection

Published Jul 16, 2026 CVSS 3.1 · 9.1 Critical EPSS 1.1% KEV · Not listed
Description
Yamcs is a mission control framework. Prior to 5.12.7, the Yamcs script evaluation engine for Python algorithms dynamically compiled and evaluated user-controlled algorithm text using Jython through the JSR-223 ScriptEngine API without enforcing a secure sandbox, so an authenticated user with the ChangeMissionDatabase privilege could override an existing Python algorithm's logic through the mission database REST API and import and execute arbitrary Java classes such as java.lang.Runtime to achieve remote code execution on the underlying host operating system. This issue is fixed in versions 5.12.7 and 5.13.0, which disable algorithm editing by default.

Analysis

AI-generated

Technical impact

Yamcs exposes a code injection flaw (CWE‑94) by using Jython to dynamically compile and execute user‑controlled Python algorithm scripts via the JSR‑223 ScriptEngine API without a secure sandbox. Prior to version 5.12.7, an authenticated user with the ChangeMissionDatabase privilege could override an existing algorithm by submitting malicious Python code through the mission database REST API, import arbitrary Java classes such as java.lang.Runtime, and execute commands on the underlying host operating system, thereby achieving remote code execution. The issue is fixed in releases 5.12.7 and 5.13.0, which disable algorithm editing by default.

Affected Systems

The vulnerability affects all installations of Yamcs using the yamcs:yamcs product that are running any release older than 5.12.7, including the 5.12.x series. The fix is delivered in releases 5.12.7 and 5.13.0, where algorithm editing is disabled by default and the insecure script evaluation path is removed.

Risk and Exploitability

With a CVSS score of 9.1, the flaw is classified as critical. It requires valid credentials and the ChangeMissionDatabase privilege, but provides unrestricted code execution once exploit is achieved. The EPSS score is below 1 %, and the vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the REST API to authorize a malicious algorithm that loads Java classes and spawns system‑level processes, effectively compromising the host machine.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Patch Yamcs to version 5.12.7 or later, which disables algorithm editing by default.
  • For systems that must remain on an older version temporarily, explicitly disable algorithm editing in the configuration file and restrict the ChangeMissionDatabase privilege to a minimal set of trusted administrators.
  • Audit all algorithm changes and ensure that the mission database REST API is accessible only to authenticated users with appropriate privileges.

Generated by OpenCVE AI on July 31, 2026 at 01:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2g95-6x5q-xjwj Yamcs Vulnerable to Authenticated Remote Code Execution (RCE) via Jython Algorithm Code Injection
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.7, the Yamcs script evaluation engine for Python algorithms dynamically compiled and evaluated user-controlled algorithm text using Jython through the JSR-223 ScriptEngine API without enforcing a secure sandbox, so an authenticated user with the ChangeMissionDatabase privilege could override an existing Python algorithm's logic through the mission database REST API and import and execute arbitrary Java classes such as java.lang.Runtime to achieve remote code execution on the underlying host operating system. This issue is fixed in versions 5.12.7 and 5.13.0, which disable algorithm editing by default.
Title Yamcs: Authenticated Remote Code Execution (RCE) via Jython Algorithm Code Injection
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/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
Jul 16, 2026, 6:00 PM
Reserved
May 15, 2026, 7:34 PM
Status
Analyzed
Published
Jul 16, 2026, 5:16 PM
Modified
Jul 20, 2026, 1:46 AM