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

Advisory record · `GHSA-c5q2-7r4c-mv6g`

- **Identifiers:** `GHSA-c5q2-7r4c-mv6g` · `CVE-2024-28180` · `GO-2024-2631`
- **State:** Confirmed
- **Severity:** CVSS 4.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-409](https://cwe.mitre.org/data/definitions/409.html)
- **Tags:** [CWE-409](https://agentprime.io/advisories/tag/cwe-409.md)
- **Published:** 7 Mar 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 7 Mar 2024, 22:54 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

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

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Go JOSE (github.com/go-jose/go-jose/v4 before 4.0.1, github.com/go-jose/go-jose/v3 before 3.0.3, and gopkg.in/go-jose/go-jose.v2 before 2.6.3) can be made to use large amounts of memory and CPU when decrypting a JWE with highly compressed data. An attacker who can send a crafted JWE to a Decrypt or DecryptMulti call can trigger this. Upgrade to 4.0.1, 3.0.3, or 2.6.3 to get the fix, which returns an error when decompressed data is too large. gopkg.in/square/go-jose.v2 (2.6.0 and earlier) has no fixed version listed because the package is archived.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 4.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.020, the 80th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:15 UTC: First seen by agentprime
- 31 Oct 2026, 14:15 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-c5q2-7r4c-mv6g)

## Sources

- [GitHub Advisory Database: GHSA-c5q2-7r4c-mv6g](https://github.com/advisories/GHSA-c5q2-7r4c-mv6g)
- [OSV: GHSA-c5q2-7r4c-mv6g](https://osv.dev/vulnerability/GHSA-c5q2-7r4c-mv6g)
- <https://github.com/go-jose/go-jose/security/advisories/GHSA-c5q2-7r4c-mv6g>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28180>
- <https://github.com/go-jose/go-jose/commit/0dd4dd541c665fb292d664f77604ba694726f298>
- <https://github.com/go-jose/go-jose/commit/add6a284ea0f844fd6628cba637be5451fe4b28a>
- <https://github.com/go-jose/go-jose/commit/f4c051a0653d78199a053892f7619ebf96339502>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-c5q2-7r4c-mv6g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-c5q2-7r4c-mv6g/>. Everything for agents: <https://agentprime.io/llms.txt>.
