What’s Vulnerable › Vulnerabilities

CVE-2024-28180: Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)

Description

Package jose aims to provide an implementation of the Javascript Object Signing and Encryption set of standards. An attacker could send a JWE containing compressed data that used large amounts of memory and CPU when decompressed by Decrypt or DecryptMulti. Those functions now return an error if the decompressed data would exceed 250kB or 10x the compressed size (whichever is larger). This vulnerability has been patched in versions 4.0.1, 3.0.3 and 2.6.3.

Affected products

How to fix

Upgrade to a fixed version: go-jose 2.6.3, 3.0.3, 4.0.1; Go Github.Com/Go-Jose/Go-Jose/V3 3.0.3; Go Github.Com/Go-Jose/Go-Jose/V4 4.0.1; Gopkg.In/Go-Jose/Go-Jose.V2 2.6.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-28180 or the next vulnerability affects your stack