{"id":"CVE-2026-58213","summary":"NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection","details":"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.","aliases":["BIT-nats-2026-58213","GHSA-qrcv-3558-gj4f","GO-2026-7000"],"modified":"2026-11-23T20:41:05.765321861Z","published":"2026-07-08T19:52:12.148Z","database_specific":{"cwe_ids":["CWE-74"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58213.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.9"},{"type":"WEB","url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58213.json"},{"type":"ADVISORY","url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58213"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/pull/8163"},{"type":"FIX","url":"https://github.com/nats-io/nats-server/pull/8164"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nats-io/nats-server","events":[{"introduced":"0"},{"fixed":"5919e2bb31ba21cd3f3da4f148f5f5cd44e1faf7"},{"introduced":"0cbd01caf8f29011c26273ff7662addd3830396a"},{"fixed":"cb557cd5d3ee8b4a253071d9923730d7d5588f99"},{"fixed":"366837cfc65ab9ccb4f98193c65e8daf238582d8"},{"fixed":"64ebae40051ee497c481e10f316238faf0de1736"},{"fixed":"f14856b9e57a36818f43851cb69b6e33670885c9"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"fixed":"2.12.9"}],"source":"CPE_RANGE"},{"range":[{"introduced":"2.14.0"},{"fixed":"2.14.1"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*"},{"range":[{"fixed":"366837cfc65ab9ccb4f98193c65e8daf238582d8"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"64ebae40051ee497c481e10f316238faf0de1736"}]},{"range":[{"fixed":"f14856b9e57a36818f43851cb69b6e33670885c9"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v2.12.9","range":[{"fixed":"5919e2bb31ba21cd3f3da4f148f5f5cd44e1faf7"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"v2.14.1","range":[{"fixed":"cb557cd5d3ee8b4a253071d9923730d7d5588f99"}]}]}}],"versions":["v2.14.1-RC.2","v2.12.9-RC.2","v2.14.1-RC.1","v2.12.9-RC.1","v2.12.8","v2.14.0","v2.12.7","v2.12.4","v2.12.6","v2.12.5","v2.12.5-RC.2","v2.12.5-RC.1","v2.12.4-RC.6","v2.12.4-RC.5","v2.12.4-RC.4","v2.12.2","v2.12.4-RC.3","v2.12.4-RC.2","v2.12.4-RC.1","v2.12.3","v2.12.3-RC.5","v2.12.3-RC.4","v2.12.3-RC.3","v2.12.3-RC.2","v2.12.3-RC.1","v2.12.2-RC.4","v2.12.2-RC.3","v2.12.1","v2.12.2-RC.2","v2.12.2-RC.1","v2.12.0","v2.12.1-RC.5","v2.12.1-RC.4","v2.12.1-RC.3","v2.12.1-RC.2","v2.12.1-RC.1","v2.12.0-RC.6","v2.12.0-RC.5","v2.12.0-RC.4","v2.12.0-RC.3","v2.12.0-RC.2","v2.12.0-RC.1","v2.12.0-preview.2","v2.12.0-preview.1","v2.11.3","v2.11.3-RC.2","v2.11.3-RC.1","v2.11.2","v2.11.2-RC.3","v2.11.2-RC.2","v2.11.2-RC.1","v2.11.0","v2.11.0-RC.5","v2.11.0-RC.4","v2.11.0-RC.3","v2.11.0-RC.2","v2.11.0-RC.1","v2.10.3","v2.10.2","v2.10.1","v2.10.0","v2.9.22","v2.9.21","v2.9.20","v2.9.19","v2.9.18","v2.9.17","v2.9.16","v2.9.15","v2.9.14","v2.9.12","v2.9.11","v2.9.10","v2.9.9","v2.9.8","v2.9.7","v2.9.6","v2.9.5","v2.9.4","v2.9.3","v2.9.2","v2.9.1","v2.9.0","v2.8.4","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.4","v2.7.3","v2.7.2","v2.7.1","v2.7.0","v2.7.0-rc2","v2.7.0-rc1","v2.6.6","v2.6.5","v2.6.4","v2.6.3","v2.6.2","v2.6.1","v2.6.0","v2.5.0","v2.4.0","v2.3.4","v2.3.3","v2.3.2","v2.3.1","v2.3.0","v2.2.6","v2.2.5","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.2.0","v2.1.7","v2.1.6","v2.1.4","v2.1.2","v2.1.0","v2.0.4","v2.0.2","v2.0.0","v2.0.0-RC19","v2.0.0-RC14","v1.3.0","v1.2.0","v1.1.0","v1.0.6","v1.0.4","v1.0.2","v1.0.0","v0.9.6","v0.9.4","v0.9.2","v0.8.1","v0.8.0","v0.7.2","v0.7.0","v0.6.8","v0.6.6","v0.6.4","v0.6.2","v0.6.0","v0.5.6","v0.5.4","v0.5.2","v0.5.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-58213.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"}]}