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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.49% (percentile 85, 2026-11-28)
- **CWE:** CWE-409
- **Aliases:** GHSA-c5q2-7r4c-mv6g, GO-2024-2631
- **Published:** 2024-03-07T22:54:44.000Z
- **Modified:** 2026-09-10T03:50:10.300Z

## Who should check

- Projects that depend on Go package github.com/go-jose/go-jose/v4 (\< 4.0.1)
- Projects that depend on Go package github.com/go-jose/go-jose/v3 (\< 3.0.3)
- Projects that depend on Go package gopkg.in/go-jose/go-jose.v2 (\< 2.6.3)
- Projects that depend on Go package gopkg.in/square/go-jose.v2 (\<= 2.6.0)
- Anyone running go-jose \< 4.0.1; \< 3.0.3; \< 2.6.3

## 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 and fixed versions

- Go `github.com/go-jose/go-jose/v4`: affected \< 4.0.1; fixed 4.0.1 (osv)
- Go `github.com/go-jose/go-jose/v3`: affected \< 3.0.3; fixed 3.0.3 (osv)
- Go `gopkg.in/go-jose/go-jose.v2`: affected \< 2.6.3; fixed 2.6.3 (osv)
- Go `gopkg.in/square/go-jose.v2`: affected \<= 2.6.0; fixed no fix listed yet (osv)
- go-jose: \< 4.0.1; \< 3.0.3; \< 2.6.3 (cvelist)

## Mitigation

- Upgrade github.com/go-jose/go-jose/v4 to 4.0.1 or later.
- Upgrade github.com/go-jose/go-jose/v3 to 3.0.3 or later.
- Upgrade gopkg.in/go-jose/go-jose.v2 to 2.6.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-28180. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-28180.md
Affected: github.com/go-jose/go-jose/v4 < 4.0.1; github.com/go-jose/go-jose/v3 < 3.0.3; gopkg.in/go-jose/go-jose.v2 < 2.6.3; gopkg.in/square/go-jose.v2 <= 2.6.0
Fixed in: 4.0.1, 3.0.3, 2.6.3

Steps:
1. Search this machine and project for github.com/go-jose/go-jose/v4 (Go), github.com/go-jose/go-jose/v3 (Go), gopkg.in/go-jose/go-jose.v2 (Go), gopkg.in/square/go-jose.v2 (Go), go-jose: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-28180 being exploited?

There is no confirmed exploitation: CVE-2024-28180 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.49% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-28180?

Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-28180?

github.com/go-jose/go-jose/v4 \< 4.0.1; github.com/go-jose/go-jose/v3 \< 3.0.3; gopkg.in/go-jose/go-jose.v2 \< 2.6.3; gopkg.in/square/go-jose.v2 \<= 2.6.0.

### Is there a fix for CVE-2024-28180?

Yes. Fixed in 4.0.1, 3.0.3, 2.6.3. Upgrade github.com/go-jose/go-jose/v4 to 4.0.1 or later. Upgrade github.com/go-jose/go-jose/v3 to 3.0.3 or later. Upgrade gopkg.in/go-jose/go-jose.v2 to 2.6.3 or later.

### How do I check if I'm affected by CVE-2024-28180?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/go-jose/go-jose/security/advisories/GHSA-c5q2-7r4c-mv6g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-28180>
- patch: <https://github.com/go-jose/go-jose/commit/0dd4dd541c665fb292d664f77604ba694726f298>
- patch: <https://github.com/go-jose/go-jose/commit/add6a284ea0f844fd6628cba637be5451fe4b28a>
- patch: <https://github.com/go-jose/go-jose/commit/f4c051a0653d78199a053892f7619ebf96339502>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJDO5VSIAOGT2WP63AXAAWNRSVJCNCRH/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KXKGNCRU7OTM5AHC7YIYBNOWI742PRMY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6MMWFBOXJA6ZCXNVPDFJ4XMK5PVG5RG/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJO2U5ACZVACNQXJ5EBRFLFW6DP5BROY/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UG5FSEYJ3GP27FZXC5YAAMMEC5XWKJHG/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IJ6LAJJ2FTA2JVVOACCV5RZTOIZLXUNJ/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JNPMXL36YGS3GQEVI3Q5HKHJ7YAAQXL5/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MSOMHDKRPU3A2JEMRODT2IREDFBLVPGS/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ/>
- other: <https://github.com/go-jose/go-jose>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6MMWFBOXJA6ZCXNVPDFJ4XMK5PVG5RG>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IJ6LAJJ2FTA2JVVOACCV5RZTOIZLXUNJ>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JNPMXL36YGS3GQEVI3Q5HKHJ7YAAQXL5>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KXKGNCRU7OTM5AHC7YIYBNOWI742PRMY>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MSOMHDKRPU3A2JEMRODT2IREDFBLVPGS>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UG5FSEYJ3GP27FZXC5YAAMMEC5XWKJHG>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJO2U5ACZVACNQXJ5EBRFLFW6DP5BROY>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJDO5VSIAOGT2WP63AXAAWNRSVJCNCRH>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-28180>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-c5q2-7r4c-mv6g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2631> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-28180> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-28180>
