# CVE-2026-77354: kin-openapi: Uncontrolled resource consumption in openapi3filter deepObject query parameter decoding

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-08-21T20:44:47.792Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-xhj3-7xw9-vr34, GO-2026-6275
- Related: CGA-7h42-wpfg-p865
- Weaknesses: CWE-400, CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- getkin kin-openapi: >= 0.124.0, < 0.142.0
- github.com/getkin/kin-openapi (Go): from 0.124.0 before 0.142.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/getkin/kin-openapi/security/advisories/GHSA-xhj3-7xw9-vr34> (advisory, web)
- <https://github.com/getkin/kin-openapi/pull/923>
- <https://github.com/getkin/kin-openapi/commit/1223a0f215d2cf9beb2d9eb9ea2649d001c21388> (fix, web)
- <https://github.com/getkin/kin-openapi/releases/tag/v0.142.0> (web)
- <https://github.com/getkin/kin-openapi> (package)

## Sources

- CVE List: [CVE-2026-77354](https://www.cve.org/CVERecord?id=CVE-2026-77354), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-xhj3-7xw9-vr34](https://github.com/advisories/GHSA-xhj3-7xw9-vr34), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6275](https://pkg.go.dev/vuln/GO-2026-6275), CC-BY-4.0, modified 2026-09-02
- NVD: [CVE-2026-77354](https://nvd.nist.gov/vuln/detail/CVE-2026-77354), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-77354 · Whole record: https://cve.day/CVE-2026-77354.json · Rebuilt by cve.day 2026-11-25T22:59:34.838Z
