Versa VOS command injection in ZTP /authenticate endpoint
Versa VOS
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Versa VOS |
|
|
Versa VOS
| Product | Affected | Fixed in |
|---|---|---|
| Versa VOS |
|
|
23.1.2 Aug-3-2026-HotfixThe Node.js web service on VOS (previously Versa FlexVNF) is used for URL-based Zero Touch Provisioning (ZTP) of the VOS appliance and is not required after provisioning is complete. The /authenticate endpoint of this service passes user-supplied username and password values to child_process.exec() through a sanitizer (escapeRegExp) that removes regular expression metacharacters but not newline characters. An unauthenticated attacker can inject a newline character into the username field to execute arbitrary shell commands as the versa OS service user. No credentials are required; the attacker needs only a CSRF token, which can be obtained from an unauthenticated page load.
Versa’s security hardening guide for Hubs, Branches, and Controllers recommends disabling the Node.js web service after the initial provisioning of the VOS device. This vulnerability is not exploitable on VOS devices where the Node.js web service has been disabled.
From the CVE record · hackerone
The Node.js web service used for URL-based provisioning passes credentials from its /authenticate endpoint to a shell command without removing newline characters. An unauthenticated attacker can obtain a CSRF token from a page load and inject a newline into the username to execute commands as the versa OS service user; no credentials or victim interaction are required.
Operators of Versa VOS appliances with the Node.js web service enabled should check their devices; affected versions were not specified.