Skip to content
OpenAdvisories
Medium · 6.8 CVE-2024-28122 EUVD-2024-0939GHSA-hj3v-m684-v259GO-2024-2632

JWX vulnerable to a denial of service attack using compressed JWE message

Published Mar 9, 2024 · Updated Apr 16, 2025 · Assigned by GitHub_M

Description

JWX is Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. This vulnerability allows an attacker with a trusted public key to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. This issue has been patched in versions 1.2.29 and 2.0.21.

Affected products

VendorProductAffectedFixed
lestrrat-go jwx >= 2.0.0, < 2.0.21, >= 1.2.0, < 1.2.29 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling boring-registry 0.13.2-r2 —
Wolfi rolling falcoctl 0.7.3-r3 —
Wolfi rolling mc +1 0.20231220.071422-r4 —
Wolfi rolling minio +1 0.20231220.010002-r4 —
Wolfi rolling spire-agent +2 1.9.1-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/lestrrat-go/jwx < 1.2.29 1.2.29 GHSA-hj3v-m684-v259
Go github.com/lestrrat-go/jwx/v2 < 2.0.21 2.0.21 GHSA-hj3v-m684-v259

References