kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS)
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.145.0.
kin-openapi is a Go project for handling OpenAPI files. Prior to 0.145.0, openapi3.Loader can dereference a nil SchemaRef.Value while resolving a self-referential additionalProperties JSON Reference such as a schema that points to its own additionalProperties member. Loading an attacker-controlled OpenAPI document through LoadFromData, LoadFromFile, or LoadFromURI reaches resolveComponent before document validation and can panic the loading process. Resolved additionalProperties schemas and ordinary recursive schemas do not take the vulnerable nil-value path. This issue is fixed in version 0.145.0.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| getkin | <0.145.0 | ||
| go: github.com/getkin/kin-openapi | <0.145.0 | 0.145.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