Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. knative.dev/pkg
  4. ›
  5. GHSA-2hw4-c9m4-f2fj

GHSA-2hw4-c9m4-f2fj: knative.dev/pkg admission webhooks allow unbounded request-body memory exhaustion

October 28, 2026

knative.dev/pkg’s admission webhook handler reads the incoming HTTP request body via json.NewDecoder(io.TeeReader(r.Body, &bodyBuffer)) with no http.MaxBytesReader wrapping the body. Because every consumer of knative.dev/pkg/webhook inherits this handler (Knative serving / eventing, Tekton Pipelines, KEDA, Sigstore policy-controller, and others), a single oversized POST to any of those projects’ admission webhook ports drives the controller pod into memory exhaustion and OOM-kill. Worse, the io.TeeReader design keeps a verbatim copy of the body in bodyBuffer while the decoder also materializes the parsed struct — so the peak memory usage is roughly twice the body size.

This is the same shape as CVE-2026-24514 (ingress-nginx) and GHSA-9539-c3xr-w9vm (Kyverno admission body OOM) filed today against the same antipattern.

References

  • github.com/advisories/GHSA-2hw4-c9m4-f2fj
  • github.com/knative/pkg/commit/52dbd5ece63fe6d2d340ecbebec160550f460818
  • github.com/knative/pkg/pull/3363
  • github.com/knative/pkg/security/advisories/GHSA-2hw4-c9m4-f2fj

Code Behaviors & Features

Detect and mitigate GHSA-2hw4-c9m4-f2fj with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.0-20260531000007-52dbd5ece63f

Fixed versions

  • 0.0.0-20260531000007-52dbd5ece63f

Solution

Upgrade to version 0.0.0-20260531000007-52dbd5ece63f or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/knative.dev/pkg/GHSA-2hw4-c9m4-f2fj.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.