CVE-2026-58302
Received Received - Intake

Path Traversal in LinuxCNC rtapi_app

Vulnerability report for CVE-2026-58302, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-30

Last updated on: 2026-06-30

Assigner: MITRE

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-30
Last Modified
2026-06-30
Generated
2026-06-30
AI Q&A
2026-06-30
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linuxcnc linuxcnc to 2.9.9 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability exists in the rtapi_app module of LinuxCNC before version 2.9.9. This module is installed with SUID root privileges and loads shared library modules using a user-supplied module name. Because the module name is not properly validated, an unprivileged local user can exploit path traversal by including characters like slashes ("/") or ".." in the module name. This allows the user to load an arbitrary shared library with elevated privileges, resulting in local privilege escalation to root.

Impact Analysis

This vulnerability can allow an unprivileged local user to escalate their privileges to root on the affected system. By exploiting the insufficient validation of module names, an attacker can load arbitrary shared libraries with root privileges. This can lead to full system compromise, unauthorized access to sensitive data, and the ability to execute arbitrary code with the highest system privileges.

Detection Guidance

This vulnerability involves the rtapi_app binary in LinuxCNC being installed with SUID root and loading shared libraries via user-supplied module names without proper validation.

To detect if your system is vulnerable, you can check if the rtapi_app binary is installed with SUID root permissions.

  • Run the command: ls -l $(which rtapi_app) # to check if the binary has the SUID bit set (look for an 's' in the permissions, e.g., -rwsr-xr-x)
  • Check the version of LinuxCNC installed to see if it is before 2.9.9, which is vulnerable.
  • You can also audit system logs or monitor for unusual usage of rtapi_app or attempts to load modules with suspicious names containing slashes or '..' sequences.
Mitigation Strategies

The primary mitigation is to update LinuxCNC to version 2.9.9 or later, where input sanitization for module names in rtapi_app has been implemented.

This update prevents module names containing slashes ("/") or the substring ".." from being loaded, blocking path traversal attacks.

If immediate update is not possible, consider removing the SUID bit from the rtapi_app binary to prevent privilege escalation, though this may impact functionality.

  • Update LinuxCNC to version 2.9.9 or later.
  • Remove SUID bit temporarily: sudo chmod u-s $(which rtapi_app)
  • Monitor and restrict local user access to the system to prevent exploitation.
Compliance Impact

The vulnerability allows local privilege escalation to root by exploiting insufficient validation of user-supplied module names in the rtapi_app component of LinuxCNC. This could potentially lead to unauthorized access or control over the affected system.

Such unauthorized privilege escalation and potential system compromise may impact compliance with standards and regulations like GDPR and HIPAA, which require protection of sensitive data and secure system access controls.

However, the provided information does not explicitly describe the direct effects of this vulnerability on compliance with these standards or any specific regulatory requirements.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58302. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart