# CVE-2026-81879: radare2: Heap out-of-bounds read in radare2 ELF PN_XNUM handling

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T15:09:01.910Z
- Modified: 2026-09-25T16:53:48.707Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

radare2 is a UNIX-like reverse engineering framework and command-line toolset. Prior to 6.2.0, radare2's ELF PN_XNUM handling was vulnerable because the ELF parser allocated the program-header array using the resolved PN_XNUM count but several consumers still iterated with the original e_phnum value of 65535. The vulnerability is triggered by processing a crafted ELF file with e_phnum = 0xffff and a much smaller resolved count in shdr[0].sh_info. Consumers iterated beyond the allocated program-header array. This can cause a heap out-of-bounds read and process termination, resulting in denial of service; memory disclosure and code execution have not been demonstrated. This issue is fixed in version 6.2.0.

(As written by CVE List.)

## Affected

- radareorg radare2: < 6.2.0
- radare radare2: before 6.2.0

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`

## References

- <https://github.com/radareorg/radare2/issues/26223> (exploit, issue-tracking, mitigation, vendor-advisory)
- <https://github.com/radareorg/radare2/security/advisories/GHSA-jqfq-hvcp-xh4p> (patch, vendor-advisory)
- <https://github.com/radareorg/radare2/pull/26178> (patch)
- <https://github.com/radareorg/radare2/commit/9449b07579c19b6b187c1a0918fbec2cef1a036e> (patch)
- <https://github.com/radareorg/radare2/releases/tag/6.2.0> (release-notes)

## Sources

- CVE List: [CVE-2026-81879](https://www.cve.org/CVERecord?id=CVE-2026-81879), CVE Terms of Use, modified 2026-09-22
- NVD: [CVE-2026-81879](https://nvd.nist.gov/vuln/detail/CVE-2026-81879), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2026-81879 · Whole record: https://cve.day/CVE-2026-81879.json · Rebuilt by cve.day 2026-11-25T22:59:40.463Z
