CVE-2026-76905
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Summary
kin-openapi is a Go project for handling OpenAPI files. From 0.10.0 until 0.141.0, openapi3filter.convertParseError in openapi3filter/validation_error_encoder.go dereferences e.Parameter.In without checking whether e.Parameter is nil. A malformed non-string scalar field in a multipart/form-data request body produces a nested ParseError with a nil RequestError.Parameter, and applications that render the validation error through openapi3filter.ConvertErrors or ValidationErrorEncoder panic. An unauthenticated client can repeatedly send such requests to deny service when the application lacks a recovery boundary. JSON request bodies and applications that do not use these error-rendering helpers are not affected. This issue is fixed in version 0.141.0.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| getkin | kin-openapi | >= 0.10.0, < 0.141.0 | affected |
Weaknesses
- CWE-476: CWE-476: NULL Pointer Dereference
References
- https://github.com/getkin/kin-openapi/security/advisories/GHSA-mmfr-pmjx-hw9w
- https://github.com/getkin/kin-openapi/commit/1d0a337c9b1570fab283be8a04c8af6e43b9a22c
- https://github.com/getkin/kin-openapi/releases/tag/v0.141.0
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.