Description
NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.
Published: 2026-07-08
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability permits an MQTT client to include protocol control characters in subscription filters, which the NATS server forwards to leaf or route connections as legitimate NATS protocol data. This corrupts the forwarded stream and allows injection of unintended NATS protocol operations, effectively creating a command injection flaw (CWE‑74) that can alter cluster behavior, exfiltrate data, or potentially compromise the system's integrity.

Affected Systems

NATS Server 2.12.x and 2.14.x series prior to releases 2.12.9 and 2.14.1 are affected. Any deployment of nats-io:nats-server on these versions that accepts MQTT connections from external clients is vulnerable.

Risk and Exploitability

The CVSS score of 7.1 reflects a moderate‑to‑high risk. EPSS is not available and the issue is not listed in CISA KEV. The most likely attack vector is a malicious MQTT client that can send crafted subscription requests to the vulnerable server. Because the exploitation requires only network access to the MQTT port and does not need privileged credentials, the potential impact is significant for organizations that expose MQTT traffic to untrusted networks.

Generated by OpenCVE AI on July 9, 2026 at 09:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to NATS Server v2.14.1 or v2.12.9, which contain the necessary patch.
  • Limit MQTT access to trusted clients or restrict traffic through a demilitarized zone that enforces strict firewall rules.
  • Deploy TLS encryption for MQTT connections to prevent tampering with subscription filters.
  • Monitor server logs for unexpected protocol operations or malformed MQTT packets and investigate anomalies promptly.

Generated by OpenCVE AI on July 9, 2026 at 09:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 09 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 08 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Description NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.
Title NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
Weaknesses CWE-74
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-09T13:33:07.155Z

Reserved: 2026-06-29T17:09:25.873Z

Link: CVE-2026-58213

cve-icon Vulnrichment

Updated: 2026-07-09T13:33:03.380Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-09T09:30:04Z

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')