CVE-2026-100348

kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS)

Published Oct 15, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability in kin-openapi allows a nil pointer dereference when the loader resolves a self‑referential $ref inside additionalProperties. If an attacker supplies an OpenAPI document that references its own additionalProperties member, the loader will panic during the resolveComponent step, aborting the loading process. This constitutes a denial‑of‑service condition, classified as CWE‑476.

Affected Systems

The issue affects the getkin kin-openapi library for all releases prior to 0.145.0. Any installation of kin‑openapi that uses the openapi3.Loader to load specifications from an external source remains vulnerable.

Risk and Exploitability

The CVSS score of 5.3 indicates medium severity. The EPSS score of less than 1% suggests a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The problem is triggered when an application that uses kin-openapi’s Loader processes a maliciously crafted OpenAPI document containing a self‑referential $ref within additionalProperties. The likely attack vector is an application that loads OpenAPI specifications from an external or untrusted source. If such a document reaches the resolveComponent step, the loader will panic, terminating the process and causing a denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to kin‑openapi v0.145.0 or newer
  • If an upgrade is not immediately possible, restrict the loader to only process trusted OpenAPI files or validate specifications before passing them to LoadFromData/LoadFromFile/LoadFromURI
  • Monitor the application for crashes related to this panic and ensure the service can recover or restart automatically

Generated by OpenCVE AI on October 16, 2026 at 20:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mh7x-f8wq-4jhx kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS)
History
Type Values Removed Values Added
First Time appeared Getkin
Getkin kin-openapi
Vendors & Products Getkin
Getkin kin-openapi
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description 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.
Title kin-openapi spec loader panics on a self-referential additionalProperties $ref (nil-pointer DoS)
Weaknesses CWE-476
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 15, 2026, 3:44 PM
Reserved
Sep 25, 2026, 7:19 PM
Status
Deferred
Published
Oct 15, 2026, 4:17 PM
Modified
Oct 15, 2026, 4:17 PM
Severity
Moderate
Public date
Oct 15, 2026, 3:31 PM