---
id: CVE-2026-77354
title: kin-openapi is a Go project for handling OpenAPI files
summary: >-
  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…
severity: high
cwe:
  - CWE-400
  - CWE-789
  - CWE-1285
vendor: getkin
product: github.com/getkin/kin-openapi
affected:
  - 'github.com/getkin/kin-openapi >= 0.124.0, < 0.142.0'
patched:
  - github.com/getkin/kin-openapi 0.142.0
published: '2026-08-21'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T21:06:39.057'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77354'
references:
  - url: >-
      https://github.com/getkin/kin-openapi/commit/1223a0f215d2cf9beb2d9eb9ea2649d001c21388
    label: security-advisories@github.com
  - url: 'https://github.com/getkin/kin-openapi/pull/923'
    label: security-advisories@github.com
  - url: 'https://github.com/getkin/kin-openapi/releases/tag/v0.142.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/getkin/kin-openapi/security/advisories/GHSA-xhj3-7xw9-vr34
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-xhj3-7xw9-vr34'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77354.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-77354'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521204'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-77354'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-77354'
tags:
  - nvd
  - ghsa
  - go
  - csaf
  - vex
  - red-hat
epss: 0.00524
epssPercentile: 0.4201
aliases:
  - GHSA-xhj3-7xw9-vr34
ecosystem: go
ingestedAt: '2026-08-21T21:22:19.470Z'
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-77354)

Affected packages:

- `github.com/getkin/kin-openapi >= 0.124.0, < 0.142.0`

Patched in:

- `github.com/getkin/kin-openapi 0.142.0`

Source: https://github.com/advisories/GHSA-xhj3-7xw9-vr34

## Vendor advisories

- **Red Hat VEX** · Important · affected: Migration Toolkit for Applications 8, Multicluster Global Hub, OpenShift Serverless, Red Hat Advanced Cluster Management for Kubernetes 2, Red Hat Ceph Storage 6, Red Hat Ceph Storage 7, … · no fix planned: Red Hat Ceph Storage 6, Red Hat Ceph Storage 7, Red Hat Ceph Storage 8, Red Hat Ceph Storage 9, … · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-77354.json)
