Bug 2257608 (CVE-2024-21664) - CVE-2024-21664 jwx: parsing JSON serialized payload without protected field can lead to panic
Summary: CVE-2024-21664 jwx: parsing JSON serialized payload without protected field c...
Keywords:
Status: NEW
Alias: CVE-2024-21664
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2257609 2257610 2257611
Blocks: 2257623
TreeView+ depends on / blocked
 
Reported: 2024-01-10 09:51 UTC by TEJ RATHI
Modified: 2025-01-03 08:27 UTC (History)
19 users (show)

Fixed In Version: github.com/lestrrat-go/jwx/v2/jws 2.0.19, github.com/lestrrat-go/jwx/v2/jws 1.2.28
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2024-01-10 09:51:17 UTC
In JWX, 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.

https://github.com/lestrrat-go/jwx/commit/0e8802ce6842625845d651456493e7c87625601f
https://github.com/lestrrat-go/jwx/commit/d69a721931a5c48b9850a42404f18e143704adcd
https://github.com/lestrrat-go/jwx/security/advisories/GHSA-pvcr-v8j8-j5q3

Comment 1 TEJ RATHI 2024-01-10 09:52:01 UTC
Created golang-github-deepmap-oapi-codegen tracking bugs for this issue:

Affects: fedora-all [bug 2257611]


Created golang-github-lestrrat-jwx tracking bugs for this issue:

Affects: fedora-all [bug 2257609]


Created open-policy-agent tracking bugs for this issue:

Affects: fedora-all [bug 2257610]


Note You need to log in before you can comment on or make changes to this bug.