Skip to content

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

MediumCVSS 6.5 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
DockerKubernetesRed Hat

Description

Envoy Gateway is an open source project for managing Envoy Proxy as a standalone or Kubernetes-based application gateway. Prior to 1.7.4 and 1.8.1, internal/wasm/imagefetcher.go follows tenant-controlled EnvoyExtensionPolicy spec.wasm[].code.image.url values to Docker or OCI Wasm layers, and extractWasmPluginBinary uses the untrusted tar-header h.Size value to allocate memory before validating the entry name or declared size. A small PAX or GNU tar header can therefore claim a multi-terabyte entry even though the surrounding LimitReader restricts only the bytes read from the stream, and no registry allowlist prevents a permitted tenant from selecting an attacker-controlled registry that the controller can reach. The allocation is attempted for every tar entry and can cause an unrecoverable Go runtime out-of-memory failure; because the custom resource persists, reconciliation repeatedly crash-loops the shared controller and causes a single-request, non-volumetric, cluster-wide control-plane denial of service. This issue is fixed in versions 1.7.4 and 1.8.1.

Upgrade path

4 packages: 1 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
redhat/rhcl-1/rhcl-operator-bundle(Red Hat connectivity_link 1) All versions No fix listed No fix yet
redhat/rhcl-1/rhcl-rhel9-operator(Red Hat connectivity_link 1) All versions No fix listed No fix yet
envoyproxy github.com/envoyproxy/gateway(Go) < 1.7.4; >= 1.8.0-rc.0, < 1.8.1 1.7.4, 1.8.1 Fixed
envoyproxy github.com/envoyproxy/gateway = < 1.7.4; = >= 1.8.0-rc.0, < 1.8.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
envoyproxy github.com/envoyproxy/gateway(Go) >= 1.8.0-rc.0, < 1.8.1 1.8.1
envoyproxy github.com/envoyproxy/gateway(Go) < 1.7.4 1.7.4
envoyproxy github.com/envoyproxy/gateway = < 1.7.4 No fix listed
envoyproxy github.com/envoyproxy/gateway = >= 1.8.0-rc.0, < 1.8.1 No fix listed
redhat/rhcl-1/rhcl-operator-bundle(Red Hat:connectivity_link:1) All versions No fix listed
redhat/rhcl-1/rhcl-rhel9-operator(Red Hat:connectivity_link:1) All versions No fix listed

References