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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| agronholm | cbor2 | >= 3.0.0, < 5.8.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cbor2 | 5.8.0-1 | — |
| Debian 13 | cbor2 | No fix yet | — |
| Debian 12 | cbor2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | cbor2 | No fix yet | — |
| Ubuntu 26.04 LTS | cbor2 | No fix yet | — |
| Ubuntu 25.10 | cbor2 | No fix yet | — |
| Ubuntu 24.04 LTS | cbor2 | No fix yet | — |
| Ubuntu 22.04 LTS | cbor2 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-cbor2 | 5.6.5-160000.4.1 | SUSE-SU-2026:21139-1 |
| SLES 16.0 | python-cbor2 | 5.6.5-160000.4.1 | SUSE-SU-2026:21139-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-cbor2 | 5.8.0-2.1 | openSUSE-SU-2026:10014-1 |
| openSUSE Leap 16.0 | python-cbor2 | 5.6.5-160000.4.1 | openSUSE-SU-2026:20468-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python-cbor2 | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | cbor2 | >= 3.0.0, < 5.8.0 | 5.8.0 | GHSA-wcj4-jw5j-44wh |
Advisories 3
- SUSE-SU-2026:21139-1 Security update for python-cbor2 SUSE / openSUSE Security Updates · Apr 22, 2026
- openSUSE-SU-2026:20468-1 Security update for python-cbor2 SUSE / openSUSE Security Updates · Apr 10, 2026
- openSUSE-SU-2026:10014-1 python311-cbor2-5.8.0-2.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026