CVE-2026-81878radare2: Integer overflow causes heap out-of-bounds write in radare2 PYC parser
Updated under an hour ago ()
Does this affect you?
It affects radareorg radare2 and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
radare2 is a UNIX-like reverse engineering framework and command-line toolset. Prior to 6.2.0, radare2's CPython bytecode .pyc marshal parser was vulnerable because the CPython marshal readers accepted a 32-bit string length without rejecting values that overflow the size-plus-one allocation. The vulnerability is triggered by opening or inspecting a crafted .pyc file through r2 or rabin2. A length of 0xffffffff wrapped the allocation to zero before the common byte reader wrote attacker-controlled data and fill bytes beyond the heap allocation. This can cause heap memory corruption and denial of service; arbitrary code execution is possible but has not been demonstrated. This issue is fixed in version 6.2.0.
- CVSS
- 5.5 MEDIUM (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weakness (CWE)
- CWE-190, CWE-787
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Sep 22, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
radareorg radare2 radareorg:radare2 (from the name) | before 6.2.0 | CNA record |
radare radare2 radare:radare2 | before 6.2.0 | NVD |
References
- https://github.com/radareorg/radare2/security/advisories/GHSA-9phv-v2w8-56j3x-refsource-confirm, patch, vendor-advisory
- https://github.com/radareorg/radare2/issues/26222x-refsource-misc, exploit, mitigation, vendor-advisory
- https://github.com/radareorg/radare2/pull/26177x-refsource-misc, patch
- https://github.com/radareorg/radare2/commit/6727454b666b28c33837b219a5f91136461357c0x-refsource-misc, patch
- https://github.com/radareorg/radare2/releases/tag/6.2.0x-refsource-misc, release-notes
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.