Skip to main content
EPSS 0.4%top 63%

NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection (CVE-2026-58213)

0
High
Published: 07/14/2026 (07/14/2026, 15:47:13 UTC)
Source: GCVE Database
Product: nats

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

Ubuntu:24.04:LTSmore threats →ghsa
nats-server
pkg:deb/ubuntu/[email protected]?arch=source&distro=noble
Affected versions
=2.9.19-1build1=2.10.3-1=2.10.4-1=2.10.7-1=2.10.7-1ubuntu0.1=2.10.7-1ubuntu0.2=2.10.7-1ubuntu0.3
Ubuntu:25.10more threats →ghsa
nats-server
pkg:deb/ubuntu/[email protected]?arch=source&distro=questing
Affected versions
=2.10.24-1=2.10.27-1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
nats-server
pkg:deb/ubuntu/[email protected]~esm1?arch=source&distro=esm-apps/resolute
Affected versions
=2.10.27-1=2.10.27-1build1=2.10.27-1ubuntu0.26.04.1~esm1

Run 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

AILast updated: 09/08/2026, 15:19:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses