Advisory

GO-2024-2632

Also known as: CVE-2024-28122, GHSA-hj3v-m684-v259

Summary

JWX vulnerable to a denial of service attack using compressed JWE message in github.com/lestrrat-go/jwx

Details

An attacker with a trusted public key may cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. When this token is processed by the recipient, it results in significant memory allocation and processing time during decompression.

Severity

Not rated by the source.

Dates

Published
2024-05-20 19:46 UTC
Modified
2026-02-04 03:59 UTC

Affected packages and fixes

github.com/lestrrat-go/jwx

Go · All systems

Affected

  • introduced 0, fixed 1.2.29 (semver)

Fixed versions

1.2.29

Fix

github.com/lestrrat-go/jwx/v2

Go · All systems

Affected

  • introduced 0, fixed 2.0.21 (semver)

Fixed versions

2.0.21

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences