cbor2
Affected
- introduced
0, fixed5.7.1(ecosystem)
Fixed versions
5.7.1
Fix
- Fixed version
5.7.1pip install --upgrade cbor2==5.7.1
Advisory
Also known as: CVE-2025-64076, PYSEC-2025-238
cbor2 C extension decoder flaws can cause denial of service
Multiple vulnerabilities exist in cbor2 through version 5.7.0 in the decode_definite_long_string() function of the C extension decoder (source/decoder.c):
Both vulnerabilities can be exploited remotely without authentication by sending specially-crafted CBOR data containing definite-length text strings with multi-byte UTF-8 characters positioned at 65536-byte chunk boundaries. Successful exploitation results in denial of service through process crashes (CBORDecodeEOF exceptions) or memory exhaustion. The vulnerabilities affect all applications using cbor2's C extension to process untrusted CBOR data, including web APIs, IoT data collectors, and message queue processors. Fixed in commit 851473490281f82d82560b2368284ef33cf6e8f9 pushed with released version 5.7.1.
High Basis: The source's own band: HIGH
0, fixed 5.7.1 (ecosystem)5.7.1
5.7.1pip install --upgrade cbor2==5.7.1Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0