Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lestrrat-go/jwx
  4. ›
  5. CVE-2024-21664

CVE-2024-21664: NULL Pointer Dereference

January 9, 2024 (updated January 23, 2024)

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.

References

  • github.com/advisories/GHSA-pvcr-v8j8-j5q3
  • github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f
  • github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd
  • github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3
  • nvd.nist.gov/vuln/detail/CVE-2024-21664

Code Behaviors & Features

Detect and mitigate CVE-2024-21664 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.28

Fixed versions

  • 1.2.28

Solution

Upgrade to version 1.2.28 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference
  • CWE-707: Improper Neutralization

Source file

go/github.com/lestrrat-go/jwx/CVE-2024-21664.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:20 +0000.