CVE-2026-81878

radare2: Integer overflow causes heap out-of-bounds write in radare2 PYC parser

MEDIUM
5.5
CVSS Score
Published: September 22, 2026 at 03:07 PM UTC
Updated: September 25, 2026 at 05:07 PM UTC
2 products affected across 2 vendorsRADARE2RADARE2

Using radare2 by radareorg?

Get instant alerts when new vulnerabilities affect radare2 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
PoC

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.2.0
Affected range stops below 6.2.0, so it looks safe — our inference, not a vendor statement
v < 6.2.0
Affected range stops below 6.2.0, so it looks safe — our inference, not a vendor statement

References (5)

x_refsource_CONFIRMPatchVendor Advisory
Source: cverecord
https://github.com/radareorg/radare2/security/advisories/GHSA-9phv-v2w8-56j3
x_refsource_MISCExploitMitigationVendor Advisory
Source: cverecord
https://github.com/radareorg/radare2/issues/26222
x_refsource_MISCPatch
Source: cverecord
https://github.com/radareorg/radare2/pull/26177
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/radareorg/radare2/releases/tag/6.2.0

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMGitHub_M
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-190CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card