CyberRota Analysis
AI-GeneratedThe kin-openapi library versions 0.124.0 to 0.142.0 are vulnerable to a denial-of-service attack due to improper handling of deepObject query parameters, allowing unauthenticated clients to trigger excessive memory allocation. By sending specially crafted requests, an attacker can cause multi-gigabyte heap allocations, leading to out-of-memory (OOM) conditions and potential service disruptions. Organizations using affected versions should prioritize upgrading to version 0.142.0 or later to mitigate this high-severity vulnerability.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
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.