REDHAT-BUG-2518119: Medium severity go/github.com/getkin/kin-openapi vulnerability

Published Aug 18, 2026
·
Updated

kin-openapi is a Go project for handling OpenAPI files. From 0.2.0 until 0.144.0, openapi3filter.ValidateRequest can encounter a NULL-pointer-dereference denial of service when an operation declares a content parameter whose application/json media type has no schema. In openapi3filter/reqrespdecoder.go, the default defaultContentParameterDecoder dereferences mt.Schema.Value without checking whether mt.Schema is nil, even though doc.Validate() accepts the document under OpenAPI 3.0.x and 3.1.x. A single unauthenticated request supplying the parameter value can panic request validation, causing an aborted request with log growth in the common synchronous net/http path or a full process crash in integrations without recovery. This issue is fixed in version 0.144.0.

Affected Software

1 affected component
go/github.com/getkin/kin-openapi>=0.2.0<0.144.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.144.0

Event History

Aug 18, 2026
Data Sourced
via Red Hat·06:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this denial of service?

Deployments using kin-openapi versions from 0.2.0 before 0.144.0 are exposed when they validate requests for an OpenAPI operation that declares a content parameter with application/json but no schema. Documents accepted by doc.Validate() under OpenAPI 3.0.x or 3.1.x can contain the affected configuration.

2

What does an attacker need to trigger the issue?

An attacker only needs to send a single unauthenticated request that supplies the affected parameter value. The request reaches openapi3filter.ValidateRequest and can trigger a nil-pointer dereference.

3

What is the operational impact if the issue is triggered?

In the common synchronous net/http path, request validation aborts and can produce log growth. Integrations that do not recover from the panic can experience a full process crash.

4

What can be done if upgrading is not immediately possible?

Avoid OpenAPI operations with content parameters whose application/json media type has no schema, or ensure request-validation panics are recovered by the integration. Upgrade to version 0.144.0 when possible.

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