{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-42002","published":"2026-09-28T22:17:28.617000Z","last_modified":"2026-11-09T10:10:00.217000Z","status":"Awaiting Analysis","cvss":{"version":"4.0","score":8.6,"severity":"HIGH","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security@ubuntu.com","primary":false},"auth":true,"cwes":["CWE-94","CWE-95"],"cpes":[],"cpes_truncated":false,"vendors":["open-source-robotics-foundation"],"products":["open-source-robotics-foundation/robot-operating-system-2-ros-2"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":52,"links":{"html_es":"/es/cve/CVE-2024-42002/","html_en":"/en/cve/CVE-2024-42002/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42002","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-42002"},"untrusted":{"vendor_name":"Open Source Robotics Foundation","product_name":"Robot Operating System 2 (ROS 2)","desc_en":"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.","affected":[{"untrusted_vendor":"Open Source Robotics Foundation","untrusted_product":"Robot Operating System 2 (ROS 2)"}],"references":[{"url":"https://github.com/ros2/ros2cli/pull/1001","tags":[]},{"url":"https://github.com/ros2/ros2cli/pull/133#discussion_r223081766","tags":[]}]}}