Skip to content

x/vulndb: potential Go vuln in github.com/envoyproxy/envoy: GHSA-rwjg-c3h2-f57p #4196

@GoVulnBot

Description

@GoVulnBot

Advisory GHSA-rwjg-c3h2-f57p references a vulnerability in the following Go modules:

Module
github.com/envoyproxy/envoy

Description:

Summary

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.

Details

This 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.

PoC

Create a CA and a server certificate signed by that CA.
Create two client certificates signed by the same CA:
...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/envoyproxy/envoy
      non_go_versions:
        - introduced: TODO (earliest fixed "1.33.13", vuln range "<= 1.33.12")
        - introduced: TODO (earliest fixed "1.34.11", vuln range ">= 1.34.0, <= 1.34.10")
        - introduced: TODO (earliest fixed "1.35.7", vuln range ">= 1.35.0, <= 1.35.6")
        - introduced: TODO (earliest fixed "1.36.3", vuln range ">= 1.36.0, <= 1.36.2")
      vulnerable_at: 1.36.3
summary: |-
    Envoy's TLS certificate matcher for `match_typed_subject_alt_names` may
    incorrectly treat certificates containing an embedded null byte in github.com/envoyproxy/envoy
cves:
    - CVE-2025-66220
ghsas:
    - GHSA-rwjg-c3h2-f57p
references:
    - advisory: https://github.com/advisories/GHSA-rwjg-c3h2-f57p
    - advisory: https://github.com/envoyproxy/envoy/security/advisories/GHSA-rwjg-c3h2-f57p
    - advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-66220
notes:
    - fix: 'module merge error: could not merge versions of module github.com/envoyproxy/envoy: invalid or non-canonical semver version (found TODO (earliest fixed "1.33.13", vuln range "<= 1.33.12"))'
source:
    id: GHSA-rwjg-c3h2-f57p
    created: 2025-12-05T19:01:23.651652723Z
review_status: UNREVIEWED

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions