
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-33247 is an information disclosure vulnerability in NATS-Server (nats-io/nats-server) where static client credentials passed via command-line arguments (argv) are exposed in plaintext through the monitoring port's /debug/vars endpoint. It affects all nats-server versions prior to 2.11.15 and versions 2.12.0-RC.1 through 2.12.5. The vulnerability was published on March 24, 2026, and patched versions were released the same day (GitHub Advisory). The CVSS v3.1 base score is 7.4 (High) per the GitHub Security Advisory, though the Feedly/NVD entry records a score of 5.3 (Medium) with slightly different metrics (GitHub Advisory, Red Hat Bugzilla).
The root cause is classified under CWE-215 (Insertion of Sensitive Information Into Debugging Code) and CWE-214 (Invocation of Process Using Visible Sensitive Information). When nats-server is started with credentials (e.g., passwords via --pass) supplied directly on the command line, the Go runtime exposes the full os.Args (argv) array through the /debug/vars HTTP endpoint on the monitoring port without any redaction (GitHub Advisory, NATS Advisory). Exploitation requires that both conditions are simultaneously true: credentials are passed via argv AND the monitoring port is enabled and accessible to the attacker. The attack vector is network-based with high complexity, as it depends on this specific misconfiguration being present (GitHub Advisory).
Successful exploitation allows an attacker with access to the monitoring port to retrieve plaintext NATS client credentials (e.g., passwords, tokens) from the /debug/vars endpoint. These credentials could then be used to authenticate to the NATS messaging system, potentially enabling unauthorized message publishing/subscribing, lateral movement within the messaging infrastructure, or access to sensitive data transiting the NATS bus. The confidentiality impact is rated High, with no direct integrity or availability impact from the disclosure itself (GitHub Advisory, Red Hat Bugzilla).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported. The EPSS score is approximately 0.016% (4th percentile), indicating a low near-term exploitation probability (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement that both the monitoring port is enabled and credentials are passed via argv — a configuration the NATS maintainers describe as unusual for production deployments (GitHub Advisory).
http://<target>:8222/ and checking for a valid NATS monitoring response.http://<target>:8222/debug/vars to retrieve the exported Go runtime variables, which include the unredacted cmdline (argv) array./debug/vars to locate the cmdline field, which will contain the full command-line arguments including any credentials passed via flags such as --pass, --auth, or similar options.http://<nats-server>:<monitoring-port>/debug/vars; access to the monitoring port from untrusted or external IP addresses./debug/vars from unfamiliar source IPs; repeated polling of the monitoring endpoint.--pass, --auth) visible in process listings (ps aux, /proc/<pid>/cmdline) alongside an enabled monitoring port (-m or --http_port flags present).Upgrade nats-server to version 2.11.15 or 2.12.6, which redact sensitive argv values from the /debug/vars endpoint (GitHub Advisory, NATS Advisory). If immediate upgrade is not possible, apply both workarounds: (1) move all credentials from command-line arguments into a configuration file, and (2) disable the monitoring port or restrict access to it via firewall rules to trusted hosts only. As a general best practice, the monitoring port should never be exposed to the Internet or untrusted network segments (GitHub Advisory).
The NATS maintainers noted in the advisory that they are "bemused at the concept of someone deploying a real configuration using --pass to avoid a config file, but also enabling monitoring," indicating the vulnerability requires an unusual combination of misconfigurations (GitHub Advisory). Red Hat tracked the issue via Bugzilla and classified it as high severity (Red Hat Bugzilla). openSUSE also issued a security announcement for the affected package (openSUSE Security).
Fix availability across major Linux distributions and their releases.
devel
nats-server
noble
nats-server
noble (esm-apps)
nats-server
resolute
nats-server
resolute (esm-apps)
nats-server
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."