golang-github-getkin-kin-openapi — security advisory
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.
- Products
- golang-github-getkin-kin-openapi
- Affected versions
- 0.110.0-1, 0.117.0-1, 0.118.0-1, 0.120.0-1, 0.122.0-1, 0.122.0-2, 0.122.0-3, 0.123.0-1, 0.124.0-1, 0.135.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-77354
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 09:03 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-77354
golang-github-getkin-kin-openapi
Fixed versions: Not specified
golang-github-getkin-kin-openapi
Fixed versions: Not specified
golang-github-getkin-kin-openapi
Fixed versions: Not specified
Complete source record
{
"id": "6bfa75d6c555eabdbf0e32200919ee9fe5075f15897d9ac746c2f8288f97c521",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-77354",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-77354",
"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 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.",
"evidence": "osv:DEBIAN-CVE-2026-77354",
"products": [
{
"name": {
"value": "golang-github-getkin-kin-openapi",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.110.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.117.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.118.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.120.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.122.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.122.0-2",
"evidence": "/affected/0/versions"
},
{
"value": "0.122.0-3",
"evidence": "/affected/0/versions"
},
{
"value": "0.123.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.124.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.135.0-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-github-getkin-kin-openapi",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.124.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.135.0-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-github-getkin-kin-openapi",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.124.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.135.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-77354",
"aliases": [
"DEBIAN-CVE-2026-77354"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-getkin-kin-openapi",
"purl": "pkg:deb/debian/golang-github-getkin-kin-openapi?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"0.110.0-1",
"0.117.0-1",
"0.118.0-1",
"0.120.0-1",
"0.122.0-1",
"0.122.0-2",
"0.122.0-3",
"0.123.0-1",
"0.124.0-1",
"0.135.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77354.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-getkin-kin-openapi",
"purl": "pkg:deb/debian/golang-github-getkin-kin-openapi?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"0.124.0-1",
"0.135.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77354.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-github-getkin-kin-openapi",
"purl": "pkg:deb/debian/golang-github-getkin-kin-openapi?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"0.124.0-1",
"0.135.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-77354.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-13T09:47:30.875223050Z",
"provider": "osv",
"upstream": [
"CVE-2026-77354"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-77354"
]
},
"related_cves": [
{
"value": "CVE-2026-77354",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 307568,
"published_at": "2026-08-21T21:17:07.13+00:00"
}