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

Published Oct 15, 2026
·
Updated

kin-openapi is a Go project for handling OpenAPI files. From 0.145.0 until 0.146.0, openapi3filter repeatedly calls regexp.MustCompile for the same parameter-name regular expression inside the per-query-key loop in urlValuesDecoder.DecodeObject used to decode a deepObject query parameter. An unauthenticated remote client can send an affected endpoint a request containing many unrelated query keys, causing ValidateRequest to perform work and allocations proportional to the attacker-controlled key count for every deepObject parameter. The expression itself is fixed and this is not regular expression denial of service; the resource consumption comes from loop-invariant recompilation. This issue is fixed in version 0.146.0.

Affected Software

1 affected component
go/github.com/getkin/kin-openapi>=0.145.0<0.146.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.146.0

Event History

Oct 15, 2026
Data Sourced
via Red Hat·03:53 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using kin-openapi versions from 0.145.0 up to, but not including, 0.146.0 are affected when they validate requests for endpoints with deepObject query parameters. The affected code is in openapi3filter request validation.

2

What does an attacker need to do to trigger the resource consumption?

An unauthenticated remote client only needs to send a request to an affected endpoint with many unrelated query-string keys. Each key causes repeated compilation of the same parameter-name regular expression for every deepObject parameter processed during ValidateRequest.

3

Is this a regular-expression denial-of-service issue?

No. The regular expression is fixed; the resource use results from recompiling it repeatedly inside a loop, causing work and allocations to scale with the attacker-controlled number of query keys.

4

What version contains the fix?

Version 0.146.0 fixes the issue.

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