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

CVE-2024-21664: NULL Pointer Dereference

January 9, 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. This vulnerability has been patched in version 2.0.19.

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. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.0.18

Fixed versions

  • v2.0.19

Solution

Upgrade to version 2.0.19 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/v2/jws/CVE-2024-21664.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:38 +0000.