Description
kin-openapi is a Go project for handling OpenAPI files. Prior to 0.131.0, when validating a request with a multipart/form-data schema, if the OpenAPI schema allows it, an attacker can upload a crafted ZIP file (e.g., a ZIP bomb), causing the server to consume all available system memory. The root cause comes from the ZipFileBodyDecoder, which is registered automatically by the module (contrary to what the documentation says). This vulnerability is fixed in 0.131.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| getkin | kin-openapi | < 0.131.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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | golang-github-getkin-kin-openapi | 0.135.0-1 | — |
| Debian 13 | golang-github-getkin-kin-openapi | No fix yet | — |
| Debian 12 | golang-github-getkin-kin-openapi | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | grafana | 12.4.5-150200.3.91.1 | SUSE-SU-2026:3718-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250327T184518-1.1 | openSUSE-SU-2025:14937-1 |
| openSUSE Tumbleweed | grafana | 11.6.14+security01-4.1 | openSUSE-SU-2026:10922-1 |
| openSUSE Tumbleweed | mcphost | 0.34.0-1.1 | openSUSE-SU-2026:10731-1 |
| openSUSE Leap 16.0 | grafana | 11.6.14+security04-bp160.1.1 | openSUSE-SU-2026:20940-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | dataplaneapi | 3.1.5-r2 | — |
| Wolfi rolling | gptscript | 0.9.5-r11 | — |
| Wolfi rolling | nuclei | 3.4.3-r1 | — |
| Wolfi rolling | timoni | 0.24.0-r5 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/getkin/kin-openapi | < 0.131.0 | 0.131.0 | GHSA-wq9g-9vfc-cfq9 |
Advisories 5
- SUSE-SU-2026:3718-1 Security update for grafana SUSE / openSUSE Security Updates · Aug 26, 2026
- openSUSE-SU-2026:20940-1 Security update for grafana SUSE / openSUSE Security Updates · Jun 13, 2026
- openSUSE-SU-2026:10922-1 grafana-11.6.14+security01-4.1 on GA media SUSE / openSUSE Security Updates · Jun 2, 2026
- openSUSE-SU-2026:10731-1 mcphost-0.34.0-1.1 on GA media SUSE / openSUSE Security Updates · May 9, 2026
- openSUSE-SU-2025:14937-1 govulncheck-vulndb-0.0.20250327T184518-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/getkin/kin-openapi/security/advisories/GHSA-wq9g-9vfc-cfq9
- https://github.com/getkin/kin-openapi/commit/67f0b233ffc01332f7d993f79490fbea5f4455f1
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1275
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1523
- https://github.com/getkin/kin-openapi?tab=readme-ov-file#custom-content-type-for-body-of-http-requestresponse