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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-08 · Modified: 2026-07-09
- Aliases: UBUNTU-CVE-2026-58213, DEBIAN-CVE-2026-58213, GHSA-qrcv-3558-gj4f, BIT-nats-2026-58213, CGA-3hwv-8q8h-6fm6, CGA-49gp-862w-5fmm, CGA-6pq5-8w6h-wq68, CGA-8h92-pq89-58fc, CGA-cq6p-gmxg-7vr7, CGA-24qv-q95p-j322, CGA-3j5w-q6f9-5j4v, CGA-3qvp-g4hh-5mp6, CGA-4vmp-fp3v-vgcj, CGA-5gvp-j52p-9f9v, CGA-5jcc-pgjj-chwf, CGA-6f26-2r88-2mq4, CGA-frg6-jq4c-9hx8, CGA-jw29-gxmm-r628, CGA-px5w-3x44-w7ww, CGA-qx56-m7xf-fcv3, CGA-rx56-7qx9-6wj9, CGA-vx3c-f722-qvjq, CGA-2pfx-r4fw-wrvq, CGA-2px9-mq5q-v69c, CGA-32v9-2c26-44rq, CGA-87rr-xh28-w94x, CGA-c3xj-2373-pf9p, CGA-f88p-22vv-5xx5, CGA-hhxh-89p5-h73q, CGA-jfx9-gwx6-9whg, CGA-vq6p-q9x2-jx9j, CGA-vrfr-p672-85cr, CGA-xqwh-3f7f-x927, CGA-8cqm-9vx7-p8cg, CGA-9x78-2h63-mg8h, CGA-c9w4-2932-qcx9, CGA-g4x7-pw4x-cjvc, CGA-qcqh-cqg9-xg82, CGA-qx47-7gv4-r7f4, CGA-v963-ff6g-rq4j, CGA-wg63-6c8j-qxgq, CGA-jh7v-9mp8-2479, CGA-p59w-6943-9h58, CGA-pf93-rxf2-h3fm, CGA-pjh4-pmh7-h7jf, CGA-qf4p-p9p9-g3x9, CGA-qmfc-jh7p-rm62, CGA-wpp2-q8ch-c75j, CGA-mjgf-7p25-5hp2, CGA-qqmr-hfx8-vw8v, CGA-g29f-gcx8-h36f, CGA-pmf6-62pj-jqg7, CGA-x3j8-4rxc-4hjv, GO-2026-7000
- Record: https://cvemate.com/vulnerability/CVE-2026-58213 · JSON: https://cvemate.com/vulnerability/CVE-2026-58213/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
- EPSS: 0.324%, percentile 27.373%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 39)

- chainguard k3s-1.32 (Chainguard): All versions (No fix recorded)
- chainguard k3s-1.33 (Chainguard): All versions (No fix recorded) \| \< 1.33.13.2-r19
- chainguard k3s-1.34 (Chainguard): All versions (No fix recorded) \| \< 1.34.12.1-r12
- chainguard k3s-1.36 (Chainguard): All versions (No fix recorded) \| \< 1.36.6.1-r4
- chainguard k3s-1.37 (Chainguard): \< 1.37.2.1-r4
- chainguard k3s-fips-1.34 (Chainguard): All versions (No fix recorded) \| \< 1.34.12.1-r10
- chainguard k3s-fips-1.35 (Chainguard): \< 1.35.9.1-r8
- chainguard k3s-fips-1.36 (Chainguard): \< 1.36.6.1-r5
- chainguard k3s-fips-1.37 (Chainguard): \< 1.37.2.1-r6
- chainguard k3s-static-1.32 (Chainguard): All versions (No fix recorded)
- chainguard k3s-static-1.33 (Chainguard): \< 1.33.13.2-r19
- chainguard k3s-static-1.34 (Chainguard): All versions (No fix recorded) \| \< 1.34.12.1-r12
- chainguard k3s-static-1.36 (Chainguard): All versions (No fix recorded) \| \< 1.36.6.1-r4
- chainguard k3s-static-1.37 (Chainguard): All versions (No fix recorded) \| \< 1.37.2.1-r4
- chainguard milvus-2.5 (Chainguard): All versions (No fix recorded) \| \< 2.5.27-r43
- chainguard rke2-runtime-1.33 (Chainguard): \< 1.33.13.2.3-r10
- chainguard rke2-runtime-1.34 (Chainguard): All versions (No fix recorded) \| \< 1.34.13.2.1-r3
- chainguard rke2-runtime-1.35 (Chainguard): All versions (No fix recorded) \| \< 1.35.10.2.1-r6
- chainguard rke2-runtime-1.36 (Chainguard): \< 1.36.6.2.1-r5
- chainguard rke2-runtime-fips-1.33 (Chainguard): All versions (No fix recorded) \| \< 1.33.13.2.3-r10

## References

- <https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f>
- <https://github.com/nats-io/nats-server/pull/8163>
- <https://github.com/nats-io/nats-server/pull/8164>
- <https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8>
- <https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736>
- <https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9>
- <https://github.com/nats-io/nats-server/releases/tag/v2.12.9>
- <https://github.com/nats-io/nats-server/releases/tag/v2.14.1>
- <https://ubuntu.com/security/CVE-2026-58213>
- <https://www.cve.org/CVERecord?id=CVE-2026-58213>
- <https://security-tracker.debian.org/tracker/CVE-2026-58213>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-58213>
- <https://github.com/nats-io/nats-server>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58213.json>

---

Data as of 2026-12-05T05:18:07.440Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
