Getkin kin-openapi
kin-openapi: Incomplete Fix for GHSA-p6wj-qrr4-pgh5: Three Unpatched nil-Items Panic Paths in openapi3filter
kin-openapi is a Go project for handling OpenAPI files. From 0.136.0 until 0.149.0, three openapi3filter decoder paths that were missed by the fix for GHSA-p6wj-qrr4-pgh5 lack a nil-items guard for legal OpenAPI 3.1 array schemas. An unauthenticated remote client can trigger a deterministic nil-pointer panic through an array query parameter, a deepObject query parameter containing an array property, or an application/x-www-form-urlencoded request body whose array property appears inside an allOf, anyOf, or oneOf subschema. The query and composed-body paths reach urlValuesDecoder.parseArray, while the deepObject path reaches buildResObj, and all pass a nil items schema into code that dereferences it. This issue is fixed in version 0.149.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.136.0, < 0.149.0
Fixed in 0.149.0
Mitigation
Upgrade kin-openapi to 0.149.0 or later.
References
- Vendor advisory github.com/getkin/kin-openapi/security/advisor…
- Patch github.com/getkin/kin-openapi/commit/9814d1f2b…
- Release notes github.com/getkin/kin-openapi/releases/tag/v0.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.