Yamcs
Yamcs: Remote Code Execution via instance-template argument YAML injection (createInstance)
Yamcs is a mission control framework. Prior to 5.12.8 and 5.13.2, Yamcs inserts templateArgs from POST /api/instances and PATCH /api/instances/{instance} into YAML through VarStatement.append in yamcs-core/src/main/java/org/yamcs/templating/VarStatement.java without YAML-context escaping. The rendered configuration is parsed by YamcsServer.createInstance and loaded by YamcsServerInstance, allowing an attacker to inject a services entry for org.yamcs.ProcessRunner. Deployments without security.yaml expose the operation through the guest superuser, while secured deployments require SystemPrivilege.CreateInstances. Successful exploitation executes commands as the Yamcs service account. This issue is fixed in versions 5.12.8 and 5.13.2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.12.8
- >= 5.13.0, < 5.13.2
Fixed in 5.12.8, 5.13.2
Mitigation
Upgrade yamcs to 5.12.8 or 5.13.2 or later.
References
- Vendor advisory github.com/yamcs/yamcs/security/advisories/GHS…
- Patch github.com/yamcs/yamcs/commit/549f295cf8c5496a…
- Patch github.com/yamcs/yamcs/commit/7192da1c49bdf5ab…
2 more
- Release notes github.com/yamcs/yamcs/releases/tag/yamcs-5.12…
- Release notes github.com/yamcs/yamcs/releases/tag/yamcs-5.13…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.