CVE-2025-30153
Aliases:GHSA-wq9g-9vfc-cfq9GO-2025-3533
Advisory lineage Upstream: 0 Downstream: 4
Deferred
Published: 19 Mar 2025, 16:03
Last modified:19 Mar 2025, 18:25
Vulnerability Summary
Overall Risk (default)
medium
30/100 CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
0.5% LOW
0% probability +0.17%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
19 Mar 2025, 16:03
Published
Vulnerability first disclosed
19 Mar 2025, 18:25
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Trends
Current EPSS score: 0.50%• Percentile: 39%
Techniques & Countermeasures
- CWE-409•Improper Handling of Highly Compressed Data (Data Amplification)
The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
Affected Systems
- getkin•kin-openapi
< 0.131.0
- github.com/getkin•kin-openapi
< 0.131.0
References (8)
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2025-30153
- https://github.com/getkin/kin-openapi/pull/1059
- https://github.com/getkin/kin-openapi