CVE-2026-58302 Path traversal in LinuxCNC
An unprivileged local user can escalate privileges to root by exploiting path traversal in the SUID rtapi_app binary to load arbitrary shared libraries.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-58302?
CVE-2026-58302 is a high-severity path traversal vulnerability in LinuxCNC, published on 30 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
rtapi_app in linuxcnc-uspace in LinuxCNC before 2.9.9 allows privilege escalation. It is installed SUID root and loads shared library modules via dlopen() by using a user-supplied module name. Insufficient validation of the module name allows path traversal, enabling an unprivileged local user to load an arbitrary shared library. Because the process retains elevated privileges during module loading, this results in local privilege escalation to root.
Weakness: CWE-22
Which versions are affected by CVE-2026-58302?
How do I fix CVE-2026-58302?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-58302 being exploited?
There is no known exploitation of CVE-2026-58302 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-58302, GHSA-h3vh-9phr-5gjm, UBUNTU-CVE-2026-58302.