Skip to main content
← All vulnerabilities
CVE-2024-21664GHSA-PVCR-V8J8-J5Q3GO-2024-2454

Parsing JSON serialized payload without protected field can lead to segfault

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.19, 1.2.28
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • lestrrat-go jwx

    From 2.0.0 · fixed in 2.0.19; From 1.0.8 · fixed in 1.2.28

  • github.com/lestrrat-go/jwxGo

    From 1.0.8 · fixed in 1.2.28

  • github.com/lestrrat-go/jwx/v2Go

    fixed in 2.0.19

References 4

GitHub · lestrrat-go/jwx