Vulnerability
CVE-2024-21664
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.
44 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2fqg-fhmq-x6vw
- CGA-2x32-xfw9-wp4p
- CGA-37qp-wjpq-wxpq
- CGA-3gwf-56v9-rq8c
- CGA-3pgq-g65r-w23g
- CGA-49g7-mg8j-fqx5
- CGA-524j-gvm5-m5hq
- CGA-5457-gvmh-g3c2
- CGA-5g73-j52j-3v29
- CGA-5g8g-v6xm-q9ww
- CGA-5jwh-gwq3-89vm
- CGA-5p5x-r49p-qhqh
- CGA-6r64-79wc-83vf
- CGA-7294-vwfc-5xvq
- CGA-93v6-wq75-5j5m
- CGA-9jqm-pwv8-2962
- CGA-cg9g-qg92-2wcc
- CGA-cp2m-h993-gww4
- CGA-cwqj-7vfp-v5qw
- CGA-f66j-993h-f3x5
- CGA-gv84-h3wc-qcvq
- CGA-h3cp-hrmm-h652
- CGA-hc3f-g58x-q9vc
- CGA-hgw9-h37h-rrrr
- CGA-j974-hjm9-q4mr
- CGA-jx8f-g8rw-f75p
- CGA-m9f8-h97c-8wmr
- CGA-mqrx-phgx-48x5
- CGA-mrg3-3xx8-vpq2
- CGA-pc5v-r4f4-m6xc
- CGA-ph5h-23r5-rjg6
- CGA-pvpx-gm2m-rh9j
- CGA-q5gh-3c69-w65r
- CGA-qcf7-6hr6-ch22
- CGA-qp4h-hwcj-8rv4
- CGA-rh53-hx92-3qmc
- CGA-vcf9-672x-f67q
- CGA-vjfq-6mfw-h2j5
- CGA-w5hp-qrpq-jh59
- CGA-ww88-jjq2-956g
- CGA-x25x-798m-rq6q
- CGA-xrp8-6p2h-638c
-
GHSA-pvcr-v8j8-j5q3
Parsing JSON serialized payload without protected field can lead to segfault
-
GO-2024-2454
Panic due to nil pointer dereference in github.com/lestrrat-go/jwx/v2
References
- https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f
- https://github.com/lestrrat-go/jwx/commit/8c53d0ae52d5ab1e2b37c5abb67def9e7958fd65
- https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd
- https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3