Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-100350 EUVD-2026-102158GHSA-h4r5-mxv5-8mjcGO-2026-6787

kin-openapi deepObject query decoding repeatedly compiles an invariant regular expression

Published Oct 15, 2026 · Updated Oct 15, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
getkin kin-openapi >= 0.145.0, < 0.146.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-getkin-kin-openapi No fix yet —
Ubuntu 26.04 LTS golang-github-getkin-kin-openapi No fix yet —
Ubuntu 24.04 LTS golang-github-getkin-kin-openapi No fix yet —
Ubuntu 22.04 LTS golang-github-getkin-kin-openapi No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.12-0.4.hum1 RHSA-2026:76677
Red Hat Hardened Images 1 hugo 0.168.0-0.1.hum1 RHSA-2026:82637
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed hugo 0.168.0-2.1 openSUSE-SU-2026:12164-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/getkin/kin-openapi >= 0.145.0, < 0.146.0 0.146.0 GHSA-h4r5-mxv5-8mjc

Advisories 3

References