CVE-2023-6681: 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.

NVD

The JWE key management algorithms based on PBKDF2 require a JOSE Header Parameter called p2c (PBES2 Count). This parameter dictates the number of PBKDF2 iterations needed to derive a CEK wrapping key. Its primary purpose is to intentionally slow down the key derivation function, making password brute-force and dictionary attacks more resource- intensive.

Therefore, if an attacker sets the p2c parameter in JWE to a very large number, it can cause a lot of computational consumption, resulting in a DOS attack

Red Hat

Affected Software

10 affected componentsFixes available
pip/jwcrypto<1.5.1
1.5.1
latchset jwcrypto<1.5.1
Fedoraproject Fedora=38
Fedoraproject Fedora=39
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux For Arm 64=8.0
redhat Enterprise Linux For Ibm Z Systems=8.0
redhat Enterprise Linux For Power Little Endian=8.0
redhat/jwcrypto<1.5.1
1.5.1

Event History

Dec 28, 2023
Advisory Published
via GitHub·04:36 PM
Jan 29, 2024
Data Sourced
via Red Hat·11:11 AM
DescriptionSeverityAffected Software
Feb 12, 2024
CVE Published
via MITRE·02:04 PM
Data Sourced
via MITRE·02:04 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-6681?

CVE-2023-6681 has been categorized with a severity rating associated with Denial of Service vulnerabilities.

2

How do I fix CVE-2023-6681?

To fix CVE-2023-6681, you should update to jwcrypto version 1.5.1 or apply the available patch that sets the maximum number of default rounds.

3

Which software versions are affected by CVE-2023-6681?

CVE-2023-6681 affects jwcrypto versions prior to 1.5.1 across various operating systems including Red Hat Enterprise Linux and Fedora.

4

What type of vulnerability is CVE-2023-6681?

CVE-2023-6681 is a Denial of Service vulnerability that affects applications utilizing the PBKDF2 algorithm.

5

Are there any workarounds for CVE-2023-6681?

While there are no specific workarounds mentioned for CVE-2023-6681, updating affected software is recommended.

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