CVE-2026-100354

kin-openapi: Uncontrolled Recursion on Circular allOf/anyOf/oneOf Schemas Causes Fatal Process Crash

Published Oct 15, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
kin-openapi is a Go project for handling OpenAPI files. Prior to 0.149.0, runtime request, response, and direct schema validation lacks cycle detection when an allOf, anyOf, or oneOf chain refers back to an ancestor schema, even though loading and document validation accept the circular reference. A request or response that reaches the affected schema causes unbounded recursion in Schema.visitJSON or openapi3filter.decodeValue and exhausts the Go goroutine stack. The resulting fatal stack overflow cannot be caught with recover and terminates the entire process, including unrelated requests. This issue is fixed in version 0.149.0.

Analysis

AI-generated

Technical impact

kin-openapi versions prior to 0.149.0 lack cycle detection for nested allOf, anyOf, or oneOf schemas that reference an ancestor schema. When a request, response, or direct validation reaches such a circular reference, the library recurses without limit in Schema.visitJSON or openapi3filter.decodeValue, exhausting the Go goroutine stack. The resulting stack overflow is fatal, cannot be caught by recover, and terminates the entire process—including unrelated requests—resulting in a denial‑of‑service condition for all users of the application.

Affected Systems

The vulnerability affects the GetKin project, specifically the kin-openapi Go library. All releases earlier than v0.149.0 are impacted; the security fix is included beginning with version 0.149.0.

Risk and Exploitability

The CVSS score of 7.5 reflects a moderate‑to‑high severity for causing an unhandled crash, though the EPSS score of less than 1% indicates a low likelihood of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Exploitation would typically occur when an attacker supplies or induces processing of a circular OpenAPI schema—either during file upload, API import, or request parsing—causing the library to enter infinite recursion and crash the host process. This leads to a denial of service for all traffic handled by the affected process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kin-openapi dependency to version 0.149.0 or newer.
  • Rebuild or redeploy all services that import the library so the patched version is loaded.
  • Monitor application logs for stack overflow errors and ensure that process restart or fail‑over mechanisms are in place to recover from crashes.

Generated by OpenCVE AI on October 17, 2026 at 01:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-g8cf-rcjf-c8cf kin-openapi: Uncontrolled Recursion on Circular allOf/anyOf/oneOf Schemas Causes Fatal Process Crash
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': 'poc', '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.149.0, runtime request, response, and direct schema validation lacks cycle detection when an allOf, anyOf, or oneOf chain refers back to an ancestor schema, even though loading and document validation accept the circular reference. A request or response that reaches the affected schema causes unbounded recursion in Schema.visitJSON or openapi3filter.decodeValue and exhausts the Go goroutine stack. The resulting fatal stack overflow cannot be caught with recover and terminates the entire process, including unrelated requests. This issue is fixed in version 0.149.0.
Title kin-openapi: Uncontrolled Recursion on Circular allOf/anyOf/oneOf Schemas Causes Fatal Process Crash
Weaknesses CWE-674
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
  • CWE-674

    Uncontrolled Recursion

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 15, 2026, 6:31 PM
Reserved
Sep 25, 2026, 7:19 PM
Status
Deferred
Published
Oct 15, 2026, 5:17 PM
Modified
Oct 15, 2026, 7:17 PM
Severity
Important
Public date
Oct 15, 2026, 4:02 PM