{"id":"CVE-2024-26134","published":"2024-02-19T22:13:47Z","modified":"2025-02-13T17:41:03Z","title":"CBOR2 decoder has potential buffer overflow","vendor":"agronholm","product":"cbor2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01495,"percentile":0.74435,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/agronholm/cbor2/security/advisories/GHSA-375g-39jq-vq7m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/agronholm/cbor2/pull/204","tags":["x_refsource_MISC"]},{"url":"https://github.com/agronholm/cbor2/commit/387755eacf0be35591a478d3c67fe10618a6d542","tags":["x_refsource_MISC"]},{"url":"https://github.com/agronholm/cbor2/commit/4de6991ba29bf2290d7b9d83525eda7d021873df","tags":["x_refsource_MISC"]},{"url":"https://github.com/agronholm/cbor2/releases/tag/5.6.2","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GX524ZG2XJWFV37UQKQ4LWIH4UICSGEQ/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BT42VXZMMMCSSHMA65KKPOZCXJEYHNR5/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PWC3VU6YV6EXKCSX5GTKWLBZIDIJNQJY/","tags":[]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":14.89},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"agronholm","affectedVersions":[{"vendor":"agronholm","product":"cbor2","versions":[">= 5.5.1, < 5.6.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-02-20T18:24:08.985048Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"cbor2","vulnerableRanges":[">=5.5.1, <5.6.2"],"patched":["5.6.2"],"from":["GHSA-375g-39jq-vq7m","PYSEC-2024-155"],"provenance":"source"}],"summary":{"text":"The cbor2 Python library's CBOR decoder, versions from 5.5.1 up to but not including 5.6.2, mishandles buffer sizing when parsing CBOR binary data. An attacker who can get a service that uses cbor2 to parse a crafted, sufficiently long CBOR object over the network, with no authentication or user interaction required, can crash that service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:35Z"},"euvd":{"id":"EUVD-2024-0204","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-agronholm-cbor2-cve-2024-26134","children":[{"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"}]},{"from":"CVE-2024-26134","to":"CVE-2026-26209","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/e61a5f365ba610d5907a0ae1bc72769bba34294b"],"basis":"rarely changed file"}]}],"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-2024-26134","to":"CVE-2025-64076","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:cbor2","fromFixed":"5.6.2","toFixed":"5.7.1","daysApart":638},{"kind":"same-code","provenance":"machine","files":["source/decoder.c"],"commits":["https://github.com/agronholm/cbor2/commit/387755eacf0be35591a478d3c67fe10618a6d542","https://github.com/agronholm/cbor2/commit/4de6991ba29bf2290d7b9d83525eda7d021873df","https://github.com/agronholm/cbor2/commit/851473490281f82d82560b2368284ef33cf6e8f9"],"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"}}