CVE-2024-41148

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.
References
Configurations

No configuration.

History

17 Jul 2025, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-07-17 20:15

Updated : 2025-07-17 21:15


NVD link : CVE-2024-41148

Mitre link : CVE-2024-41148

CVE.ORG link : CVE-2024-41148


JSON object : View

Products Affected

No product.

CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

CWE-95

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')