Advisory

PYSEC-2024-155

Also known as: CVE-2024-26134, GHSA-375g-39jq-vq7m

Summary

The record has no summary.

Details

cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) (RFC 8949) serialization format. Starting in version 5.5.1 and prior to version 5.6.2, an attacker can crash a service using cbor2 to parse a CBOR binary by sending a long enough object. Version 5.6.2 contains a patch for this issue.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2024-02-19 23:15 UTC
Modified
2026-06-10 17:14 UTC

Affected packages and fixes

cbor2

PyPI · All systems

Affected

  • introduced 5.5.1, fixed 5.6.2 (ecosystem)

Fixed versions

5.6.2

Fix

  • Fixed version 5.6.2
    pip install --upgrade cbor2==5.6.2

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: PyPA Advisory Database · CC BY 4.0

Sources & licences