kin-openapi openapi3filter: nil-pointer panic in ValidateResponse on a response header declared with content
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in github.com/getkin/kin-openapi 0.146.0.
kin-openapi is a Go project for handling OpenAPI files. Prior to 0.146.0, openapi3filter.ValidateResponse passes a nil response header schema to decodeValue when an OpenAPI document declares the header with content instead of schema. The document passes validation, but every response validation for the affected operation dereferences the nil schema and panics even when the response does not contain the declared header. Applications that ingest an untrusted specification can expose this as remote availability impact, while applications using only trusted local specifications still crash when the affected operation is exercised. This issue is fixed in version 0.146.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| getkin | <0.146.0 | ||
| go: github.com/getkin/kin-openapi | <0.146.0 | 0.146.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in github.com/getkin/kin-openapi (Go), strongest first
Embed
A live severity badge for an advisory, README or ticket