{"id":"CVE-2025-66220","aliases":["BIT-envoy-2025-66220","GHSA-rwjg-c3h2-f57p"],"summary":"Envoy’s TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte","published_at":"2025-12-03T18:31:50.389Z","modified_at":"2026-09-08T08:47:31.861147Z","products":[],"rating":{"severity":"high","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0017999999690800905,"percentile":0.07662999629974365,"date":"2026-11-19T00:00:00Z"},"priority":8.1,"details":"Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy’s mTLS certificate matcher for match_typed_subject_alt_names may incorrectly treat certificates containing an embedded null byte (\\0) inside an OTHERNAME SAN value as valid matches.","affected_stack":[],"affected_other":[{"ecosystem":"Bitnami","package":"envoy","purl":"pkg:bitnami/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.33.13"},{"introduced":"1.34.0"},{"fixed":"1.34.11"},{"introduced":"1.35.0"},{"fixed":"1.35.7"},{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.33.13","1.34.11","1.35.7","1.36.3"],"provider":"osv","source":"BIT-envoy-2025-66220","relation":"self"},{"ecosystem":"CVE","package":"envoyproxy/envoy","versions":[">= 1.36.0, <= 1.36.2",">= 1.35.0, <= 1.35.6",">= 1.34.0, <= 1.34.10","<= 1.33.12"],"provider":"cvelistv5","source":"CVE-2025-66220","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.34.0"},{"fixed":"1.34.11"}]}],"fixed":["1.34.11"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.36.3"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.33.13"}]}],"fixed":["1.33.13"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.35.0"},{"fixed":"1.35.7"}]}],"fixed":["1.35.7"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"NVD","package":"envoyproxy:envoy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.33.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.34.0"},{"fixed":"1.34.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.35.0"},{"fixed":"1.35.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.33.13","1.34.11","1.35.7","1.36.3"],"provider":"nvd","source":"CVE-2025-66220","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/grafana-rhel8","openshift-service-mesh/istio-cni-rhel8","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-operator-bundle","openshift-service-mesh/istio-rhel8-operator","openshift-service-mesh/pilot-rhel8","openshift-service-mesh/ratelimit-rhel8"],"package_count":7,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/proxyv2-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 3","cpe":"cpe:/a:redhat:service_mesh:3","status":"affected","packages":["openshift-service-mesh/istio-proxyv2-rhel9","openshift-service-mesh/istio-ztunnel-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 3","cpe":"cpe:/a:redhat:service_mesh:3","status":"not_affected","packages":["openshift-service-mesh-dev-preview-beta/istio-ztunnel-rhel9","openshift-service-mesh-tech-preview/istio-ztunnel-rhel9","openshift-service-mesh/istio-cni-rhel9","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-pilot-rhel9","openshift-service-mesh/istio-rhel9-operator","openshift-service-mesh/istio-sail-operator-bundle"],"package_count":7,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2025-66220"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-66220","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-66220","license":"CC-BY-4.0","published_at":"2025-12-03T18:31:50.389Z","modified_at":"2025-12-03T19:10:53.694Z","summary":"Envoy’s TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte","details":"Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy’s mTLS certificate matcher for match_typed_subject_alt_names may incorrectly treat certificates containing an embedded null byte (\\0) inside an OTHERNAME SAN value as valid matches.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N","source":"CVE-2025-66220"}],"affected":[{"ecosystem":"CVE","package":"envoyproxy/envoy","versions":[">= 1.36.0, <= 1.36.2",">= 1.35.0, <= 1.35.6",">= 1.34.0, <= 1.34.10","<= 1.33.12"],"provider":"cvelistv5","source":"CVE-2025-66220","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p"}]},{"provider":"nvd","source_id":"CVE-2025-66220","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220","severity":[],"affected":[{"ecosystem":"NVD","package":"envoyproxy:envoy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.33.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.34.0"},{"fixed":"1.34.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.35.0"},{"fixed":"1.35.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.33.13","1.34.11","1.35.7","1.36.3"],"provider":"nvd","source":"CVE-2025-66220","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-envoy-2025-66220","relation":"self","url":"https://osv.dev/vulnerability/BIT-envoy-2025-66220","license":"Apache-2.0","published_at":"2025-12-06T11:38:21.122Z","modified_at":"2026-09-08T08:47:31.861147Z","summary":"Envoy’s TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte","details":"Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy’s mTLS certificate matcher for match_typed_subject_alt_names may incorrectly treat certificates containing an embedded null byte (\\0) inside an OTHERNAME SAN value as valid matches.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","source":"BIT-envoy-2025-66220"}],"affected":[{"ecosystem":"Bitnami","package":"envoy","purl":"pkg:bitnami/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.33.13"},{"introduced":"1.34.0"},{"fixed":"1.34.11"},{"introduced":"1.35.0"},{"fixed":"1.35.7"},{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.33.13","1.34.11","1.35.7","1.36.3"],"provider":"osv","source":"BIT-envoy-2025-66220","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220"}]},{"provider":"osv","source_id":"GHSA-rwjg-c3h2-f57p","relation":"self","url":"https://osv.dev/vulnerability/GHSA-rwjg-c3h2-f57p","license":"CC-BY-4.0","published_at":"2025-12-05T18:14:02Z","modified_at":"2025-12-06T12:29:15.569514Z","summary":"Envoy's TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte","details":"### Summary\nEnvoy’s mTLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte (\\0) inside an `OTHERNAME` SAN value as valid matches.\n\n### Details\nThis occurs when the SAN is encoded as a `BMPSTRING` or `UNIVERSALSTRING`, and its UTF-8 conversion result is truncated at the first null byte during string assignment. As a result, `\"victim\\0evil\"` may match an exact: `\"victim\"` rule and be accepted by Envoy.\n\n### PoC\n\nCreate a CA and a server certificate signed by that CA.\nCreate two client certificates signed by the same CA:\nclient_evil with OTHERNAME BMPSTRING = \"evil\"\nclient_null with OTHERNAME BMPSTRING = \"victim\\0evil\"\nConfigure Envoy with require_client_certificate: true and a match_typed_subject_alt_names entry for the OTHERNAME OID with matcher.exact: \"victim\".\nConnect without a client cert → connection rejected.\nConnect with client_evil → connection rejected.\nConnect with client_null → connection accepted (but shouldn't!).\n\n### Impact\nAn attacker who can obtain a trusted client certificate with a null byte embedded in an OTHERNAME SAN can exploit this vulnerability. The practical impact is unauthorized impersonation of the matched identity, enabling access to services or APIs protected by that exact OTHERNAME check.\n\n### Credit\n[markevich.nikita1@gmail.com](mailto:markevich.nikita1@gmail.com)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N","source":"GHSA-rwjg-c3h2-f57p"}],"affected":[{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.34.0"},{"fixed":"1.34.11"}]}],"fixed":["1.34.11"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.36.0"},{"fixed":"1.36.3"}]}],"fixed":["1.36.3"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.33.13"}]}],"fixed":["1.33.13"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"},{"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","ranges":[{"type":"SEMVER","events":[{"introduced":"1.35.0"},{"fixed":"1.35.7"}]}],"fixed":["1.35.7"],"provider":"osv","source":"GHSA-rwjg-c3h2-f57p","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220"},{"type":"PACKAGE","url":"https://github.com/envoyproxy/envoy"}]},{"provider":"redhat-vex","source_id":"CVE-2025-66220","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-66220","license":"CC-BY-4.0","published_at":"2025-12-03T18:31:50.389Z","modified_at":"2026-03-16T08:31:20Z","summary":"envoy: Envoy: mTLS certificate validation bypass via embedded null byte in SAN","details":"A flaw was found in Envoy. This vulnerability allows mTLS (mutual Transport Layer Security) certificate validation bypass via a certificate containing an embedded null byte (\\0) inside an OTHERNAME SAN (Subject Alternative Name) value.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:L/A:N","source":"CVE-2025-66220"},{"type":"Red Hat","score":"Moderate","source":"CVE-2025-66220"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/grafana-rhel8","openshift-service-mesh/istio-cni-rhel8","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-operator-bundle","openshift-service-mesh/istio-rhel8-operator","openshift-service-mesh/pilot-rhel8","openshift-service-mesh/ratelimit-rhel8"],"package_count":7,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 2","cpe":"cpe:/a:redhat:service_mesh:2","status":"not_affected","packages":["openshift-service-mesh/proxyv2-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 3","cpe":"cpe:/a:redhat:service_mesh:3","status":"affected","packages":["openshift-service-mesh/istio-proxyv2-rhel9","openshift-service-mesh/istio-ztunnel-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-66220"},{"vendor":"Red Hat","product":"OpenShift Service Mesh 3","cpe":"cpe:/a:redhat:service_mesh:3","status":"not_affected","packages":["openshift-service-mesh-dev-preview-beta/istio-ztunnel-rhel9","openshift-service-mesh-tech-preview/istio-ztunnel-rhel9","openshift-service-mesh/istio-cni-rhel9","openshift-service-mesh/istio-must-gather-rhel9","openshift-service-mesh/istio-pilot-rhel9","openshift-service-mesh/istio-rhel9-operator","openshift-service-mesh/istio-sail-operator-bundle"],"package_count":7,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2025-66220"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-66220.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-66220"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2418661"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-66220"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220"},{"type":"WEB","url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p"}]}],"references":[{"type":"WEB","url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220"},{"type":"PACKAGE","url":"https://github.com/envoyproxy/envoy"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-66220.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-66220"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2418661"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-66220"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-66220","url":"https://www.cve.org/CVERecord?id=CVE-2025-66220","license":"CC-BY-4.0","modified_at":"2025-12-03T19:10:53.694Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2025-66220","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66220","relation":"self"},{"provider":"osv","source_id":"BIT-envoy-2025-66220","url":"https://osv.dev/vulnerability/BIT-envoy-2025-66220","license":"Apache-2.0","modified_at":"2026-09-08T08:47:31.861147Z","relation":"self"},{"provider":"osv","source_id":"GHSA-rwjg-c3h2-f57p","url":"https://osv.dev/vulnerability/GHSA-rwjg-c3h2-f57p","license":"CC-BY-4.0","modified_at":"2025-12-06T12:29:15.569514Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-66220","url":"https://access.redhat.com/security/cve/CVE-2025-66220","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:20Z","relation":"self"}]}
