Skip to content
OpenAdvisories
Medium · 5.5 CVE-2025-68131 EUVD-2025-205866GHSA-wcj4-jw5j-44whPYSEC-2025-90

CBORDecoder reuse can leak shareable values across decode calls

Published Dec 31, 2025 · Updated Jan 2, 2026 · Assigned by GitHub_M

Description

cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) serialization format. Starting in version 3.0.0 and prior to version 5.8.0, whhen a CBORDecoder instance is reused across multiple decode operations, values marked with the shareable tag (28) persist in memory and can be accessed by subsequent CBOR messages using the sharedref tag (29). This allows an attacker-controlled message to read data from previously decoded messages if the decoder is reused across trust boundaries. Version 5.8.0 patches the issue.

Affected products

VendorProductAffectedFixed
agronholm cbor2 >= 3.0.0, < 5.8.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cbor2 5.8.0-1 —
Debian 13 cbor2 No fix yet —
Debian 12 cbor2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 cbor2 No fix yet —
Ubuntu 26.04 LTS cbor2 No fix yet —
Ubuntu 25.10 cbor2 No fix yet —
Ubuntu 24.04 LTS cbor2 No fix yet —
Ubuntu 22.04 LTS cbor2 No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 python-cbor2 5.6.5-160000.4.1 SUSE-SU-2026:21139-1
SLES 16.0 python-cbor2 5.6.5-160000.4.1 SUSE-SU-2026:21139-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-cbor2 5.8.0-2.1 openSUSE-SU-2026:10014-1
openSUSE Leap 16.0 python-cbor2 5.6.5-160000.4.1 openSUSE-SU-2026:20468-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-cbor2 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI cbor2 >= 3.0.0, < 5.8.0 5.8.0 GHSA-wcj4-jw5j-44wh

Advisories 3

References