{"id":"CVE-2026-33248","published":"2026-03-25T20:18:28Z","modified":"2026-03-26T19:52:12Z","title":"NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching","vendor":"nats-io","product":"nats-server","tier":"tail","description":{"text":"NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. Prior to versions 2.11.15 and 2.12.6, when using mTLS for client identity, with `verify_and_map` to derive a NATS identity from the client certificate's Subject DN, certain patterns of RDN would not be correctly enforced, allowing for authentication bypass. This does require a valid certificate from a CA already trusted for client certificates, and `DN` naming patterns which the NATS maintainers consider highly unlikely. So this is an unlikely attack. Nonetheless, administrators who have been very sophisticated in their `DN` construction patterns might conceivably be impacted. Versions 2.11.15 and 2.12.6 contain a fix. As a workaround, developers should review their CA issuing practices.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00155,"percentile":0.04705,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-3f24-pcvm-5jqc","tags":["x_refsource_CONFIRM"]},{"url":"https://advisories.nats.io/CVE/secnote-2026-13.txt","tags":["x_refsource_MISC"]}],"priority":{"score":3.9,"factors":[{"name":"EPSS percentile","points":0.94},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"nats-io","affectedVersions":[{"vendor":"nats-io","product":"nats-server","versions":["< 2.11.15",">= 2.12.0-RC.1, < 2.12.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-26T19:35:03.328665Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","vulnerableRanges":["<2.11.15",">=2.12.0-RC.1, <2.12.6"],"patched":["2.11.15","2.12.6"],"from":["GHSA-3f24-pcvm-5jqc","GO-2026-4828"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/nats-io/nats-server","vulnerableRanges":["all versions"],"patched":[],"from":["GHSA-3f24-pcvm-5jqc","GO-2026-4828"],"provenance":"source"}],"summary":{"text":"The flaw is in nats-server, the NATS.io messaging server from nats-io, where mTLS client authentication using verify_and_map fails to correctly enforce certain Relative Distinguished Name patterns in the client certificate's Subject DN when deriving a NATS identity. An attacker who already holds a valid certificate from a CA trusted for client certificates, and who can reach the server over the network, could bypass authentication when the deployment uses unusually specific DN naming patterns, a configuration the maintainers consider highly unlikely.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:29Z"},"euvd":{"id":"EUVD-2026-15999","exploited":false,"provenance":"source"}}