Vulnerability · Published Feb 19, 2024 · Assigned by GitHub_M
CVE-2024-26134CBOR2 decoder has potential buffer overflow
High 7.5
In plain English
A high-severity buffer overflow in cbor2 from agronholm. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.2%top 32.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
cbor2 provides encoding and decoding for the Concise Binary Object Representation (CBOR) (RFC 8949) serialization format. Starting in version 5.5.1 and prior to version 5.6.2, an attacker can crash a service using cbor2 to parse a CBOR binary by sending a long enough object. Version 5.6.2 contains a patch for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | cbor2 | 5.6.2-1 | DEBIAN-CVE-2024-26134 |
| Debian:14 | cbor2 | 5.6.2-1 | DEBIAN-CVE-2024-26134 |
| PyPI | cbor2 | 5.6.2 | GHSA-375g-39jq-vq7m |
| PyPI | cbor2 | 5.6.2 | PYSEC-2024-155 |
| Ubuntu:22.04:LTS | cbor2 | no fix listed | UBUNTU-CVE-2024-26134 |
| Ubuntu:24.04:LTS | cbor2 | no fix listed | UBUNTU-CVE-2024-26134 |
| Ubuntu:25.10 | cbor2 | no fix listed | UBUNTU-CVE-2024-26134 |
| Ubuntu:26.04:LTS | cbor2 | no fix listed | UBUNTU-CVE-2024-26134 |
| Ubuntu:26.10 | cbor2 | no fix listed | UBUNTU-CVE-2024-26134 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/agronholm/cbor2/security/advisories/GHSA-375g-39jq-vq7m x_refsource_CONFIRM
- https://github.com/agronholm/cbor2/pull/204 x_refsource_MISC
- https://github.com/agronholm/cbor2/commit/387755eacf0be35591a478d3c67fe10618a6d542 x_refsource_MISC
- https://github.com/agronholm/cbor2/commit/4de6991ba29bf2290d7b9d83525eda7d021873df x_refsource_MISC
- https://github.com/agronholm/cbor2/releases/tag/5.6.2 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX524ZG2XJWFV37UQKQ4LWIH4UICSGEQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BT42VXZMMMCSSHMA65KKPOZCXJEYHNR5/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PWC3VU6YV6EXKCSX5GTKWLBZIDIJNQJY/