Skip to content

CVE-2024-21664 Parsing JSON serialized payload without protected field can lead to segfault

HighCVSS 7.5 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
lestrrat-go github.com/lestrrat-go/jwx/v2 < 2.0.19; = >= 1.0.8, < 1.2.28; = >= 2.0.0, < 2.0.19 2.0.19 Fixed
lestrrat-go github.com/lestrrat-go/jwx/v2(Go) < 2.0.19; >= 1.0.8, < 1.2.28 1.2.28, 2.0.19 Fixed

Affected products

ProductAffected versionsFixed in
lestrrat-go github.com/lestrrat-go/jwx/v2(Go) >= 1.0.8, < 1.2.28 1.2.28
lestrrat-go github.com/lestrrat-go/jwx/v2(Go) < 2.0.19 2.0.19
lestrrat-go github.com/lestrrat-go/jwx/v2 = >= 2.0.0, < 2.0.19 No fix listed
lestrrat-go github.com/lestrrat-go/jwx/v2 = >= 1.0.8, < 1.2.28 No fix listed
lestrrat-go github.com/lestrrat-go/jwx/v2 < 2.0.19 2.0.19

References