GHSA-cw2r-4p82-qv79: Jwcrypto: denail of service via specifically crafted jwe
Impact Denial of Service, Applications that allow the use of the PBKDF2 algorithm.
Patches A patch is available that sets the maximum number of default rounds.
Workarounds Applications that do not need to use PBKDF2 should simply specify the algorithms use and exclude it from the list. Applications that need to use the algorithm should upgrade to the new version that allows to set a maximum rounds number.
Acknowledgement The issues was reported by Jingcheng Yang and Jianjun Chen from Sichuan University and Zhongguancun Lab
Other sources
A vulnerability was found in JWCrypto. This flaw allows an attacker to cause a denial of service (DoS) attack and possible password brute-force and dictionary attacks to be more resource-intensive. This issue can result in a large amount of computational consumption, causing a denial of service attack.
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/jwcryptoto a version that resolves this vulnerability.Fixed in 1.5.1 - Upgrade
Upgrade
jwcryptoto a version that resolves this vulnerability.Patch d2655d370586cb830e49acfb450f87598da60be8 - Configuration
For applications that do not need PBKDF2, explicitly specify the allowed algorithms and exclude PBKDF2 from the list.
JWCrypto algorithms = exclude PBKDF2
Event History
Frequently Asked Questions
What is the severity of GHSA-cw2r-4p82-qv79?
The severity of GHSA-cw2r-4p82-qv79 is classified as a Denial of Service vulnerability.
How do I fix GHSA-cw2r-4p82-qv79?
To fix GHSA-cw2r-4p82-qv79, update the jwcrypto package to version 1.5.1 or apply the patch that sets the maximum number of default rounds.
Which applications are affected by GHSA-cw2r-4p82-qv79?
Applications that utilize the PBKDF2 algorithm are affected by GHSA-cw2r-4p82-qv79.
What is PBKDF2 in the context of GHSA-cw2r-4p82-qv79?
PBKDF2 is a key derivation function that is vulnerable to a Denial of Service condition in the context of GHSA-cw2r-4p82-qv79.
Are there any workarounds for GHSA-cw2r-4p82-qv79?
Yes, workarounds for GHSA-cw2r-4p82-qv79 include avoiding the use of applications that implement the PBKDF2 algorithm without appropriate safeguards.