CVE-2025-68131 Details
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.
A vulnerability exists in the cbor2 library, specifically in versions 3.0.0 prior to 5.8.0, within the CBORDecoder component. When a CBORDecoder instance is reused for multiple decoding operations, values tagged as shareable (tag 28) can persist in memory. This allows an attacker to access these values through subsequent messages using the sharedref tag (29), potentially reading data from previously decoded messages if the decoder is used across different trust boundaries.
Users should update to cbor2 version 5.8.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh | CISA-ADP | ExploitVendor Advisory |
| https://github.com/agronholm/cbor2/pull/268 | [email protected] | ExploitPatch |
| https://github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-212 | Improper Removal of Sensitive Information Before Storage or Transfer | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| agronholm cbor2 | >= 3.0.0, < 5.8.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 2, 2026 | Initial Analysis | [email protected] |
| Jan 2, 2026 | CVE Modified | CISA-ADP |
| Dec 31, 2025 | New CVE Received | [email protected] |