NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
Summary
| CVE | CVE-2026-58213 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-08 20:16:54 UTC |
| Updated | 2026-07-08 20:16:54 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.1 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Problem Types: CWE-74 | CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.1 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
| 3.1 | CNA | DECLARED | 7.1 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Nats-io | Nats-server | affected < 2.12.9 | Not specified |
| CNA | Nats-io | Nats-server | affected >= 2.14.0-RC.1, < 2.14.1 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/nats-io/nats-server/releases/tag/v2.12.9 | [email protected] | github.com | |
| github.com/nats-io/nats-server/releases/tag/v2.14.1 | [email protected] | github.com | |
| github.com/nats-io/nats-server/pull/8164 | [email protected] | github.com | |
| github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e3367... | [email protected] | github.com | |
| github.com/nats-io/nats-server/pull/8163 | [email protected] | github.com | |
| github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0... | [email protected] | github.com | |
| github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf23... | [email protected] | github.com | |
| github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.