CVE-2024-28180
Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)
Also known as GHSA-c5q2-7r4c-mv6g, GO-2024-2631
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.
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
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 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
- EPSS
- 2.49% chance of exploitation in 30 days (percentile 85, 2026-11-26)
- CWE
- CWE-409
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/go-jose/go-jose/v4 | < 4.0.1 | 4.0.1 | osv |
| Go github.com/go-jose/go-jose/v3 | < 3.0.3 | 3.0.3 | osv |
| Go gopkg.in/go-jose/go-jose.v2 | < 2.6.3 | 2.6.3 | osv |
| Go gopkg.in/square/go-jose.v2 | <= 2.6.0 | — | osv |
| go-jose | < 4.0.1; < 3.0.3; < 2.6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
Other
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJDO5VSIAOGT2WP63AXAAWNRSVJCNCRH/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KXKGNCRU7OTM5AHC7YIYBNOWI742PRMY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6MMWFBOXJA6ZCXNVPDFJ4XMK5PVG5RG/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJO2U5ACZVACNQXJ5EBRFLFW6DP5BROY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UG5FSEYJ3GP27FZXC5YAAMMEC5XWKJHG/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IJ6LAJJ2FTA2JVVOACCV5RZTOIZLXUNJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JNPMXL36YGS3GQEVI3Q5HKHJ7YAAQXL5/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MSOMHDKRPU3A2JEMRODT2IREDFBLVPGS/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ/
- https://github.com/go-jose/go-jose
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GD2GSBQTBLYADASUBHHZV2CZPTSLIPQJ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/I6MMWFBOXJA6ZCXNVPDFJ4XMK5PVG5RG
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IJ6LAJJ2FTA2JVVOACCV5RZTOIZLXUNJ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JNPMXL36YGS3GQEVI3Q5HKHJ7YAAQXL5
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KXKGNCRU7OTM5AHC7YIYBNOWI742PRMY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MSOMHDKRPU3A2JEMRODT2IREDFBLVPGS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UG5FSEYJ3GP27FZXC5YAAMMEC5XWKJHG
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UJO2U5ACZVACNQXJ5EBRFLFW6DP5BROY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XJDO5VSIAOGT2WP63AXAAWNRSVJCNCRH
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-26).
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.