Go Vulnerability Database
GO-2024-2631
Decompression bomb vulnerability in github.com/go-jose/go-jose
Details
An attacker could send a JWE containing compressed data that used large amounts of memory and CPU when decompressed by Decrypt or DecryptMulti.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/go-jose/go-jose/v4 | All versions before 4.0.1 (fixed in 4.0.1) |
| Go | github.com/go-jose/go-jose/v3 | All versions before 3.0.3 (fixed in 3.0.3) |
| Go | gopkg.in/go-jose/go-jose.v2 | All versions before 2.6.3 (fixed in 2.6.3) |
| Go | gopkg.in/square/go-jose.v2 | All versions, no fix listed |
References
- https://github.com/go-jose/go-jose/security/advisories/GHSA-c5q2-7r4c-mv6g
- https://github.com/go-jose/go-jose/commit/0dd4dd541c665fb292d664f77604ba694726f298
- https://github.com/go-jose/go-jose/commit/add6a284ea0f844fd6628cba637be5451fe4b28a
- https://github.com/go-jose/go-jose/commit/f4c051a0653d78199a053892f7619ebf96339502