GHSA-c5q2-7r4c-mv6g

    Dashboard / Vulnerabilities / GHSA-c5q2-7r4c-mv6g

    GHSA-c5q2-7r4c-mv6g

    Published: 7 Mar 2024Last Modified: 10 Sept 2026

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

    Details: ### 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: - github.com/go-jose/go-jose/v4 version 4.0.1 - github.com/go-jose/go-jose/v3 version 3.0.3 - gopkg.in/go-jose/go-jose.v2 version 2.6.3 The problem will not be fixed in the following package because the package is archived: - gopkg.in/square/go-jose.v2

    Affected packages

    Package

    Name: github.com/go-jose/go-jose/v4

    Purl: pkg:golang/github.com/go-jose/go-jose/v4

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -4.0.1

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-c5q2-7r4c-mv6g | CVE-DB