CVE-2025-64527: Github.com/envoyproxy/envoy Envoy Crashes When JWT Authentication Vulnerability

MODERATE
Advisory Identifier: GHSA-mp85-7mrq-r866
CVSS 6.5
CWE-476
Published
Advisory Summary

CVE-2025-64527 is a MODERATE (CVSS 6.5) envoy crashes when jwt authentication vulnerability (CWE-476: NULL Pointer Dereference) affecting Github.com/envoyproxy/envoy libraries in the Go ecosystem. The issue involves envoy crashes when jwt authentication is configured with the remote jwks fetching. Remediation is available by upgrading affected packages to version 1.36.3, 1.35.7, 1.34.11, 1.33.13.

CVE-2025-64527 at a Glance

CVE Identifier CVE-2025-64527
GHSA Identifier GHSA-mp85-7mrq-r866
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product Github.com/envoyproxy/envoy
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2025-64527

To remediate this vulnerability, upgrade all affected Github.com/envoyproxy/envoy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/envoyproxy/envoy fixed: 1.36.3
Upgrade github.com/envoyproxy/envoy to 1.36.3
github.com/envoyproxy/envoy fixed: 1.35.7
Upgrade github.com/envoyproxy/envoy to 1.35.7
github.com/envoyproxy/envoy fixed: 1.34.11
Upgrade github.com/envoyproxy/envoy to 1.34.11
github.com/envoyproxy/envoy fixed: 1.33.13
Upgrade github.com/envoyproxy/envoy to 1.33.13
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/envoyproxy/envoy

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-64527, inspect your project dependencies for Github.com/envoyproxy/envoy:

inspect dependencies for github.com/envoyproxy/envoy

Analyze the terminal output to locate any version of Github.com/envoyproxy/envoy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.36.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In Github.com/envoyproxy/envoy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Envoy crashes when JWT authentication is configured with the remote JWKS fetching, `allow_missing_or_failed` is enabled, multiple JWT tokens are present in the request headers and the JWKS fetch fails. ### Details This is caused by a re-entry bug in the `JwksFetcherImpl`. When the first token's JWKS fetch fails, `onJwksError()` callback triggers processing of the second token, which calls fetch() again on the same fetcher object. The original callback's reset() then clears the second fetch's state (`receiver_ and request_`) which causes a crash when the async HTTP response arrives. ### PoC * `allow_missing_or_failed` or `allow_missing` is enabled * The client send 2 Authorization headers * the remote JWKS fetching failed * There will be crash ### Impact DoS and Crash ### Mitigation * Disable the `allow_missing_or_failed` or `allow_missing`

CVE-2025-64527 Affected Github.com/envoyproxy/envoy Versions

4 component(s)
Fixed Versions:
1.36.31.35.71.34.111.33.13
Product / Package Ecosystem Affected Versions Fixed Version
github.com/envoyproxy/envoy
Go
≥ 1.36.0
< 1.36.3
1.36.3
github.com/envoyproxy/envoy
Go
≥ 1.35.0
< 1.35.7
1.35.7
github.com/envoyproxy/envoy
Go
≥ 1.34.0
< 1.34.11
1.34.11
github.com/envoyproxy/envoy
Go
< 1.33.13
1.33.13

References

Frequently Asked Questions

What is CVE-2025-64527?
CVE-2025-64527 is a security vulnerability in Github.com/envoyproxy/envoy involving Envoy crashes when JWT authentication is configured with the remote JWKS fetching under CWE-476: NULL Pointer Dereference.
Which Github.com/envoyproxy/envoy versions are affected?
Affected versions include releases prior to 1.36.3, 1.35.7, 1.34.11, 1.33.13 across affected packages: github.com/envoyproxy/envoy.
What version fixes CVE-2025-64527?
Upgrading to 1.36.3, 1.35.7, 1.34.11, 1.33.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/envoyproxy/envoy affected?
Yes, github.com/envoyproxy/envoy is affected in releases prior to 1.36.3, 1.35.7, 1.34.11, 1.33.13. Upgrade your dependency to 1.36.3, 1.35.7, 1.34.11, 1.33.13 or later.
What is the CVSS score of CVE-2025-64527?
CVE-2025-64527 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-64527?
CVE-2025-64527 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2025-64527?
Run the dependency tree command: 'inspect dependencies for github.com/envoyproxy/envoy'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mp85-7mrq-r866",
  "modified" : "2025-12-05T18:12:39Z",
  "published" : "2025-12-05T18:12:39Z",
  "aliases" : [ "CVE-2025-64527" ],
  "summary" : "Envoy crashes when JWT authentication is configured with the remote JWKS fetching",
  "details" : "### Summary\nEnvoy crashes when JWT authentication is configured with the remote JWKS fetching, `allow_missing_or_failed` is enabled, multiple JWT tokens are present in the request headers and the JWKS fetch fails.\n\n### Details\nThis is caused by a re-entry bug in the `JwksFetcherImpl`. When the first token's JWKS fetch fails, `onJwksError()` callback triggers processing of the second token, which calls fetch() again on the same fetcher object.\n\nThe original callback's reset() then clears the second fetch's state (`receiver_ and request_`) which causes a crash when the async HTTP response arrives.\n\n### PoC\n* `allow_missing_or_failed` or `allow_missing` is enabled\n* The client send 2 Authorization headers\n* the remote JWKS fetching failed\n* There will be crash\n\n### Impact\nDoS and Crash\n\n### Mitigation\n* Disable the `allow_missing_or_failed` or `allow_missing`",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/envoyproxy/envoy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.36.0"
      }, {
        "fixed" : "1.36.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.36.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/envoyproxy/envoy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.35.0"
      }, {
        "fixed" : "1.35.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.35.6"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/envoyproxy/envoy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.34.0"
      }, {
        "fixed" : "1.34.11"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.34.10"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/envoyproxy/envoy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.33.13"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.33.12"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/envoyproxy/envoy/security/advisories/GHSA-mp85-7mrq-r866"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64527"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/envoyproxy/envoy"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-476" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-05T18:12:39Z",
    "nvd_published_at" : "2025-12-03T18:15:46Z"
  }
}