Yamcs
GHSA-wqq5-5w4p-m569
Privileged templated-instance YAML reconfiguration injection
High, 7.2 · Public source snapshot: November 12, 2026
Original portfolio report · Source reference · Source reference · Upstream commit · Public advisory
Shared credits and the scope of my investigation are documented below.
An authenticated Yamcs user with the CreateInstances privilege can supply template arguments when reconfiguring an existing templated instance. Those arguments should remain configuration data. In the affected reconfiguration path, they instead pass through unsanitized text rendering and can alter the resulting YAML when the template places an argument in a YAML-sensitive position. The public advisory reports malformed persistent configuration and instance denial of service; stronger effects depend on the template and configured services. This is not an unauthenticated attack or a demonstrated general-purpose remote-code-execution route.
GHSA-wqq5-5w4p-m569, published October 1, 2026, lists versions before 5.13.6 as affected and 5.13.6 as fixed. It assigns High, CVSS 3.1 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) and CWE-74. No CVE was listed at publication. GitHub credits the-vibe-dev among the co-reporters.
I reviewed the public release source and fixing change directly, including 5.13.2–5.13.6. I did not execute a trigger or independently reproduce the advisory's reported local results.
Yamcs supports instances created from operator-supplied templates. Template arguments are substituted into the instance configuration, which is stored and loaded when the instance starts. The relevant boundary separates user-supplied argument values from the structure and behavior selected by the operator's template.
The prerequisites are an authenticated account with CreateInstances, an existing templated instance, and a template containing a substitution position where raw text can affect YAML structure. The inspected API enforces the privilege and rejects non-templated instances. These checks materially limit exposure; they do not sanitize the argument values. Template configuration and deployment prevalence are not established by this review.
In Yamcs 5.13.2, yamcs-core/src/main/java/org/yamcs/http/api/InstancesApi.java, reconfigureInstance, checks CreateInstances before passing the supplied arguments to the server. Its asynchronous operation reconfigures the instance and then restarts it.
The decisive mismatch is in yamcs-core/src/main/java/org/yamcs/YamcsServer.java. Since 5.13.2, createInstance uses Template.processAndSanitizeYaml, but reconfigureInstance still uses Template.process. The latter renders the arguments directly into text, then writes that text to the persistent instance configuration. It also persists the updated metadata before returning. We therefore cannot treat initial-creation sanitization as protection for subsequent reconfiguration.
restartInstance subsequently calls loadInstanceConfig, which reads the stored file into YConfiguration. A failure at this later stage does not undo the earlier write in the inspected path. The synchronized reconfiguration method prevents concurrent execution of that method; it does not change this ordering or preserve the intended YAML structure.
The reconfiguration API was added by public change 99d997df0. I verified the unsanitized rendering and persistence in release 5.4.2; release 5.4.1 lacks that method. The same mismatch is present in each inspected 5.13.2–5.13.5 release and corrected in 5.13.6. Releases between 5.4.2 and 5.13.2 were not individually inspected, so the broader affected range remains the publisher's advisory range, not an independently verified release-by-release claim.
The supported primitive is modification of persistent instance configuration through template-argument rendering. The advisory reports that malformed configuration prevented the instance from restarting. The source confirms why a restart failure can follow a persistent write, but static review alone is not a runtime denial-of-service observation.
The attacker already possesses a powerful instance-management privilege. The remaining boundary is nevertheless meaningful: permission to provide argument values is not equivalent to permission to change arbitrary configuration structure. Code execution or other stronger consequences require additional template and service behavior; they are not demonstrated by this review. Normal-value, insufficient-privilege, fixed-release, and recovery controls were not run.
This defensive write-up includes no payload, request sequence, executable reproducer, or fabricated output. The public advisory supplies the reported local demonstration. The validation here is static comparison of released source and the upstream fix, not an independent execution of that demonstration.
Any authorized follow-up testing should use a disposable instance and preserved configuration because the reported failure can persist beyond a restart.
Upgrade to Yamcs 5.13.6 or later. The shipped fix changes reconfiguration to use the same YAML sanitization already applied during creation. In yamcs-core/src/main/java/org/yamcs/templating/Template.java, that sanitizer substitutes temporary tokens, parses the template structure, restores user strings as data values, and serializes the resulting structure.
Restrict CreateInstances to trusted operators. Regression coverage should compare creation and reconfiguration, confirm that special characters remain scalar data, exercise rejection without the required privilege, and verify that a failed update does not leave unusable persistent configuration. Those are recommended tests, not claimed test results.
Yamcs reconfiguration retained an unsanitized rendering path after initial creation was hardened. Under the documented privileged, template-dependent prerequisites, this could change persistent YAML configuration; the advisory's demonstrated effect was instance denial of service. Release 5.13.6 closes the inspected mismatch. Broader consequences remain conditional, and this report does not claim independent runtime reproduction.