CVE-2024-42002
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2024
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
Unsafe use of eval() method in ros2 topic hz tool
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Robot Operating System 2 (ROS 2)
- Vendor
- Open Source Robotics Foundation
- Product
- Robot Operating System 2 (ROS 2)
- Platforms
- Linux
- MacOS
- Windows
- Default status
unaffected- Package
- ros2topic
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| Rolling Ridley | affected | custom | Unavailable | Unavailable | None listed |
| Lyrical Luth | affected | custom | Unavailable | Unavailable | None listed |
| Kilted Kaiju | affected | custom | Unavailable | Unavailable | None listed |
| Jazzy Jalisco | affected | custom | Unavailable | Unavailable | None listed |
| Iron Irwini | affected | custom | Unavailable | Unavailable | None listed |
| Humble Hawksbill | affected | custom | Unavailable | Unavailable | None listed |
| Galactic Geochelone | affected | custom | Unavailable | Unavailable | None listed |
| Foxy Fitzroy | affected | custom | Unavailable | Unavailable | None listed |
| Eloquent Elusor | affected | custom | Unavailable | Unavailable | None listed |
| Dashing Diademata | affected | custom | Unavailable | Unavailable | None listed |
| Crystal Clemmys | affected | custom | Unavailable | Unavailable | None listed |