github.com/go-jose/go-jose/v4
Affected
- introduced
0, fixed4.0.1(semver)
Fixed versions
4.0.1
Fix
- Fixed version
4.0.1go get github.com/go-jose/go-jose/[email protected]
Advisory
Also known as: CVE-2024-28180, GO-2024-2631
Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)
Impact
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). Thanks to Enze Wang@Alioth and Jianjun Chen@Zhongguancun Lab (@zer0yu and @chenjj) for reporting.
Patches
The problem is fixed in the following packages and versions:
The problem will not be fixed in the following package because the package is archived:
Medium Basis: The source's own band: MODERATE
0, fixed 4.0.1 (semver)4.0.1
4.0.1go get github.com/go-jose/go-jose/[email protected]0, fixed 3.0.3 (semver)3.0.3
3.0.3go get github.com/go-jose/go-jose/[email protected]0, fixed 2.6.3 (semver)2.6.3
2.6.3go get gopkg.in/go-jose/[email protected]0, last affected 2.6.0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0