CVE-2025-5643 Radare2 radiff2 cons.c cons_stack_load memory corruption

Low 2.0 Published Updated

Local attackers can trigger memory corruption in Radare2's radiff2 tool via the experimental -T argument, causing crashes.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-5643?

CVE-2025-5643 is a low-severity memory corruption vulnerability in Radare Radare2, published on 5 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability classified as problematic was found in Radare2 5.9.9. Affected by this vulnerability is the function cons_stack_load in the library /libr/cons/cons.c of the component radiff2. The manipulation of the argument -T leads to memory corruption. An attack has to be approached locally. The complexity of an attack is rather high. The exploitation appears 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 patch is named 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.

Weakness: CWE-119

Which versions are affected by CVE-2025-5643?

It affects 1 product.

Products include Radare Radare2.

How do I fix CVE-2025-5643?

No fix has been published for CVE-2025-5643 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-5643 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5643 exists.

All Radare Radare2 vulnerabilities

Sources

Also known as GHSA-7qxq-62rc-m2w2, UBUNTU-CVE-2025-5643.

Is CVE-2025-5643 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free