Skip to content
OpenAdvisories
High · 8.7 CVE-2026-77354 EUVD-2026-64151GHSA-xhj3-7xw9-vr34GO-2026-6275

kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query parameter decoding

Published Aug 21, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

Description

kin-openapi is a Go project for handling OpenAPI files. From 0.124.0 until 0.142.0, openapi3filter.sliceMapToSlice in openapi3filter/req_resp_decoder.go converts attacker-controlled sparse indexes from a deepObject query parameter into a dense slice by allocating entries from zero through the largest supplied index, after which buildResObj creates another slice of the same length. This allocation occurs before schema validation, so maxItems does not prevent it. An unauthenticated client can send a small query such as param[items][50000000]=x to an endpoint whose deepObject schema contains an array, forcing multi-gigabyte heap allocation and causing an OOM kill or restart loop. Other request-body encodings and styled parameters that do not produce bracketed integer indexes are not affected. This issue is fixed in version 0.142.0.

Affected products

VendorProductAffectedFixed
getkin kin-openapi >= 0.124.0, < 0.142.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
Debian 14 golang-github-getkin-kin-openapi No fix yet —
Debian 13 golang-github-getkin-kin-openapi No fix yet —
Debian 12 golang-github-getkin-kin-openapi No fix yet —
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
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gptscript No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/getkin/kin-openapi >= 0.124.0, < 0.142.0 0.142.0 GHSA-xhj3-7xw9-vr34

Advisories 2

References