CVE-2025-68131CBORDecoder reuse can leak shareable values across decode calls
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cbor2 | Fix pending | UBUNTU-CVE-2025-68131 | |
| Ubuntu 26.04 | cbor2 | Under investigation | UBUNTU-CVE-2025-68131 | |
| Ubuntu 25.10 | cbor2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-68131 | |
| Ubuntu 24.04 | cbor2 | Under investigation | UBUNTU-CVE-2025-68131 | |
| Ubuntu 22.04 | cbor2 | Under investigation | UBUNTU-CVE-2025-68131 | |
| Debian 14 | cbor2 | Fixed | 5.8.0-1 | DEBIAN-CVE-2025-68131 |
| Debian 13 | cbor2 | Will 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 12 | cbor2 | Will 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 library | cbor2 | Fixed | 5.8.0 | PYSEC-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.
- agronholm cbor2: affected: >= 3.0.0, < 5.8.0
References
- https://github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh
- https://github.com/agronholm/cbor2/pull/268
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.