Jan 1, 2026·5 min read·7 visits
If you reuse a `CBORDecoder` instance to process messages from different users, the decoder remembers 'shareable' values (Tag 28) from the first user. A second user can reference those values (Tag 29) to extract secrets, creating a cross-context information leak.
A logic flaw in the popular Python `cbor2` library allows sensitive data from one decoding session to persist and bleed into subsequent sessions due to improper state management of the 'Value Sharing' feature.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L| Product | Affected Versions | Fixed Version |
|---|---|---|
cbor2 agronholm | >= 3.0.0, < 5.8.0 | 5.8.0 |
| Attribute | Detail |
|---|---|
| CWE | CWE-212 (Improper Removal of Sensitive Information) |
| Attack Vector | Network |
| CVSS v4.0 | 4.0 (Medium) |
| Exploit Status | PoC Available |
| Component | cbor2 Library |
| Patch Date | 2024-02-05 |