Unsafe use of eval() method in ros2 topic hz tool
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.
Summary
A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) 'ros2topic' command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Lyrical Luth and Rolling Ridley. The vulnerability lies in the 'hz' verb, which reports the publishing rate of a topic and accepts a user-provided Python expression via the --filter option. This input is passed directly to the eval() function without sanitization, allowing a local user to craft and execute arbitrary code.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Open Source Robotics Foundation | Robot Operating System 2 (ROS 2) | Rolling Ridley; Lyrical Luth; Kilted Kaiju; Jazzy Jalisco; Iron Irwini; Humble Hawksbill; Galactic Geochelone; Foxy Fitzroy; Eloquent Elusor; Dashing Diademata; Crystal Clemmys | — | No fix listed | CNA |
- Robot Operating System 2 (ROS 2) VendorOpen Source Robotics Foundation Affected Rolling Ridley; Lyrical Luth; Kilted Kaiju; Jazzy Jalisco; Iron Irwini; Humble Hawksbill; Galactic Geochelone; Foxy Fitzroy; Eloquent Elusor; Dashing Diademata; Crystal Clemmys Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-42002
References
More Open Source Robotics Foundation vulnerabilities
- TI-2024-27715 Insecure Permissions vulnerability in Open Robotics Robotic Operating System 2 ROS2… CVSS 3.1CRITICAL 9.8
- TI-2024-27712 Insecure Permissions vulnerability in Open Robotics Robotic Operating System 2 ROS2… CVSS 3.1CRITICAL 9.8
- TI-2024-27711 Insecure Permissions vulnerability in Open Robotics Robotic Operating System 2 ROS2… CVSS 3.1CRITICAL 9.8
- TI-2024-27710 Insecure Permissions vulnerability in Open Robotics Robotic Operating System 2 ROS2… CVSS 3.1CRITICAL 9.8
- TI-2024-26110 Open Robotics Robotic Operating System 2 (ROS2) and Nav2 humble versions were discovered… CVSS 3.1CRITICAL 9.8
- TI-2024-26109 Open Robotics Robotic Operating System 2 (ROS2) and Nav2 humble versions were discovered… CVSS 3.1CRITICAL 9.8
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences