Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jNXEyLTdyNGMtbXY2Z84AA51M

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

Impact

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). Thanks to Enze Wang@Alioth and Jianjun Chen@Zhongguancun Lab (@zer0yu and @chenjj) for reporting.

Patches

The problem is fixed in the following packages and versions:

The problem will not be fixed in the following package because the package is archived:

Permalink: https://github.com/advisories/GHSA-c5q2-7r4c-mv6g
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jNXEyLTdyNGMtbXY2Z84AA51M
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 9 months ago
Updated: 6 months ago


CVSS Score: 4.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Identifiers: GHSA-c5q2-7r4c-mv6g, CVE-2024-28180
References: Repository: https://github.com/go-jose/go-jose
Blast Radius: 19.8

Affected Packages

go:gopkg.in/square/go-jose.v2
Dependent packages: 8,608
Dependent repositories: 40,168
Downloads:
Affected Version Ranges: <= 2.6.0
No known fixed version
All affected versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0
go:gopkg.in/go-jose/go-jose.v2
Dependent packages: 200
Dependent repositories: 289
Downloads:
Affected Version Ranges: < 2.6.3
Fixed in: 2.6.3
All affected versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.6.1, 2.6.2
All unaffected versions: 2.6.3
go:github.com/go-jose/go-jose/v3
Dependent packages: 2,511
Dependent repositories: 2,218
Downloads:
Affected Version Ranges: < 3.0.3
Fixed in: 3.0.3
All affected versions: 3.0.0, 3.0.1, 3.0.2
All unaffected versions: 3.0.3
go:github.com/go-jose/go-jose/v4
Dependent packages: 270
Dependent repositories: 0
Downloads:
Affected Version Ranges: < 4.0.1
Fixed in: 4.0.1
All affected versions: 4.0.0
All unaffected versions: 4.0.1, 4.0.2, 4.0.3, 4.0.4