CVE-2026-58213 NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
HighCVSS 7.1
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
10 packages: 5 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nats-server(Debian 12) | = 2.9.10-1; = 2.9.19-1; = 2.10.1-1; = 2.10.3-1 +13 more | No fix listed | No fix yet |
| debian/nats-server(Debian 13) | = 2.10.27-1; = 2.12.4-1; = 2.12.6-1; = 2.14.1-1 +4 more | No fix listed | No fix yet |
| ubuntu/nats-server(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/nats-server(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| debian/nats-server(Debian 14) | < 2.14.1-1; = 2.10.27-1; = 2.12.4-1; = 2.12.6-1 | 2.14.1-1 | Fixed |
| linuxfoundation nats-server | < 2.12.9; >= 2.14.0, < 2.14.1 | 2.12.9, 2.14.1 | Fixed |
| nats-io github.com/nats-io/nats-server/v2(Go) | < 2.12.9; >= 2.14.0-RC.1, < 2.14.1 | 2.12.9, 2.14.1 | Fixed |
| redhat/nats-server2-12-main(Red Hat hummingbird 1) | < 2.12.12-1.hum1 | 2.12.12-1.hum1 | Fixed |
| redhat/nats-server2-14-main(Red Hat hummingbird 1) | < 2.14.3-1.hum1 | 2.14.3-1.hum1 | Fixed |
| nats-io github.com/nats-io/nats-server/v2 | = < 2.12.9; = >= 2.14.0-RC.1, < 2.14.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nats-io github.com/nats-io/nats-server/v2 | = < 2.12.9 | No fix listed |
| nats-io github.com/nats-io/nats-server/v2 | = >= 2.14.0-RC.1, < 2.14.1 | No fix listed |
| redhat/nats-server2-14-main(Red Hat:hummingbird:1) | < 2.14.3-1.hum1 | 2.14.3-1.hum1 |
| redhat/nats-server2-12-main(Red Hat:hummingbird:1) | < 2.12.12-1.hum1 | 2.12.12-1.hum1 |
| debian/nats-server(Debian:12) | All versions | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.1-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.16-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.18-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.24-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.27-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.3-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.4-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.10.7-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.12.4-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.12.6-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.14.1-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.14.3-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.14.6-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.15.1-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.9.10-1 | No fix listed |
| debian/nats-server(Debian:12) | = 2.9.19-1 | No fix listed |
| debian/nats-server(Debian:13) | All versions | No fix listed |
| debian/nats-server(Debian:13) | = 2.10.27-1 | No fix listed |
| debian/nats-server(Debian:13) | = 2.12.4-1 | No fix listed |
| debian/nats-server(Debian:13) | = 2.12.6-1 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nats-server(Debian:13) | = 2.14.1-1 | No fix listed |
| debian/nats-server(Debian:13) | = 2.14.3-1 | No fix listed |
| debian/nats-server(Debian:13) | = 2.14.6-1 | No fix listed |
| debian/nats-server(Debian:13) | = 2.15.1-1 | No fix listed |
| debian/nats-server(Debian:14) | < 2.14.1-1 | 2.14.1-1 |
| debian/nats-server(Debian:14) | = 2.10.27-1 | No fix listed |
| debian/nats-server(Debian:14) | = 2.12.4-1 | No fix listed |
| debian/nats-server(Debian:14) | = 2.12.6-1 | No fix listed |
| ubuntu/nats-server(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/nats-server(Ubuntu:26.04) | All versions | No fix listed |
| linuxfoundation nats-server | < 2.12.9 | 2.12.9 |
| linuxfoundation nats-server | >= 2.14.0, < 2.14.1 | 2.14.1 |
| nats-io github.com/nats-io/nats-server/v2(Go) | < 2.12.9 | 2.12.9 |
| nats-io github.com/nats-io/nats-server/v2(Go) | >= 2.14.0-RC.1, < 2.14.1 | 2.14.1 |
References
- https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f vendor-advisory
- https://github.com/nats-io/nats-server/pull/8163 issue-tracking patch
- https://github.com/nats-io/nats-server/pull/8164 issue-tracking patch
- https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8 patch
- https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736 patch
- https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9 patch
- https://github.com/nats-io/nats-server/releases/tag/v2.12.9 release-notes
- https://github.com/nats-io/nats-server/releases/tag/v2.14.1 release-notes
- Red Hat CVE page vendor-advisory
- RHSA-2026:36016 patch vendor-advisory
- RHSA-2026:36017 patch vendor-advisory
- Red Hat Bugzilla 2498249 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- Debian Security Tracker CVE-2026-58213 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-42383 third-party-advisory