CVE-2026-76905

kin-openapi openai3filter: nil-pointer panic in ConvertErrors on malformed multipart/form-data body enables unauthenticated DoS

Published Aug 21, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A nil-pointer dereference occurs in the error‑encoding logic of a server that uses the kin‑openapi library when it processes a malformed multipart/form‑data request. The library’s ConvertErrors helper attempts to read a request parameter that the inner error structure does not supply, causing a panic. The resulting crash terminates the handler, exhausting available worker threads or processes until the application is restarted, which is a classic unavailability attack.

Affected Systems

The vulnerability is limited to applications that include kin‑openapi version 0.10.0 through 0.140.9 and that explicitly use the ConvertErrors or ValidationErrorEncoder functions to render validation errors. Systems running earlier or later releases, or bypassing these helper functions, are not affected. The library is used primarily in Go‑based web services that expose OpenAPI definitions via HTTP endpoints.

Risk and Exploitability

The CVSS base score of 7.5 indicates a high impact; the vulnerability can be triggered over the network by any client without authentication, as long as the target service accepts multipart/form‑data requests. No exploit code is required beyond crafting an invalid request body containing a non‑string scalar field. Because the EPSS metric is unavailable, the current data does not quantify how frequently attackers target this weakness, but the high severity and lack of mitigation on affected deployments make it a compelling target. The vulnerability is not yet listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade kin‑openapi to version 0.141.0 or later, where the nil check is added and the panic is prevented.
  • If an upgrade cannot be made immediately, remove or replace any usage of convertParseError, ConvertErrors, or ValidationErrorEncoder from the error handling path to avoid triggering the panic.
  • Wrap the web service with a panic‑recovery middleware or ensure it is already surrounded by a recovery boundary so that a panic does not bring down the entire application.

Generated by OpenCVE AI on August 21, 2026 at 22:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mmfr-pmjx-hw9w kin-openapi openai3filter: nil-pointer panic in ConvertErrors on malformed multipart/form-data body enables unauthenticated DoS
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Getkin
Getkin kin-openapi
Vendors & Products Getkin
Getkin kin-openapi
Type Values Removed Values Added
Description 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.
Title kin-openapi openai3filter: nil-pointer panic in ConvertErrors on malformed multipart/form-data body enables unauthenticated DoS
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 25, 2026, 2:21 PM
Reserved
Aug 19, 2026, 10:43 PM
Status
Deferred
Published
Aug 21, 2026, 9:17 PM
Modified
Oct 12, 2026, 4:10 PM
Severity
Moderate
Public date
Aug 21, 2026, 8:43 PM