Advisory

GHSA-cw2r-4p82-qv79

Also known as: CVE-2023-6681, PYSEC-2024-104

Summary

DoS with algorithms that use PBKDF2 due to unbounded PBES2 Count value

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-12-28 16:36 UTC
Modified
2024-11-12 19:15 UTC

Affected packages and fixes

jwcrypto

PyPI · All systems

Affected

  • introduced 0, fixed 1.5.1 (ecosystem)

Fixed versions

1.5.1

Fix

  • Fixed version 1.5.1
    pip install --upgrade jwcrypto==1.5.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences