Skip to main content

CVE-2026-33247

MEDIUM
Insertion of Sensitive Information Into Debugging Code (CWE-215)
2026-03-24 https://github.com/nats-io/nats-server
5.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access NATS monitoring port
  2. Delivery
    Retrieve command-line arguments from process info
  3. Exploit
    Extract hardcoded static credentials
  4. Execution
    Authenticate as privileged client
  5. Impact
    Publish/subscribe to sensitive messages

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Debug information protection
Exploitation Conditions

nats-server must be configured with static credentials passed via command-line arguments AND the monitoring port must be accessible to the attacker. Requires network access to the monitoring port (default 8222). No authentication required to read exposed credentials from monitoring endpoint.

Impact

The CVSS score of 7.4 (High) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N indicates network-accessible exploitation with high attack complexity requiring no privileges or user interaction. The high complexity (AC:H) stems from the requirement that both command-line credentials and monitoring port must be enabled simultaneously—a configuration the NATS maintainers describe as unlikely in production environments. No EPSS score, KEV listing, or public POC is mentioned in the available data, suggesting limited observed exploitation activity. The real-world risk is moderate rather than critical because the vulnerability requires a specific misconfiguration (CLI credentials plus exposed monitoring) that contradicts documented best practices. Organizations following security guidance to restrict monitoring port access and use configuration files face minimal risk, making this more of a defense-in-depth issue than an urgent widespread threat.

Exploit ScenarioDerived

An attacker scanning for exposed NATS monitoring ports on default or common ports discovers an instance configured with command-line credentials. By sending an HTTP GET request to the /debug/vars endpoint without authentication, the attacker retrieves the unredacted argv array containing plaintext credentials passed via flags like --user and --pass. Using these stolen credentials, the attacker authenticates to the NATS server to publish malicious messages, subscribe to sensitive data streams, or disrupt message routing across the distributed system.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 24, 2026

A credential exposure vulnerability exists in NATS.io nats-server where static authentication credentials passed via command-line arguments are disclosed through the monitoring port's /debug/vars endpoint without redaction. NATS.io nats-server versions prior to 2.12.6 and 2.11.15 are affected. An attacker with network access to the monitoring port can retrieve plaintext credentials and gain unauthorized access to the messaging system, though this requires the uncommon configuration of both using command-line credentials and enabling monitoring.

RemediationAI

Upgrade nats-server to version 2.12.6 or later for the 2.12.x branch, or version 2.11.15 or later for the 2.11.x branch as documented in the GitHub security advisory at https://github.com/nats-io/nats-server/security/advisories/GHSA-x6g4-f6q3-fqvv. As immediate workarounds, migrate credential configuration from command-line arguments to configuration files where secrets are properly handled, or disable the monitoring port entirely if command-line credentials must be used. Following NATS best practices, restrict monitoring port access to trusted networks only and never expose it to the Internet, implementing network segmentation and firewall rules to limit access to authorized administrators. Additional security guidance is available at https://advisories.nats.io/CVE/secnote-2026-14.txt.

Affected Packages

go github.com/nats-io/nats-server no fix
go github.com/nats-io/nats-server/v2 fix: 2.11.15, 2.12.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NATS.io is a high-performance publish-subscribe messaging system designed for cloud-native, edge, and IoT deployments. The affected product is identified via CPE as pkg:go/github.com_nats-io_nats-server_v2. This vulnerability is classified as CWE-215 (Insertion of Sensitive Information Into Debugging Code), occurring when the nats-server's optional monitoring port exposes the /debug/vars endpoint containing an unredacted copy of the process's argv array. When administrators configure static credentials using command-line flags like --pass instead of configuration files, these secrets become visible to anyone who can access the monitoring endpoint, effectively bypassing any expectation of credential confidentiality.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.3 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
SUSE 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat 7.5 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

4
Severity Changed
Jun 30, 2026 - 03:24 NVD
HIGH MEDIUM
CVSS changed
Jun 30, 2026 - 03:24 NVD
7.4 (HIGH) 5.3 (MEDIUM)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 24, 2026 - 20:44 nvd
HIGH 7.4

DescriptionNVD

Background

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.

The nats-server provides an optional monitoring port, which provides access to sensitive data. The nats-server can take certain configuration options on the command-line instead of requiring a configuration file.

Problem Description

If a nats-server is run with static credentials for all clients provided via argv (the command-line), then those credentials are visible to any user who can see the monitoring port, if that too is enabled.

The /debug/vars end-point contains an unredacted copy of argv.

Patches

Fixed in nats-server 2.12.6 & 2.11.15

Workarounds

The NATS Maintainers are bemused at the concept of someone deploying a real configuration using --pass to avoid a config file, but also enabling monitoring.

Configure credentials inside a configuration file instead of via argv.

Do not enable the monitoring port if using secrets in argv.

Best practice remains to not expose the monitoring port to the Internet, or to untrusted network sources.

Executive ViewAI

Why It Matters

A credential exposure vulnerability in NATS.io messaging servers could allow attackers to steal authentication credentials and gain unauthorized access to messaging infrastructure. This risk is limited to organizations using command-line authentication combined with monitoring port exposure, but affected systems should be prioritized for remediation given the unavailability of patches.

Business Impact: Medium
Compensating Controls

Restrict network access to the monitoring port (default 8222) using firewall rules or network segmentation; disable the /debug/vars endpoint or entire monitoring interface if monitoring is not required; migrate from command-line credential configuration to environment variables or external secret management systems; implement API-level access controls to limit monitoring port visibility to trusted administrative networks only.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

pkg:go/github.com_nats-io_nats-server_v2
pkg:go/github.com_nats-io_nats-server_v2

Related Vulnerabilities in NATS Server Authentication Issues

View all 2

Vendor StatusVendor

SUSE

Severity: High
Product Status
openSUSE Leap 15.6 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP5 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP6 Fixed
openSUSE Leap 15.5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy