{"id":"CVE-2024-41921","state":"PUBLISHED","title":"Unsafe use of eval() method in rostopic echo tool","description":"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 'echo' verb, which allows a user to introspect a ROS 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.","publishedAt":"2025-07-17T19:13:34.025Z","updatedAt":"2025-07-18T08:05:08.288Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["Open Source Robotics Foundation Robot Operating System (ROS)"],"affected":[{"vendor":"Open Source Robotics Foundation","product":"Robot Operating System (ROS)","packageName":"rostopic","defaultStatus":"unaffected","versions":[{"version":"Noetic Ninjemys","status":"affected"},{"version":"Melodic Morenia","status":"affected"},{"version":"Kinetic Kame","status":"affected"},{"version":"Indigo Igloo","status":"affected"}],"modules":["rostopic"],"platforms":["Linux","Windows","MacOS"],"repo":"https://github.com/ros/ros_comm"}],"references":["https://www.ros.org/blog/noetic-eol/"],"weaknesses":["CWE-95","CWE-94"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41921.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-41921","state":"PUBLISHED","datePublished":"2025-07-17T19:13:34.025Z","dateUpdated":"2025-07-18T08:05:08.288Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2024-08-08T14:41:22.680Z"},"containers":{"cna":{"title":"Unsafe use of eval() method in rostopic echo tool","descriptions":[{"lang":"en","value":"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 'echo' verb, which allows a user to introspect a ROS 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":[{"vendor":"Open Source Robotics Foundation","product":"Robot Operating System (ROS)","packageName":"rostopic","defaultStatus":"unaffected","versions":[{"version":"Noetic Ninjemys","status":"affected"},{"version":"Melodic Morenia","status":"affected"},{"version":"Kinetic Kame","status":"affected"},{"version":"Indigo Igloo","status":"affected"}],"modules":["rostopic"],"platforms":["Linux","Windows","MacOS"],"repo":"https://github.com/ros/ros_comm"}],"references":[{"url":"https://www.ros.org/blog/noetic-eol/","tags":["product"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-95","description":"CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2025-07-18T08:05:08.288Z"},"credits":[{"lang":"en","type":"finder","value":"Florencia Cabral Berenfus, Ubuntu Robotics Team"}],"solutions":[{"lang":"en","value":"All ROS (1) versions are EOL, upgrade to a ROS 2 version."}],"impacts":[{"capecId":"CAPEC-586","descriptions":[{"lang":"en","value":"CAPEC-586 Object Injection"}]}],"source":{"discovery":"INTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-07-17T20:37:06.242493Z","id":"CVE-2024-41921","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-17T20:37:17.375Z"}}]}}}