GHSA-g9vw-6pvx-7gmw

Suggest an improvement
Source
https://github.com/advisories/GHSA-g9vw-6pvx-7gmw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-g9vw-6pvx-7gmw/GHSA-g9vw-6pvx-7gmw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g9vw-6pvx-7gmw
Aliases
Published
2025-09-15T16:46:37Z
Modified
2025-09-15T16:46:37Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Envoy: Race condition in Dynamic Forward Proxy leads to use-after-free and segmentation faults
Details

Summary

A use-after-free (UAF) vulnerability in Envoy's DNS cache causes abnormal process termination. Envoy may reallocate memory when processing a pending DNS resolution, causing list iterator to reference freed memory.

Details

The vulnerability exists in Envoy's Dynamic Forward Proxy implementation starting from version v1.34.0. The issue occurs when a completion callback for a DNS resolution triggers new DNS resolutions or removes existing pending resolutions. This condition may occur in the following configuration:

  1. Dynamic Forwarding Filter is enabled.
  2. envoy.reloadable_features.dfp_cluster_resolves_hosts runtime flag is enabled.
  3. The Host header is modified between the Dynamic Forwarding Filter and Router filters.

Impact

Denial of service due to abnormal process termination.

Attack vector(s)

Request to Envoy configured as indicated above.

Patches

Users should upgrade to v1.35.1 or v1.34.5.

Workaround

Set the envoy.reloadable_features.dfp_cluster_resolves_hosts runtime flag to false.

Detection

Abnormal process termination with the Envoy::Event::DispatcherImpl::runPostCallbacks() frame in the call stack.

Credits

Rohit Agrawal (agrawroh) (rohit.agrawal@databricks.com)

Database specific
{
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-416"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-09-15T16:46:37Z",
    "nvd_published_at": "2025-09-03T00:15:30Z"
}
References

Affected packages

Go / github.com/envoyproxy/envoy

Package

Name
github.com/envoyproxy/envoy
View open source insights on deps.dev
Purl
pkg:golang/github.com/envoyproxy/envoy

Affected ranges

Type
SEMVER
Events
Introduced
1.35.0
Fixed
1.35.1

Affected versions

1.*

1.35.0

Go / github.com/envoyproxy/envoy

Package

Name
github.com/envoyproxy/envoy
View open source insights on deps.dev
Purl
pkg:golang/github.com/envoyproxy/envoy

Affected ranges

Type
SEMVER
Events
Introduced
1.34.0
Fixed
1.34.5