CVE-2026-77354kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query…
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.
What to do
Fixed builds are available from Go: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-getkin-kin-openapi | Fix pending | UBUNTU-CVE-2026-77354 | |
| Ubuntu 26.04 | golang-github-getkin-kin-openapi | Under investigation | UBUNTU-CVE-2026-77354 | |
| Ubuntu 24.04 | golang-github-getkin-kin-openapi | Under investigation | UBUNTU-CVE-2026-77354 | |
| Ubuntu 22.04 | golang-github-getkin-kin-openapi | Under investigation | UBUNTU-CVE-2026-77354 | |
| Debian 14 | golang-github-getkin-kin-openapi | Fix pending | DEBIAN-CVE-2026-77354 | |
| Debian 13 | golang-github-getkin-kin-openapi | Fix pending | DEBIAN-CVE-2026-77354 | |
| Debian 12 | golang-github-getkin-kin-openapi | Fix pending | DEBIAN-CVE-2026-77354 | |
| Red Hat Enterprise Linux 10 | go-fdo-server | Not affected | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-manufacturer | Not affected | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-owner | Not affected | ||
| Red Hat Enterprise Linux 10 | go-fdo-server-rendezvous | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer | Not affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-core | Not affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-worker | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Not affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-pcp | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Not affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Not affected | ||
| Go library | github.com/getkin/kin-openapi | Fixed | 0.142.0 | GHSA-xhj3-7xw9-vr34 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- getkin kin-openapi: affected: >= 0.124.0, < 0.142.0
References
- https://github.com/getkin/kin-openapi/security/advisories/GHSA-xhj3-7xw9-vr34
- https://github.com/getkin/kin-openapi/pull/923
- https://github.com/getkin/kin-openapi/commit/1223a0f215d2cf9beb2d9eb9ea2649d001c21388
- https://github.com/getkin/kin-openapi/releases/tag/v0.142.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.