# CVE-2024-28180: GO-2024-2631 - Decompression bomb vulnerability in github.com/go-jose/go-jose

Source: https://junglewise.ai/threats/cve-2024-28180-go-jose-vulnerable-to-improper-handling-of-highly-compressed-data  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-03-15  
License: CC BY 4.0 with a link back

CVE-2024-28180 · Severity: low · CVSS 3.1 · Published 2024-03-15

Decompression bomb vulnerability in github.com/go-jose/go-jose

Technologies: [github.com/go-jose/go-jose/v3 (Go)](https://junglewise.ai/threats/technologies/github-com-go-jose-go-jose-v3), [github.com/go-jose/go-jose/v4 (Go)](https://junglewise.ai/threats/technologies/github-com-go-jose-go-jose-v4). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-28180 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-28180 being exploited in the wild.

**How severe is CVE-2024-28180?** Low severity, with a CVSS score of 3.1, published 15 March 2024.

**Which products and versions are affected?** github.com/go-jose/go-jose/v3 (Go) SEMVER:introduced=0,fixed=3.0.3; github.com/go-jose/go-jose/v4 (Go) SEMVER:introduced=0,fixed=4.0.1; gopkg.in/go-jose/go-jose.v2 (Go) SEMVER:introduced=0,fixed=2.6.3; gopkg.in/square/go-jose.v2 (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=2.6.0.

**Is there a fix for CVE-2024-28180?** Yes. github.com/go-jose/go-jose/v3 (Go): upgrade to 3.0.3 or later; github.com/go-jose/go-jose/v4 (Go): upgrade to 4.0.1 or later; gopkg.in/go-jose/go-jose.v2 (Go): upgrade to 2.6.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-28180?** Check whether you run github.com/go-jose/go-jose/v3 (Go), github.com/go-jose/go-jose/v4 (Go), gopkg.in/go-jose/go-jose.v2 (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/go-jose/go-jose/v3 (Go): upgrade to 3.0.3 or later

  ```sh
  go get github.com/go-jose/go-jose/v3@v3.0.3
  ```

- github.com/go-jose/go-jose/v4 (Go): upgrade to 4.0.1 or later

  ```sh
  go get github.com/go-jose/go-jose/v4@v4.0.1
  ```

- gopkg.in/go-jose/go-jose.v2 (Go): upgrade to 2.6.3 or later

  ```sh
  go get gopkg.in/go-jose/go-jose.v2@v2.6.3
  ```


## Affected products

- github.com/go-jose/go-jose/v3 (Go) SEMVER:introduced=0,fixed=3.0.3
- github.com/go-jose/go-jose/v4 (Go) SEMVER:introduced=0,fixed=4.0.1
- gopkg.in/go-jose/go-jose.v2 (Go) SEMVER:introduced=0,fixed=2.6.3
- gopkg.in/square/go-jose.v2 (Go) SEMVER:introduced=0, SEMVER:introduced=0,last_affected=2.6.0

## Identifiers

- CVE-2024-28180
- GHSA-c5q2-7r4c-mv6g
- GO-2024-2631

## Related threats

- [Go JOSE RSA parameter validation denial of service](https://junglewise.ai/threats/cve-2026-116587-go-jose-provides-an-implementation-of-the-javascript-object)
- [Go JOSE stack overflow in JSON parsing](https://junglewise.ai/threats/cve-2026-116586-go-jose-provides-an-implementation-of-the-javascript-object)
- [Go JOSE panic on empty JWE ciphertext](https://junglewise.ai/threats/cve-2026-116585-go-jose-provides-an-implementation-of-the-javascript-object)
- [Go JOSE denial of service via panic in JWE decryption](https://junglewise.ai/threats/cve-2026-34986-go-jose-denial-of-service-via-panic-in-jwe-decryption)
- [GO-2025-3485 - DoS in go-jose Parsing in github.com/go-jose/go-jose](https://junglewise.ai/threats/cve-2025-27144-dos-in-go-jose-parsing)
