GHSA-cxpq-8v7q-cg56

Suggest an improvement
Source
https://github.com/advisories/GHSA-cxpq-8v7q-cg56
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-cxpq-8v7q-cg56/GHSA-cxpq-8v7q-cg56.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-cxpq-8v7q-cg56
Aliases
Downstream
CGA (72)
MINI (6)
Published
2026-07-16T19:18:08Z
Modified
2026-09-21T09:40:55Z
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: Wasm HTTP fetch decompresses gzip without output-size limit
Details

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

Preconditions (4):

  • Tenant can create EnvoyExtensionPolicy (baseline)
  • Attacker hosts a gzip-bomb at a reachable URL
  • sha256 unset (optional field; check is post-decompression anyway)
  • No operator Wasm-URL allowlist (none exists in code)

Description

getFileFromGZ calls io.ReadAll on a raw gzip.Reader (httpfetcher.go:216) with no output bound, while the compressed input is capped at 256 MiB (httpfetcher.go:139). The bytes originate from a tenant-controlled EnvoyExtensionPolicy.spec.wasm[].code.http.url (envoyextensionpolicy.go:1077 → cache.go:248 → httpfetcher.go:147 → :233), so an untrusted tenant can point at a ~10 MiB gzip-of-zeros and force ~10 GiB allocation in the shared controller process. All candidate guards execute either before the body is buffered or after decompression. OOM-kills, restarts, re-reconciles same CR, crash-loops — persistent cross-tenant control-plane outage with PR:L/AC:L and scope change → HIGH despite availability-only.

Database specific
{
    "cwe_ids":  [
        "CWE-789"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-16T19:18:08Z",
    "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-cxpq-8v7q-cg56/GHSA-cxpq-8v7q-cg56.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-cxpq-8v7q-cg56/GHSA-cxpq-8v7q-cg56.json"