CVE-2026-58213 json
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
published 2026-07-08 4 mo ago modified 2026-10-25 14 d ago also BIT-nats-2026-58213 , EUVD-2026-42383 , GHSA-qrcv-3558-gj4f , JLSEC-2026-1148
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami nats 2.12.9, 2.14.1
- julia nats_server_jll 2.14.3+0
- linuxfoundation nats-server 2.12.9, 2.14.1
- nats nats_server 2.12.9, 2.14.1
- nats nats_streaming_server 2.12.9, 2.14.1
- nats-server Debian 14 2.14.1-1
debian advisories DEBIAN-CVE-2026-58213
- nats-server2.12 hummingbird 1 2.12.12-1.hum1
- nats-server2.14 hummingbird 1 2.14.3-1.hum1
red hat advisories RHSA-2026:36017RHSA-2026:36016
- github.com/nats-io/nats-server@366837c commit
- github.com/nats-io/nats-server@64ebae4 commit
- github.com/nats-io/nats-server@f14856b commit
- github.com/nats-io/nats-server#8163 pull request
- github.com/nats-io/nats-server#8164 pull request
- github.com/nats-io/nats-server/releases/tag/v2.12.9 release
- github.com/nats-io/nats-server/releases/tag/v2.14.1 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-58213 updated cvss 7.1
nats-server: NATS Server: Protocol stream corruption and unintended operation injection via MQTT client subscription filters
-
Red Hat Hardened Images nats-server2.14 2.14.3-1.hum1, nats-server2.12 2.12.12-1.hum1fixed: vendor fix RHSA-2026:36017
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | nats | <2.12.9 >=2.14.0, <2.14.1 |
2.12.9 2.14.1 |
| julia | nats_server_jll | <2.14.3+0 |
2.14.3+0 |
Affected products
- nats-io nats-server
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/nats-io/nats-server/pull/8163
issue-tracking, patch, web
-
github.com
/nats-io/nats-server/pull/8164
issue-tracking, patch, web
-
github.com
/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8
patch, web
-
github.com
/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736
patch, web
-
github.com
/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9
patch, web
-
github.com
/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f
vendor-advisory, advisory, web
-
github.com
/nats-io/nats-server/releases/tag/v2.12.9
release-notes, article, web
-
github.com
/nats-io/nats-server/releases/tag/v2.14.1
release-notes, article, web
-
nvd.nist.gov
/vuln/detail/CVE-2026-58213
web
Sources
- CVE List CVE-2026-58213
- NVD CVE-2026-58213
- OSV BIT-nats-2026-58213
- OSV JLSEC-2026-1148
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.