{"id":"CVE-2025-68131","published":"2025-12-31T01:15:36Z","modified":"2026-01-02T14:37:55Z","title":"CBORDecoder reuse can leak shareable values across decode calls","vendor":"agronholm","product":"cbor2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00552,"percentile":0.39781,"provenance":"source"},"cwes":[{"id":"CWE-212","name":"Improper Removal of Sensitive Information Before Storage or Transfer"}],"references":[{"url":"https://github.com/agronholm/cbor2/security/advisories/GHSA-wcj4-jw5j-44wh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/agronholm/cbor2/pull/268","tags":["x_refsource_MISC"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":7.96},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"agronholm","affectedVersions":[{"vendor":"agronholm","product":"cbor2","versions":[">= 3.0.0, < 5.8.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-02T14:22:41.499483Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"cbor2","vulnerableRanges":[">=3.0.0, <5.8.0"],"patched":["5.8.0"],"from":["GHSA-wcj4-jw5j-44wh","PYSEC-2025-90"],"provenance":"source"}],"summary":{"text":"The flaw is in the CBORDecoder component of agronholm's cbor2 library: when one decoder instance is reused across multiple decode operations, values marked with the shareable tag (28) remain in memory. An attacker who can supply CBOR messages to such a reused decoder, with no authentication or user interaction required and over the network, can use the sharedref tag (29) to read previously decoded values, which is possible when the decoder is shared across trust boundaries; the issue affects versions from 3.0.0 up to but not including 5.8.0.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:39Z"},"euvd":{"id":"EUVD-2025-205866","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-agronholm-cbor2-cve-2024-26134","parents":[{"from":"CVE-2024-26134","to":"CVE-2025-68131","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cbor2/_decoder.py","source/decoder.c"],"commits":["https://github.com/agronholm/cbor2/commit/387755eacf0be35591a478d3c67fe10618a6d542","https://github.com/agronholm/cbor2/commit/4de6991ba29bf2290d7b9d83525eda7d021873df","https://github.com/agronholm/cbor2/commit/f1d701cd2c411ee40bb1fe383afe7f365f35abf0"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2025-68131","to":"CVE-2026-26209","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cbor2","fromFixed":"5.8.0","toFixed":"5.9.0","daysApart":82},{"kind":"same-code","provenance":"machine","files":["cbor2/_decoder.py","source/decoder.c","source/decoder.h"],"commits":["https://github.com/agronholm/cbor2/commit/f1d701cd2c411ee40bb1fe383afe7f365f35abf0","https://github.com/agronholm/cbor2/commit/e61a5f365ba610d5907a0ae1bc72769bba34294b"],"basis":"shared function","functions":["CBORDecoder_new","__init__","decode"]}]}],"packageHistory":[{"cve":"CVE-2024-26134","published":"2024-02-19","fixed":"5.6.2","kev":false},{"cve":"CVE-2025-64076","published":"2025-11-18","fixed":"5.7.1","kev":false,"link":{"from":"CVE-2025-64076","to":"CVE-2025-68131","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cbor2","fromFixed":"5.7.1","toFixed":"5.8.0","daysApart":43},{"kind":"same-code","provenance":"machine","files":["source/decoder.c"],"commits":["https://github.com/agronholm/cbor2/commit/851473490281f82d82560b2368284ef33cf6e8f9","https://github.com/agronholm/cbor2/commit/f1d701cd2c411ee40bb1fe383afe7f365f35abf0"],"basis":"shared file"}]}},{"cve":"CVE-2025-68131","published":"2025-12-31","fixed":"5.8.0","kev":false},{"cve":"CVE-2026-26209","published":"2026-03-23","fixed":"5.9.0","kev":false}],"package":"PyPI:cbor2"}}