medium

CVE-2026-53717

Go · github.com/envoyproxy/gateway

Summary

Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header

Severity
medium
CVSS
6.5
EPSS
0.7% (p53)
CWE
CWE-789
Also known as
GHSA-h7pq-86h8-rp5x
Published
2026-07-16
Updated
2026-07-16

Advisory details

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

Preconditions (4):

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.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.