CVE-2026-53717: Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header
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;
Published Jul 16, 2026
Affected packages
github.com/envoyproxy/gateway
- Ecosystem
- Go
- Affected
- >= 1.8.0-rc.0, < 1.8.1
- Fixed in
- 1.8.1
- Check
go list -m github.com/envoyproxy/gateway
github.com/envoyproxy/gateway
- Ecosystem
- Go
- Affected
- < 1.7.4
- Fixed in
- 1.7.4
- Check
go list -m github.com/envoyproxy/gateway
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to zhaohuabing.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-53713
Envoy Gateway: Authentication Bypass via Improper Input Validation in EnvoyExtensionPolicy Lua Allows Secret Disclosure
critical9.1Jul 16, 2026CVE-2026-53714
Envoy Gateway: xDS Control Plane Information Disclosure when operating in GatewayNamespaceMode
high7.4Jul 16, 2026CVE-2026-53715
Envoy Gateway: Wasm cache ServeHTTP reads mappingPath2Cache without lock
medium5.3Jul 16, 2026CVE-2026-53716
Envoy Gateway: Wasm HTTP fetch decompresses gzip without output-size limit
medium6.5Jul 16, 2026CVE-2026-53718
Envoy Gateway custom backendRef cross-namespace ReferenceGrant bypass
medium6.4Jul 16, 2026CVE-2026-53719
Envoy Gateway: Nil-dereference when SecurityPolicy targets TCPRoute without spec.authorization
medium6.5Jul 16, 2026
