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

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-07-08T19:52:12.148Z
- Modified: 2026-11-23T20:41:34.329Z
- Also known as: GHSA-qrcv-3558-gj4f, BIT-NATS-2026-58213, GO-2026-7000
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nats-io nats-server: < 2.12.9; >= 2.14.0-RC.1, < 2.14.1
- github.com/nats-io/nats-server/v2 (Go): before 2.12.9; from 2.14.0-RC.1 before 2.14.1
- linuxfoundation nats-server: before 2.12.9; from 2.14.0 before 2.14.1
- nats (Bitnami): before 2.12.9; from 2.14.0 before 2.14.1

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f> (advisory, vendor-advisory, web)
- <https://github.com/nats-io/nats-server/pull/8163> (fix, issue-tracking, patch, web)
- <https://github.com/nats-io/nats-server/pull/8164> (fix, issue-tracking, patch, web)
- <https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8> (fix, patch, web)
- <https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736> (fix, patch, web)
- <https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9> (fix, patch, web)
- <https://github.com/nats-io/nats-server/releases/tag/v2.12.9> (article, release-notes, web)
- <https://github.com/nats-io/nats-server/releases/tag/v2.14.1> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-58213> (advisory, web)
- <https://github.com/nats-io/nats-server> (package)

## Sources

- CVE List: [CVE-2026-58213](https://www.cve.org/CVERecord?id=CVE-2026-58213), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-qrcv-3558-gj4f](https://github.com/advisories/GHSA-qrcv-3558-gj4f), CC-BY-4.0, modified 2026-11-23
- Go Vulnerability Database: [GO-2026-7000](https://pkg.go.dev/vuln/GO-2026-7000), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2026-58213](https://nvd.nist.gov/vuln/detail/CVE-2026-58213), Public domain, modified 2026-10-25
- Bitnami Vulnerability Database: [BIT-NATS-2026-58213](https://osv.dev/vulnerability/BIT-NATS-2026-58213), Apache-2.0, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-58213 · Whole record: https://cve.day/CVE-2026-58213.json · Rebuilt by cve.day 2026-11-25T22:59:27.416Z
