SCA: security update for cbor2 (GHSA-9q9c-vjxh-p795)

high Tenable Cloud Security Plugin ID 497169

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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): (1) Integer Underflow Leading to Out-of-Bounds
Read (CWE-191, CWE-125): An incorrect variable reference and missing state reset in the chunk processing
loop causes buffer_length to not be reset to zero after UTF-8 character consumption. This results in
subsequent chunk_length calculations producing negative values (e.g., chunk_length = 65536 -
buffer_length), which are passed as signed integers to the read() method, potentially triggering unlimited
read operations and resource exhaustion. (2) Memory Leak via Missing Reference Count Release (CWE-401):
The main processing loop fails to release Python object references (Py_DECREF) for chunk objects allocated
in each iteration. For CBOR strings longer than 65536 bytes, this causes cumulative memory leaks
proportional to the payload size, enabling memory exhaustion attacks through repeated processing of large
CBOR payloads. 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.
(CVE-2025-64076)

Solution

Update the cbor2 library and its related packages to version 5.7.1 or later.

See Also

https://github.com/advisories/GHSA-9q9c-vjxh-p795

Plugin Details

Severity: High

ID: 497169

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 12/3/2026

Updated: 12/3/2026

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.36

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 5.6

Temporal Score: 4.4

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:N/A:C

CVSS Score Source: CVE-2025-64076

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/18/2025

Vulnerability Publication Date: 11/18/2025

Reference Information

CVE: CVE-2025-64076

cwe: CWE-191