Live threats

All CVEs / Lestrrat-go

CVE-2024-21664Lestrrat-go Jwx

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.1%
probability of exploitation in 30 days · percentile 64
Auth required
No
Published
Jan 9, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-476
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

jwx is a Go module implementing various JWx (JWA/JWE/JWK/JWS/JWT, otherwise known as JOSE) technologies. Calling `jws.Parse` with a JSON serialized payload where the `signature` field is present while `protected` is absent can lead to a nil pointer dereference. The vulnerability can be used to crash/DOS a system doing JWS verification. This vulnerability has been patched in versions 2.0.19 and 1.2.28.

Original NVD text.

What to do

  1. Apply the vendor's security update for Jwx.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/lestrrat-go/jwx ≥ 1.0.8 < 1.2.28 1.2.28 go get github.com/lestrrat-go/jwx@v1.2.28
Go github.com/lestrrat-go/jwx ≥ 1.0.8 < 1.2.28 1.2.28 go get github.com/lestrrat-go/jwx@v1.2.28
Go github.com/lestrrat-go/jwx/v2 < 2.0.19 2.0.19 go get github.com/lestrrat-go/jwx/v2@v2.0.19
Go github.com/lestrrat-go/jwx/v2 < 2.0.19 2.0.19 go get github.com/lestrrat-go/jwx/v2@v2.0.19

Per OSV / GitHub Advisories (GHSA-pvcr-v8j8-j5q3, GO-2024-2454). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
lestrrat-gojwx< 2.0.19

Official sources

References

Links published by the sources. Open them with care.