GHSA-cw2r-4p82-qv79: Jwcrypto: denail of service via specifically crafted jwe

Published Dec 28, 2023
·
Updated

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

1 affected componentFixes available
pip/jwcrypto<1.5.1
1.5.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/jwcrypto to a version that resolves this vulnerability.

    Fixed in 1.5.1
  2. Upgrade

    Upgrade jwcrypto to a version that resolves this vulnerability.

    Patch d2655d370586cb830e49acfb450f87598da60be8
  3. 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

Dec 28, 2023
Advisory Published
via GitHub·04:36 PM
Data Sourced
via GitHub·04:36 PM
DescriptionSeverityWeaknessAffected Software
Feb 12, 2024
CVE Published
via OSV·02:04 PM
Data Sourced
via OSV·02:04 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of GHSA-cw2r-4p82-qv79?

The severity of GHSA-cw2r-4p82-qv79 is classified as a Denial of Service vulnerability.

2

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.

3

Which applications are affected by GHSA-cw2r-4p82-qv79?

Applications that utilize the PBKDF2 algorithm are affected by GHSA-cw2r-4p82-qv79.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203