REDHAT-BUG-2553590: High severity go/github.com/getkin/kin-openapi vulnerability

Published Oct 15, 2026
·
Updated

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.

Affected Software

1 affected component
go/github.com/getkin/kin-openapi<0.149.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade kin-openapi to a version that resolves this vulnerability.

    Fixed in 0.149.0

Event History

Oct 15, 2026
Data Sourced
via Red Hat·04:22 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required to trigger the denial of service?

An application must perform runtime request validation, response validation, or direct schema validation against a schema in which an allOf, anyOf, or oneOf chain refers back to an ancestor schema. Processing a request or response that reaches that schema causes unbounded recursion.

2

Can this failure be contained to a single request?

No. The stack overflow is fatal, cannot be caught with recover, and terminates the entire Go process. Unrelated requests handled by the same process are also affected.

3

Are circular schemas rejected before runtime validation?

No. Loading and document validation accept the circular reference. The failure occurs when affected schemas are reached during runtime validation.

4

What version resolves the issue?

Upgrade kin-openapi to version 0.149.0 or later. Versions prior to 0.149.0 lack the required cycle detection for these validation paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203