{"id":30357,"date":"2026-09-29T08:31:00","date_gmt":"2026-09-29T00:31:00","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2024-42002"},"modified":"2026-09-29T08:31:00","modified_gmt":"2026-09-29T00:31:00","slug":"cve-2024-42002","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2024-42002","title":{"rendered":"CVE-2024-42002 [HIGH] &#8211; A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2)"},"content":{"rendered":"<p>A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) &#8216;ros2topic&#8217; 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 &#8216;hz&#8217; verb, which reports the publishing rate of a topic and accepts a user-provided Python expression via the &#8211;filter option. This input is passed directly to the eval() function without sanitization, allowing a local user to craft and execute arbitrary code.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) &#8216;ros2topic&#8217; command-line tool, affecting all ROS 2 distributions from Crystal Clemmys up to and including Lyr<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-30357","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/30357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}