{"id":"CVE-2026-33248","aliases":["CVE-2026-33248","GHSA-3f24-pcvm-5jqc","BIT-NATS-2026-33248","GO-2026-4828"],"related":["CGA-mvv8-7788-xf2r"],"kind":"vulnerability","state":"published","title":"NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Background\n\nNATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.\n\nOne authentication model supported is mTLS, deriving the NATS client identity from properties of the TLS Client Certificate.\n\n### Problem Description\n\nWhen 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.\n\nThis does require a valid certificate from a CA already trusted for client certificates, and `DN` naming patterns which the NATS maintainers consider highly unlikely.\n\nSo this is an unlikely attack. Nonetheless, administrators who have been very sophisticated in their `DN` construction patterns might conceivably be impacted.\n\n### Affected Versions\n\nFixed in nats-server 2.12.6 & 2.11.15\n\n### Workarounds\n\nDevelopers should review their CA issuing practices.","format":"markdown","source":"ghsa"},{"lang":"en","text":"NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching in github.com/nats-io/nats-server","format":"markdown","source":"go"},{"lang":"es","text":"NATS-Server es un servidor de alto rendimiento para NATS.io, un sistema de mensajería nativo de la nube y del *edge*. Antes de las versiones 2.11.15 y 2.12.6, al usar mTLS para la identidad del cliente, con 'verify_and_map' para derivar una identidad NATS del DN del Asunto del certificado del cliente, ciertos patrones de RDN no se aplicarían correctamente, permitiendo la omisión de autenticación. Esto requiere un certificado válido de una CA ya confiable para certificados de cliente, y patrones de nombres de 'DN' que los mantenedores de NATS consideran altamente improbables. Por lo tanto, este es un ataque improbable. No obstante, los administradores que han sido muy sofisticados en sus patrones de construcción de 'DN' podrían verse afectados. Las versiones 2.11.15 y 2.12.6 contienen una corrección. Como solución alternativa, los desarrolladores deberían revisar sus prácticas de emisión de CA.","source":"nvd"}],"published":"2026-03-24T21:51:08.000Z","modified":"2026-09-10T03:50:36.808Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-287","CWE-295"],"affected":[{"ranges":[{"version":"< 2.11.15","status":"affected"},{"version":">= 2.12.0-RC.1, < 2.12.6","status":"affected"}],"vendor":"nats-io","product":"nats-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.15"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.12.0-RC.1","status":"affected","fixed":"2.12.6"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server","purl":"pkg:golang/github.com/nats-io/nats-server","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.15"},{"type":"semver","introduced":"2.12.0-RC.1","status":"affected","fixed":"2.12.6"}],"ecosystem":"Go","package":"github.com/nats-io/nats-server/v2","purl":"pkg:golang/github.com/nats-io/nats-server/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.11.15"},{"status":"affected","introduced":"2.12.0","fixed":"2.12.6"}],"vendor":"linuxfoundation","product":"nats-server","cpe":"cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.11.15"},{"type":"semver","introduced":"2.12.0","status":"affected","fixed":"2.12.6"}],"ecosystem":"Bitnami","package":"nats","purl":"pkg:bitnami/nats","source":"bitnami"}],"references":[{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-3f24-pcvm-5jqc","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://advisories.nats.io/CVE/secnote-2026-13.txt","tags":["advisory","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33248","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/nats-io/nats-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-26T19:35:03.328Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33248","url":"https://www.cve.org/CVERecord?id=CVE-2026-33248","licence":"CVE Terms of Use","modified":"2026-03-26T19:52:12.357Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3f24-pcvm-5jqc","url":"https://github.com/advisories/GHSA-3f24-pcvm-5jqc","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:36.808Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4828","url":"https://pkg.go.dev/vuln/GO-2026-4828","licence":"CC-BY-4.0","modified":"2026-03-27T18:26:05.115Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33248","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33248","licence":"Public domain","modified":"2026-06-17T10:37:11.377Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-NATS-2026-33248","url":"https://osv.dev/vulnerability/BIT-NATS-2026-33248","licence":"Apache-2.0","modified":"2026-09-08T08:48:24.538Z"}],"updatedAt":"2026-11-25T22:59:16.913Z","epss":{"score":0.00155,"percentile":0.04859,"date":"2026-12-01T12:00:22.000Z"}}