{"id":"CVE-2026-46562","published":"2026-07-16T16:06:39Z","modified":"2026-07-16T18:02:19Z","title":"Yamcs: Remote Code Execution via Mission Database algorithm override","vendor":"yamcs","product":"yamcs","tier":"tail","description":{"text":"Yamcs is a mission control framework. Prior to 5.12.7, the Nashorn ScriptEngine used to evaluate user-supplied JavaScript algorithm text in yamcs-core/src/main/java/org/yamcs/algorithms/ScriptAlgorithmExecutorFactory.java was constructed without a ClassFilter, so a user with the ChangeMissionDatabase privilege could override an algorithm through the MdbOverrideApi.updateAlgorithm endpoint and supply JavaScript that reaches arbitrary Java classes (for example Java.type(\"java.lang.Runtime\").getRuntime().exec(...)) to execute arbitrary OS commands as the Yamcs process; in the default configuration with no security.yaml the built-in guest user has superuser=true, making the issue reachable without authentication. This issue is fixed in versions 5.12.7 and 5.13.0, which disable algorithm editing by default.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00976,"percentile":0.60847,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"},{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/yamcs/yamcs/security/advisories/GHSA-vmwp-vh32-rj75","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yamcs/yamcs/commit/3c550348f866af4675d2ba4a51d8d12b7c7c6011","tags":["x_refsource_MISC"]},{"url":"https://github.com/yamcs/yamcs/commit/4ff8fda642ea8c3309a4d3f379aa77b763148992","tags":["x_refsource_MISC"]},{"url":"https://github.com/yamcs/yamcs/releases/tag/yamcs-5.12.7","tags":["x_refsource_MISC"]},{"url":"https://github.com/yamcs/yamcs/releases/tag/yamcs-5.13.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.0,"factors":[{"name":"EPSS percentile","points":12.17},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"yamcs","affectedVersions":[{"vendor":"yamcs","product":"yamcs","versions":["< 5.12.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-16T18:01:46.175576Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.yamcs:yamcs-core","vulnerableRanges":["<5.12.7"],"patched":["5.12.7"],"from":["GHSA-vmwp-vh32-rj75"],"provenance":"source"}],"summary":{"text":"The Yamcs mission control framework (yamcs-core, Yamcs product) contains a code injection flaw in its algorithm execution path, where user-supplied JavaScript evaluated by the Nashorn ScriptEngine is not restricted by a class filter, so it can reach arbitrary Java classes. An attacker holding the ChangeMissionDatabase privilege, or any unauthenticated user under the default configuration where the built-in guest account has superuser rights, can use the MdbOverrideApi.updateAlgorithm endpoint to run arbitrary operating system commands as the Yamcs process, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:23Z"},"euvd":{"id":"EUVD-2026-44958","exploited":false,"provenance":"source"}}