{"schema":"threatline.record/2","record":{"id":"CVE-2024-42002","aliases":[],"summary":"Unsafe use of eval() method in ros2 topic hz tool","details":"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.","categories":["Unclassified"],"product":"Robot Operating System 2 (ROS 2)","vendor":"Open Source Robotics Foundation","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-42002","source_modified_at":"2026-09-30T13:43:15.912Z","fetched_at":"2026-10-23T18:52:38.922436Z","product":"Robot Operating System 2 (ROS 2)","vendor":"Open Source Robotics Foundation","versions":[{"status":"affected","version":"Rolling Ridley","versionType":"custom"},{"status":"affected","version":"Lyrical Luth","versionType":"custom"},{"status":"affected","version":"Kilted Kaiju","versionType":"custom"},{"status":"affected","version":"Jazzy Jalisco","versionType":"custom"},{"status":"affected","version":"Iron Irwini","versionType":"custom"},{"status":"affected","version":"Humble Hawksbill","versionType":"custom"},{"status":"affected","version":"Galactic Geochelone","versionType":"custom"},{"status":"affected","version":"Foxy Fitzroy","versionType":"custom"},{"status":"affected","version":"Eloquent Elusor","versionType":"custom"},{"status":"affected","version":"Dashing Diademata","versionType":"custom"},{"status":"affected","version":"Crystal Clemmys","versionType":"custom"}],"defaultStatus":"unaffected"}],"fixed_versions":[],"cvss":8.6,"severity":"High","kev":{"listed":false},"epss":{"probability":0.0016,"percentile":0.04779,"score_date":"2026-10-23"},"published_at":"2026-09-28T21:38:08.369Z","modified_at":"2026-09-30T13:43:15.912Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-42002","fetched_at":"2026-10-23T18:52:38.922436Z","source_modified_at":"2026-09-30T13:43:15.912Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-42002","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/ros2/ros2cli/pull/1001","tags":["patch"]},{"source":"CVE List","url":"https://github.com/ros2/ros2cli/pull/133#discussion_r223081766","tags":["issue-tracking"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total","assessed_at":"2026-09-30T13:43:08.696167Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-09-30T13:43:15.912Z","content_hash":"fc4d7c6b7e7f6e0eca4ac2aa369a96ac6e7a09b9fae3bcf96f05ff9b12d971af"}}
