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

> An attacker can cause excessive memory and CPU consumption via compressed JWE data, leading to denial of service in applications using the Go JOSE library.

- **Severity:** Medium 4.3 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Mar 2024
- **Updated:** 13 Feb 2025
- **Also known as:** AZL-35837, AZL-35839, AZL-35840, AZL-35842, AZL-35843, AZL-35844, AZL-35845, AZL-35849, AZL-35850, AZL-35855, AZL-35859, AZL-35860, AZL-35875, AZL-35877, AZL-35878, AZL-35879, AZL-35881, AZL-35882, AZL-35883, AZL-35887, AZL-35901, AZL-35904, AZL-38130, AZL-39600, AZL-39704, AZL-43831, AZL-44011, AZL-44373, AZL-45180, CLEANSTART-2024-SY26301, CLEANSTART-2026-AA57150, DEBIAN-CVE-2024-28180, GHSA-c5q2-7r4c-mv6g, GO-2024-2631, MINI-37jw-cgcv-8qh5, MINI-4297-56c8-4579, MINI-775m-722r-3c8h, MINI-82rx-fv6c-q65j, MINI-87q2-pfw9-w663, MINI-fw3v-w8c5-p3p2, MINI-gfh6-j532-m85v, MINI-q39w-mwmm-7xrg, MINI-rf5w-xh2w-wj6j, MINI-v2cq-48w8-wxq2, MINI-wqrf-r36h-6prh, MINI-xmcv-6r59-q653, OESA-2024-1472, OESA-2024-1473, OESA-2024-1474, OESA-2024-1644, OESA-2024-1645, OESA-2024-1701, OESA-2025-1687, RHSA-2024:2071, RHSA-2024:2776, RHSA-2024:3351, SUSE-SU-2024:2754-1, SUSE-SU-2025:0066-1, openSUSE-SU-2025:14618-1

## What is CVE-2024-28180?

CVE-2024-28180 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 9 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official 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.

Weakness: CWE-409 (Improper Handling of Highly Compressed Data (Data Amplification))

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

12 open source packages ship an affected version, including github.com/go-jose/go-jose/v3, github.com/go-jose/go-jose/v4 and gopkg.in/go-jose/go-jose.v2. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/go-jose/go-jose/v3` | Go | All versions | 3.0.3 |
| `github.com/go-jose/go-jose/v3` | Go | All versions | 3.0.3 |
| `github.com/go-jose/go-jose/v3` | Go | All versions | 3.0.3 |
| `github.com/go-jose/go-jose/v4` | Go | All versions | 4.0.1 |
| `github.com/go-jose/go-jose/v4` | Go | All versions | 4.0.1 |
| `github.com/go-jose/go-jose/v4` | Go | All versions | 4.0.1 |
| `gopkg.in/go-jose/go-jose.v2` | Go | All versions | 2.6.3 |
| `gopkg.in/go-jose/go-jose.v2` | Go | All versions | 2.6.3 |
| `gopkg.in/go-jose/go-jose.v2` | Go | All versions | 2.6.3 |
| `gopkg.in/square/go-jose.v2` | Go | All versions | None |
| `gopkg.in/square/go-jose.v2` | Go | All versions to 2.6.0 | None |
| `gopkg.in/square/go-jose.v2` | Go | All versions to 2.6.0 | None |
| `cri-o` | Red Hat:openshift:4.12::el8 | All versions | 0:1.25.5-19.2.rhaos4.12.gitba93e0a.el8 |
| `cri-o-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 0:1.25.5-19.2.rhaos4.12.gitba93e0a.el8 |
| `cri-o-debugsource` | Red Hat:openshift:4.12::el8 | All versions | 0:1.25.5-19.2.rhaos4.12.gitba93e0a.el8 |
| `podman` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-catatonit` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-catatonit-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-debugsource` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-docker` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-gvproxy` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-gvproxy-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-plugins` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-plugins-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-remote` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-remote-debuginfo` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `podman-tests` | Red Hat:openshift:4.12::el8 | All versions | 3:4.4.1-4.2.rhaos4.12.el8 |
| `openshift-clients` | Red Hat:openshift:4.15::el8 | All versions | 0:4.15.0-202405021207.p0.g7693229.assembly.stream.el8 |
| `openshift-clients-redistributable` | Red Hat:openshift:4.15::el8 | All versions | 0:4.15.0-202405021207.p0.g7693229.assembly.stream.el8 |
| `skopeo` | Red Hat:openshift:4.15::el8 | All versions | 2:1.11.3-0.1.rhaos4.15.el8 |
| `skopeo-debuginfo` | Red Hat:openshift:4.15::el8 | All versions | 2:1.11.3-0.1.rhaos4.15.el8 |
| `skopeo-debugsource` | Red Hat:openshift:4.15::el8 | All versions | 2:1.11.3-0.1.rhaos4.15.el8 |
| `skopeo-tests` | Red Hat:openshift:4.15::el8 | All versions | 2:1.11.3-0.1.rhaos4.15.el8 |
| `openshift-clients` | Red Hat:openshift:4.15::el9 | All versions | 0:4.15.0-202405021207.p0.g7693229.assembly.stream.el9 |
| `openshift-clients-redistributable` | Red Hat:openshift:4.15::el9 | All versions | 0:4.15.0-202405021207.p0.g7693229.assembly.stream.el9 |
| `skopeo` | Red Hat:openshift:4.15::el9 | All versions | 2:1.11.3-0.1.rhaos4.15.el9 |
| `skopeo-debuginfo` | Red Hat:openshift:4.15::el9 | All versions | 2:1.11.3-0.1.rhaos4.15.el9 |
| `skopeo-debugsource` | Red Hat:openshift:4.15::el9 | All versions | 2:1.11.3-0.1.rhaos4.15.el9 |
| `skopeo-tests` | Red Hat:openshift:4.15::el9 | All versions | 2:1.11.3-0.1.rhaos4.15.el9 |

Products: Fedoraproject Fedora, Go-Jose Project Go-Jose.

## How do I fix CVE-2024-28180?

Upgrade github.com/go-jose/go-jose/v3 to 3.0.3 or later.

## Is CVE-2024-28180 being exploited?

There is no known exploitation of CVE-2024-28180 in the wild and no public exploit code.

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-28180 and fix it if it is affected.

What it is: CVE-2024-28180 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 9 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-28180 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.3
- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.3
- github.com/go-jose/go-jose/v3 (Go): affected all versions; fixed in 3.0.3
- github.com/go-jose/go-jose/v4 (Go): affected all versions; fixed in 4.0.1
- github.com/go-jose/go-jose/v4 (Go): affected all versions; fixed in 4.0.1
- github.com/go-jose/go-jose/v4 (Go): affected all versions; fixed in 4.0.1
- gopkg.in/go-jose/go-jose.v2 (Go): affected all versions; fixed in 2.6.3
- gopkg.in/go-jose/go-jose.v2 (Go): affected all versions; fixed in 2.6.3
- gopkg.in/go-jose/go-jose.v2 (Go): affected all versions; fixed in 2.6.3
- gopkg.in/square/go-jose.v2 (Go): affected all versions; no fix listed
- gopkg.in/square/go-jose.v2 (Go): affected all versions up to 2.6.0; no fix listed
- gopkg.in/square/go-jose.v2 (Go): affected all versions up to 2.6.0; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-28180/ (Markdown: https://insights.sbomify.com/CVE-2024-28180/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-28180
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-28180
- OSV: https://osv.dev/vulnerability/CVE-2024-28180

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-28180/
Summaries are generated and may contain mistakes; the official description above is the record.
