Go
CVE-2026-54462
knative.dev/pkg admission webhooks allow unbounded request-body memory exhaustion
- Severity
- Medium 6.5
- Published
- 28 Oct 2026
- Last changed
- 5 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.0.0-20260531000007-52dbd5ece63f
- Exploit chance
- 0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-2hw4-c9m4-f2fj, GO-2026-6880
- Sources
- OSV.dev and GitHub
Description
Built a Go PoC (cmd/poc-c2/main.go) that runs the exact 8-line vulnerable snippet from webhook/admission.go:109-117 verbatim under the same http.HandlerFunc shape (the full production admissionHandler at :85 requires *Webhook + AdmissionController + an informer-synced channel + controller-runtime / client-go scaffolding — the bug is the missing http.MaxBytesReader, nothing else in the handler). Bound to 127.0.0.1:18098.
PoC client streamed 2 GiB of a bytes over a raw TCP socket. runtime.MemStats.HeapAlloc sampler:
The advisory predicted ~2× from io.TeeReader doubling the body once in bodyBuffer. The observed 4.5× ratio comes from the interaction of two amplifiers: bytes.Buffer.ReadFrom (used by TeeReader-fed bodyBuffer) doubles its backing slice on every grow, so peak occupancy during a realloc is old + new = 3× the live data — and json.Decoder holds its own working buffer in parallel. The advisory's 2× floor is comfortably exceeded.
Affected software
| Software | Affected versions |
|---|---|
knative.dev/pkgGo · osv:Go:knative.dev/pkg |
|
About knative.dev/pkg
This is the only vulnerability in knative.dev/pkg in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54462
- GitHub Advisory Database https://github.com/advisories/GHSA-2hw4-c9m4-f2fj