CVE-2025-30153
HIGH 7.5CVSS 3.1Improper Handling of Highly Compressed Data (Data Amplification) in github.com/getkin/kin-openapi/openapi3filter
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.
- Published
- 19 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-409
- Also known as
- GHSA-wq9g-9vfc-cfq9GO-2025-3533
- Sources
- NVDJSONOSV GHSA-wq9g-9vfc-cfq9JSONOSV GO-2025-3533JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/getkin/kin-openapi | < 0.131.0 | 0.131.0 |
References
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1275 · WEB
- https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1523 · WEB
- https://github.com/getkin/kin-openapi/commit/67f0b233ffc01332f7d993f79490fbea5f4455f1 · WEB, FIX
- https://github.com/getkin/kin-openapi/security/advisories/GHSA-wq9g-9vfc-cfq9 · WEB, ADVISORY
- https://github.com/getkin/kin-openapi?tab=readme-ov-file#custom-content-type-for-body-of-http-requestresponse · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-30153 · ADVISORY
- https://github.com/getkin/kin-openapi/pull/1059 · WEB, FIX
- https://github.com/getkin/kin-openapi · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 19 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Mar 2025)