CVE-2024-28122: GO-2024-2632 - JWX vulnerable to a denial of service attack using compressed JWE message in github.com/lestrrat-go/jwx

CVE-2024-28122 · Severity: low · CVSS 3.1 · Published 2024-05-20

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

Technologies: github.com/lestrrat-go/jwx (Go), github.com/lestrrat-go/jwx/v2 (Go). Vendors: Go.

Quick answers

Is CVE-2024-28122 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-28122 being exploited in the wild.
How severe is CVE-2024-28122?
Low severity, with a CVSS score of 3.1, published 20 May 2024.
Which products and versions are affected?
github.com/lestrrat-go/jwx (Go) SEMVER:introduced=0,fixed=1.2.29; github.com/lestrrat-go/jwx/v2 (Go) SEMVER:introduced=0,fixed=2.0.21.
Is there a fix for CVE-2024-28122?
Yes. github.com/lestrrat-go/jwx (Go): upgrade to 1.2.29 or later; github.com/lestrrat-go/jwx/v2 (Go): upgrade to 2.0.21 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-28122?
Check whether you run github.com/lestrrat-go/jwx (Go) or github.com/lestrrat-go/jwx/v2 (Go) 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/lestrrat-go/jwx (Go): upgrade to 1.2.29 or later
    go get github.com/lestrrat-go/jwx@v1.2.29
  • github.com/lestrrat-go/jwx/v2 (Go): upgrade to 2.0.21 or later
    go get github.com/lestrrat-go/jwx/v2@v2.0.21

Affected products

  • github.com/lestrrat-go/jwx (Go) SEMVER:introduced=0,fixed=1.2.29
  • github.com/lestrrat-go/jwx/v2 (Go) SEMVER:introduced=0,fixed=2.0.21

Identifiers

  • CVE-2024-28122
  • GHSA-hj3v-m684-v259
  • GO-2024-2632

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.