{"id":"CVE-2026-53717","aliases":["CVE-2026-53717","GHSA-h7pq-86h8-rp5x","BIT-ENVOY-GATEWAY-2026-53717","GO-2026-6008"],"related":["CGA-66p8-wrmf-29hr"],"kind":"vulnerability","state":"published","title":"Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Vulnerability report without repro case. Repro case may be added later after harness is complete.\n\n**Preconditions (4):**\n- Tenant can create EnvoyExtensionPolicy (baseline)\n- Controller has egress to attacker-controlled OCI registry\n- No registry allowlist (none exists in code)\n- Layer presents Docker/OCI media type\n\n**Description**\n\nAt 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Envoy Gateway: OCI layer extraction allocates make([]byte, h.Size) from untrusted tar header in github.com/envoyproxy/gateway","format":"markdown","source":"go"}],"published":"2026-07-16T19:20:05.000Z","modified":"2026-09-30T17:43:24.057Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-789"],"affected":[{"ranges":[{"version":"< 1.7.4","status":"affected"},{"version":">= 1.8.0-rc.0, < 1.8.1","status":"affected"}],"vendor":"envoyproxy","product":"gateway","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.8.0-rc.0","status":"affected","fixed":"1.8.1"}],"ecosystem":"Go","package":"github.com/envoyproxy/gateway","purl":"pkg:golang/github.com/envoyproxy/gateway","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.4"}],"ecosystem":"Go","package":"github.com/envoyproxy/gateway","purl":"pkg:golang/github.com/envoyproxy/gateway","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.4"},{"type":"semver","introduced":"1.8.0-rc.0","status":"affected","fixed":"1.8.1"}],"ecosystem":"Go","package":"github.com/envoyproxy/gateway","purl":"pkg:golang/github.com/envoyproxy/gateway","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.4"},{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.1"}],"ecosystem":"Bitnami","package":"envoy-gateway","purl":"pkg:bitnami/envoy-gateway","source":"bitnami"}],"references":[{"url":"https://github.com/envoyproxy/gateway/security/advisories/GHSA-h7pq-86h8-rp5x","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/pull/9171","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/pull/9172","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/pull/9173","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/commit/5a78db82b7cf4fc5bebbeda2c50952892038a464","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/commit/96e2b750868a459ace4b8b68e6a6e4fb0152b9b7","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/commit/b4737180c7e597490c6363075c565fa8cf24eead","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/releases/tag/v1.7.4","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway/releases/tag/v1.8.1","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/envoyproxy/gateway","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53717","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-15T19:29:49.750Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53717","url":"https://www.cve.org/CVERecord?id=CVE-2026-53717","licence":"CVE Terms of Use","modified":"2026-09-15T19:30:12.383Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7pq-86h8-rp5x","url":"https://github.com/advisories/GHSA-h7pq-86h8-rp5x","licence":"CC-BY-4.0","modified":"2026-09-21T09:40:36.157Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6008","url":"https://pkg.go.dev/vuln/GO-2026-6008","licence":"CC-BY-4.0","modified":"2026-09-21T09:40:36.157Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53717","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53717","licence":"Public domain","modified":"2026-09-30T17:43:24.057Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ENVOY-GATEWAY-2026-53717","url":"https://osv.dev/vulnerability/BIT-ENVOY-GATEWAY-2026-53717","licence":"Apache-2.0","modified":"2026-09-21T09:40:36.157Z"}],"updatedAt":"2026-11-25T22:59:38.357Z","epss":{"score":0.00507,"percentile":0.44845,"date":"2026-12-01T12:00:22.000Z"}}