CVE-2025-66220 Envoy's TLS certificate matcher for `match_typed_subject_alt_names` may incorrectly treat certificates containing an embedded null byte

Medium 5.0 Published Updated

Attackers can bypass mTLS authentication by using certificates with embedded null bytes in SAN values, allowing unauthorized access to protected services.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-66220?

CVE-2025-66220 is a medium-severity vulnerability in Envoyproxy Envoy, published on 3 Dec 2025. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-170

Which versions are affected by CVE-2025-66220?

9 open source packages ship an affected version, including github.com/envoyproxy/envoy and envoy. It affects 1 product.

PackageAffectedFixed in
github.com/envoyproxy/envoy GoAll versions1.33.13
github.com/envoyproxy/envoy GoAll versions1.33.13
github.com/envoyproxy/envoy GoFrom 1.34.01.34.11
github.com/envoyproxy/envoy GoFrom 1.34.01.34.11
github.com/envoyproxy/envoy GoFrom 1.35.01.35.7
github.com/envoyproxy/envoy GoFrom 1.35.01.35.7
3 more packages
github.com/envoyproxy/envoy GoFrom 1.36.01.36.3
github.com/envoyproxy/envoy GoFrom 1.36.01.36.3
envoy BitnamiAll versions1.33.13, 1.34.11, 1.35.7, 1.36.3

Products include Envoyproxy Envoy.

How do I fix CVE-2025-66220?

Upgrade github.com/envoyproxy/envoy to a fixed version for your release line: 1.33.13, 1.34.11, 1.35.7 or 1.36.3.

Is CVE-2025-66220 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66220 exists.

All Envoyproxy Envoy vulnerabilities

Sources

Also known as BIT-envoy-2025-66220, GHSA-rwjg-c3h2-f57p.

Is CVE-2025-66220 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free