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

- Severity: Medium 5.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-12-31T01:15:36.827Z
- Modified: 2026-09-10T03:49:54.340Z
- Also known as: GHSA-wcj4-jw5j-44wh, PYSEC-2025-90
- Weaknesses: CWE-212
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- agronholm cbor2: >= 3.0.0, < 5.8.0; from 3.0.0 before 5.8.0
- cbor2 (PyPI): from 3.0.0 before 5.8.0

## Every score

- GitHub_M: CVSS:4.0 5.5 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh> (exploit, evidence, vendor-advisory, web)
- <https://github.com/agronholm/cbor2/pull/268> (exploit, fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68131> (advisory)
- <https://github.com/agronholm/cbor2/commit/f1d701cd2c411ee40bb1fe383afe7f365f35abf0> (web)
- <https://github.com/agronholm/cbor2> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/cbor2/PYSEC-2025-90.yaml> (web)

## Sources

- CVE List: [CVE-2025-68131](https://www.cve.org/CVERecord?id=CVE-2025-68131), CVE Terms of Use, modified 2026-01-02
- GitHub Advisory Database: [GHSA-wcj4-jw5j-44wh](https://github.com/advisories/GHSA-wcj4-jw5j-44wh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-68131](https://nvd.nist.gov/vuln/detail/CVE-2025-68131), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-90](https://osv.dev/vulnerability/PYSEC-2025-90), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2025-68131 · Whole record: https://cve.day/CVE-2025-68131.json · Rebuilt by cve.day 2026-11-25T22:59:10.068Z
