CVEfocus › CVE database › CVE-2025-68131

CVE-2025-68131CBORDecoder reuse can leak shareable values across decode calls

CVSS 5.5 MediumEPSS 0.6% (higher than 40% of CVEs)Published 2025-12-31Updated 2026-01-02Assigner: GitHub_M

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.

CWE-212

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
1Fix pending
3Under investigation
3Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10cbor2Fix pendingUBUNTU-CVE-2025-68131
Ubuntu 26.04cbor2Under investigationUBUNTU-CVE-2025-68131
Ubuntu 25.10cbor2Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-68131
Ubuntu 24.04cbor2Under investigationUBUNTU-CVE-2025-68131
Ubuntu 22.04cbor2Under investigationUBUNTU-CVE-2025-68131
Debian 14cbor2Fixed5.8.0-1DEBIAN-CVE-2025-68131
Debian 13cbor2Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-68131
Debian 12cbor2Will not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2025-68131
PyPI librarycbor2Fixed5.8.0PYSEC-2025-90

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.