{"id":"CVE-2024-42002","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-42002","generatedAt":"2026-10-27T23:51:59.325Z","title":"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.","description":"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.","published":"2026-09-28T22:17:29.000Z","lastModified":"2026-09-30T14:17:18.000Z","status":"Awaiting Analysis","sourceIdentifier":"security@ubuntu.com","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/M"},"cwe":["CWE-94","CWE-95"],"affected":[],"epss":{"score":0.0016,"percentile":0.05112,"date":"2026-10-26","history":[{"date":"2026-09-29","score":0.0016,"percentile":0.04425}]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (0.16%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[{"kind":"new","label":"New CVE","at":"2026-09-28T22:17:29.000Z","detail":{"score":"8.6","severity":"HIGH","publishedAt":"2026-09-28T22:17:28.617Z"},"summary":"New CVE, high severity (CVSS 8.6)."}],"references":[{"url":"https://github.com/ros2/ros2cli/pull/1001","source":"security@ubuntu.com"},{"url":"https://github.com/ros2/ros2cli/pull/133#discussion_r223081766","source":"security@ubuntu.com"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-42002","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}