Vulnerability · Published Mar 19, 2025 · Assigned by GitHub_M
CVE-2025-30153Improper Handling of Highly Compressed Data (Data Amplification) in github.com/getkin/kin-openapi/openapi3filter
High 7.5
In plain English
A high-severity security flaw in kin-openapi from getkin. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-getkin-kin-openapi | no fix listed | DEBIAN-CVE-2025-30153 |
| Debian:13 | golang-github-getkin-kin-openapi | no fix listed | DEBIAN-CVE-2025-30153 |
| Debian:14 | golang-github-getkin-kin-openapi | 0.135.0-1 | DEBIAN-CVE-2025-30153 |
| Go | github.com/getkin/kin-openapi | 0.131.0 | GHSA-wq9g-9vfc-cfq9 |
| Go | github.com/getkin/kin-openapi | 0.131.0 | GO-2025-3533 |
| Ubuntu:22.04:LTS | golang-github-getkin-kin-openapi | no fix listed | UBUNTU-CVE-2025-30153 |
| Ubuntu:24.04:LTS | golang-github-getkin-kin-openapi | no fix listed | UBUNTU-CVE-2025-30153 |
| Ubuntu:26.04:LTS | golang-github-getkin-kin-openapi | no fix listed | UBUNTU-CVE-2025-30153 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| getkin | kin-openapi | < 0.131.0 |
Weakness: CWE-409 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/getkin/kin-openapi/security/advisories/GHSA-wq9g-9vfc-cfq9 x_refsource_CONFIRM
- https://github.com/getkin/kin-openapi/commit/67f0b233ffc01332f7d993f79490fbea5f4455f1 x_refsource_MISC
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1275 x_refsource_MISC
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1523 x_refsource_MISC
- https://github.com/getkin/kin-openapi?tab=readme-ov-file#custom-content-type-for-body-of-http-requestresponse x_refsource_MISC