CVE-2026-76905
High · 7.5CVSS
7.5
EPSS
0.6%
Published
Aug 21, 2026
CISA due date
—
Cloudanix analysis
A bug in a library that checks web request formats lets attackers crash servers by sending specially crafted file-upload style requests.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Nil pointer dereference in openapi3filter.convertParseError when handling a nested ParseError from a malformed non-string scalar field in a multipart/form-data body, causing an unhandled panic in ConvertErrors or ValidationErrorEncoder.
Why it matters to the business
Repeated unauthenticated requests can crash the service process, leading to denial of service and operational downtime for any application exposing the affected validation paths without a recovery boundary.
How an attack unfolds
An attacker crafts a multipart/form-data request containing a non-string scalar value in a parameter field, triggering a ParseError with a nil Parameter during validation error encoding; the missing nil check then causes a panic that terminates the request handler.
How to fix it
Upgrade kin-openapi to version 0.141.0 or later. Wrap validation error handling with a Go recovery middleware. Avoid rendering validation errors for multipart bodies if the helpers cannot be updated.
How to confirm the fix worked
Confirm the kin-openapi module version is at least 0.141.0. Replay a malformed multipart request containing a non-string scalar and verify the handler no longer panics.
Typical attack path
- Send a crafted multipart/form-data POST or PUT request containing a non-string scalar in a defined parameter
- Trigger openapi3filter validation that produces a nested ParseError with nil RequestError.Parameter
- Invoke ConvertErrors or ValidationErrorEncoder on the error path
- Dereference the nil Parameter field and panic the handler
- Repeat to sustain denial of service
How to detect it
Search application logs and crash dumps for repeated panics originating from openapi3filter/validation_error_encoder.go or ConvertErrors during multipart parsing; correlate with 4xx/5xx responses on form endpoints.
What your security team should do
- Immediately upgrade all instances of kin-openapi to 0.141.0
- Add panic recovery middleware around OpenAPI validation handlers
- Disable or sanitize multipart validation error rendering until patched
- Monitor EPSS trend and re-evaluate exploit maturity weekly
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121522 In BuildKit versions v0.26.0 through v0.34.1, a specific build definition that resolves… CWE-476
- CVE-2026-120955 The GridFS file download API in the MongoDB C Driver does not check the result of an… CWE-476
- CVE-2026-115297 NULL Pointer Dereference (CWE-476) in the AMQP protocol parser in Packetbeat can lead to… CWE-476
- CVE-2026-120758 HDF5 through 2.2.0 contains a NULL pointer dereference vulnerability in H5HL_unprotect()… CWE-476
- CVE-2026-43603 A NULL pointer dereference in the Linux GPU driver could potentially lead to a kernel… CWE-476
- CVE-2026-121402 FreeRDP before 3.32.2 contains a NULL pointer dereference vulnerability that allows… CWE-476
- CVE-2026-121401 FreeRDP before 3.32.2 contains a denial of service vulnerability where rdg_process_packet… CWE-476
- CVE-2026-115403 In Eclipse ThreadX NetX Duo versions 6.0 through 6.5.2.202603a, built with BSD raw socket… CWE-476