Skip to main content
← All vulnerabilities
CVE-2026-77354GO-2026-6275GHSA-XHJ3-7XW9-VR34

kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query parameter decoding

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.142.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

kin-openapi is a Go project for handling OpenAPI files. From 0.124.0 until 0.142.0, openapi3filter.sliceMapToSlice in openapi3filter/req_resp_decoder.go converts attacker-controlled sparse indexes from a deepObject query parameter into a dense slice by allocating entries from zero through the largest supplied index, after which buildResObj creates another slice of the same length. This allocation occurs before schema validation, so maxItems does not prevent it. An unauthenticated client can send a small query such as param[items][50000000]=x to an endpoint whose deepObject schema contains an array, forcing multi-gigabyte heap allocation and causing an OOM kill or restart loop. Other request-body encodings and styled parameters that do not produce bracketed integer indexes are not affected. This issue is fixed in version 0.142.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • getkin kin-openapi

    From 0.124.0 · fixed in 0.142.0

  • github.com/getkin/kin-openapiGo

    From 0.124.0 · fixed in 0.142.0

References 4

GitHub · getkin/kin-openapi