GHSA-h7pq-86h8-rp5x

Suggest an improvement
Source
https://github.com/advisories/GHSA-h7pq-86h8-rp5x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h7pq-86h8-rp5x/GHSA-h7pq-86h8-rp5x.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-h7pq-86h8-rp5x
Aliases
Downstream
CGA (72)
MINI (6)
Published
2026-07-16T19:20:05Z
Modified
2026-09-21T09:40:44Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header
Details

Vulnerability report without repro case. Repro case may be added later after harness is complete.

Preconditions (4):

  • Tenant can create EnvoyExtensionPolicy (baseline)
  • Controller has egress to attacker-controlled OCI registry
  • No registry allowlist (none exists in code)
  • Layer presents Docker/OCI media type

Description

At imagefetcher.go:287, make([]byte, h.Size) uses the attacker-controlled tar-header size; the LimitReader at :278 bounds bytes read from the stream but not the header-declared size returned by tr.Next() (a 512-byte header can claim a multi-TB entry via PAX/GNU encoding). Reached from untrusted tenant input via EnvoyExtensionPolicy spec.wasm[].code.image.url (envoyextensionpolicy.go:1157 → cache.go:262/299 → imagefetcher.go:218 → :287), and the allocation happens for every tar entry regardless of filename. The resulting Go runtime OOM throw is unrecoverable and, because the CRD persists, crash-loops the shared controller — single-request, non-volumetric, cluster-wide DoS.

Database specific
{
    "cwe_ids":  [
        "CWE-789"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-16T19:20:05Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/envoyproxy/gateway

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
1.8.0-rc.0
Fixed
1.8.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h7pq-86h8-rp5x/GHSA-h7pq-86h8-rp5x.json"

Go / github.com/envoyproxy/gateway

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.7.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-h7pq-86h8-rp5x/GHSA-h7pq-86h8-rp5x.json"