A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic' command-line tool, affecting ROS distributions Noetic Ninjemys and earlier. 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.
Metrics
Affected Vendors & Products
References
Link | Providers |
---|---|
https://www.ros.org/blog/noetic-eol/ |
![]() ![]() |
History
Thu, 17 Jul 2025 21:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
Thu, 17 Jul 2025 19:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | A code injection vulnerability has been discovered in the Robot Operating System (ROS) 'rostopic' command-line tool, affecting ROS distributions Noetic Ninjemys and earlier. 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. | |
Title | Unsafe use of eval() method in rostopic hz tool | |
Weaknesses | CWE-94 CWE-95 |
|
References |
| |
Metrics |
cvssV3_1
|

Status: PUBLISHED
Assigner: canonical
Published: 2025-07-17T19:12:54.440Z
Updated: 2025-07-18T08:04:55.109Z
Reserved: 2024-08-01T12:00:12.200Z
Link: CVE-2024-41148

Updated: 2025-07-17T20:36:50.707Z

Status : Awaiting Analysis
Published: 2025-07-17T20:15:27.570
Modified: 2025-07-17T21:15:50.197
Link: CVE-2024-41148

No data.