NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection (CVE-2026-58213)
NATS Server versions prior to 2.14.1 and 2.12.9 contain a vulnerability where an MQTT client can inject protocol control characters in subscription filters. These characters are forwarded as NATS protocol data to route or leafnode connections, corrupting the protocol stream and allowing injection of unintended NATS commands. This vulnerability is fixed in versions 2.14.1 and 2.12.9.
AI Analysis
Technical Summary
NATS Server, a messaging system server, had a vulnerability (CVE-2026-58213) in versions before 2.14.1 and 2.12.9 where MQTT clients could include protocol control characters in subscription filters. These characters were forwarded as NATS protocol data to route or leafnode connections, corrupting the protocol stream and enabling injection of arbitrary NATS protocol operations. This could allow an attacker to inject unintended commands into the NATS protocol stream. The issue is resolved in versions 2.14.1 and 2.12.9.
Potential Impact
The vulnerability allows an attacker controlling an MQTT client to inject arbitrary NATS protocol commands via subscription filters. This could lead to corruption of the protocol stream between servers and potentially unauthorized command execution within the NATS messaging environment. No known exploits in the wild have been reported.
Mitigation Recommendations
A patch is available and the issue is fixed in NATS Server versions 2.14.1 and 2.12.9. Users should upgrade to at least these versions to remediate the vulnerability.
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection (CVE-2026-58213)
Description
NATS Server versions prior to 2.14.1 and 2.12.9 contain a vulnerability where an MQTT client can inject protocol control characters in subscription filters. These characters are forwarded as NATS protocol data to route or leafnode connections, corrupting the protocol stream and allowing injection of unintended NATS commands. This vulnerability is fixed in versions 2.14.1 and 2.12.9.
Affected software
pkg:deb/ubuntu/[email protected]?arch=source&distro=noblepkg:deb/ubuntu/[email protected]?arch=source&distro=questingpkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
NATS Server, a messaging system server, had a vulnerability (CVE-2026-58213) in versions before 2.14.1 and 2.12.9 where MQTT clients could include protocol control characters in subscription filters. These characters were forwarded as NATS protocol data to route or leafnode connections, corrupting the protocol stream and enabling injection of arbitrary NATS protocol operations. This could allow an attacker to inject unintended commands into the NATS protocol stream. The issue is resolved in versions 2.14.1 and 2.12.9.
Potential Impact
The vulnerability allows an attacker controlling an MQTT client to inject arbitrary NATS protocol commands via subscription filters. This could lead to corruption of the protocol stream between servers and potentially unauthorized command execution within the NATS messaging environment. No known exploits in the wild have been reported.
Mitigation Recommendations
A patch is available and the issue is fixed in NATS Server versions 2.14.1 and 2.12.9. Users should upgrade to at least these versions to remediate the vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-58213
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:Pro:26.04:LTS"]
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a58b45d68715ace43d6be3f
Added to database: 07/16/2026, 10:37:17 UTC
Last enriched: 09/08/2026, 15:19:51 UTC
Last updated: 09/13/2026, 22:01:35 UTC
Views: 39
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.