FlawAtlas
Search the atlas
CVE-2024-28180 Moderate

Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)

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.

Exploit probability 2.0%
Published March 9, 2024
Required by Not available
Last source change August 12, 2026

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

27 explicit affected versions

Go github.com/go-jose/go-jose/v3
Go github.com/go-jose/go-jose/v4
Go gopkg.in/go-jose/go-jose.v2
Go gopkg.in/square/go-jose.v2
Go github.com/go-jose/go-jose/v3
Go github.com/go-jose/go-jose/v4
Go gopkg.in/go-jose/go-jose.v2
Go gopkg.in/square/go-jose.v2
Chainguard bank-vaults
Chainguard traefik-fips
Chainguard zot
Chainguard kots
Chainguard consul-1.17-fips
Chainguard kyverno
Chainguard sops
Chainguard consul-1.17
Chainguard traefik
Chainguard kubescape
Chainguard vault-fips-1.14

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities CVE-2024-28180

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.

View original source
Open Source Vulnerabilities GO-2024-2631

An attacker could send a JWE containing compressed data that used large amounts of memory and CPU when decompressed by Decrypt or DecryptMulti.

View original source
Open Source Vulnerabilities GHSA-c5q2-7r4c-mv6g

### 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: - github.com/go-jose/go-jose/v4 version 4.0.1 - github.com/go-jose/go-jose/v3 version 3.0.3 - gopkg.in/go-jose/go-jose.v2 version 2.6.3 The problem will not be fixed in the following package because the package is archived: - gopkg.in/square/go-jose.v2

View original source

05 / REFERENCES

Further evidence