CVE-2024-21664: GO-2024-2454 - Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2

CVE-2024-21664 · Severity: low · CVSS 3.1 · Published 2024-01-23

Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2

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

Quick answers

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

Affected products

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

Identifiers

  • CVE-2024-21664
  • GHSA-pvcr-v8j8-j5q3
  • GO-2024-2454

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