CyberRota Analysis
AI-GeneratedThe kin-openapi library versions 0.2.0 to 0.144.0 are vulnerable to a denial of service due to a NULL-pointer dereference in the openapi3filter.ValidateRequest function when handling content parameters without schemas. This vulnerability can lead to request validation panics, resulting in aborted requests or potential process crashes in applications that do not implement recovery mechanisms. Developers and organizations using affected versions of kin-openapi should prioritize upgrading to version 0.144.0 or later to mitigate this risk.
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.2.0 until 0.144.0, openapi3filter.ValidateRequest can encounter a NULL-pointer-dereference denial of service when an operation declares a content parameter whose application/json media type has no schema. In openapi3filter/req_resp_decoder.go, the default defaultContentParameterDecoder dereferences mt.Schema.Value without checking whether mt.Schema is nil, even though doc.Validate() accepts the document under OpenAPI 3.0.x and 3.1.x. A single unauthenticated request supplying the parameter value can panic request validation, causing an aborted request with log growth in the common synchronous net/http path or a full process crash in integrations without recovery. This issue is fixed in version 0.144.0.