Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/getkin/kin-openapi
  4. ›
  5. CVE-2026-77354

CVE-2026-77354: kin-openapi has uncontrolled resource consumption in openapi3filter deepObject query parameter decoding

August 21, 2026

An uncontrolled resource consumption vulnerability in openapi3filter lets any unauthenticated client force multi-gigabyte heap allocation with a single, tiny HTTP request. When a spec declares a deepObject-style query parameter whose schema contains an array (a normal, documented pattern), the decoder reconstructs the array by reading the largest attacker-supplied index and allocating one slot for every position from 0 up to that index — before schema validation (including maxItems) ever runs. A request as small as 24 bytes (?param[items][50000000]=x) drives heap allocation to ~6.1 GiB, reliably triggering an OOM kill / restart loop on memory-constrained services.

References

  • github.com/advisories/GHSA-xhj3-7xw9-vr34
  • github.com/getkin/kin-openapi/commit/1223a0f215d2cf9beb2d9eb9ea2649d001c21388
  • github.com/getkin/kin-openapi/releases/tag/v0.142.0
  • github.com/getkin/kin-openapi/security/advisories/GHSA-xhj3-7xw9-vr34
  • nvd.nist.gov/vuln/detail/CVE-2026-77354

Code Behaviors & Features

Detect and mitigate CVE-2026-77354 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.124.0 before 0.142.0

Fixed versions

  • 0.142.0

Solution

Upgrade to version 0.142.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-789: Memory Allocation with Excessive Size Value

Source file

go/github.com/getkin/kin-openapi/CVE-2026-77354.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 22 Aug 2026 12:16:35 +0000.