CVE-2018-25258 RGui 3.5.0 Local Buffer Overflow SEH DEP Bypass

High 8.6 Published Updated

Attackers can achieve arbitrary code execution by triggering a stack-based buffer overflow in the RGui preferences dialog via crafted input.

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

What is CVE-2018-25258?

CVE-2018-25258 is a high-severity memory corruption vulnerability in R-Project RGui, published on 12 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

RGui 3.5.0 contains a local buffer overflow vulnerability in the GUI preferences dialog that allows attackers to bypass DEP protections through structured exception handling exploitation. Attackers can craft malicious input in the Language for menus and messages field to trigger a stack-based buffer overflow, execute a ROP chain for VirtualAlloc allocation, and achieve arbitrary code execution.

Weakness: CWE-434

Which versions are affected by CVE-2018-25258?

How do I fix CVE-2018-25258?

No fix has been published for CVE-2018-25258 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-2018-25258 being exploited?

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

Sources

Also known as GHSA-p8hm-rwgf-6c7f.

Is CVE-2018-25258 in your software?

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

Check your SBOMs for free