CVE-2024-42002

HIGHCVSS 8.4/10EPSS 0.16%

Last modified

CVE-2024-42002 is a high-severity vulnerability rated 8.4/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.

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.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
Open Source Robotics FoundationRobot Operating System 2 (ROS 2)Rolling Ridley; Lyrical Luth; Kilted Kaiju; Jazzy Jalisco; Iron Irwini; Humble Hawksbill; Galactic Geochelone; Foxy Fitzroy; Eloquent Elusor; Dashing Diademata; Crystal Clemmys

References

Timeline

Published
Last Modified
Status
Awaiting Analysis

Frequently Asked Questions

What is CVE-2024-42002?
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.
How severe is CVE-2024-42002?
CVE-2024-42002 has a CVSS score of 8.4/10 (HIGH severity). The EPSS model estimates a 0.16% probability of exploitation in the next 30 days.
How do I fix CVE-2024-42002?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2024

Are you affected by CVE-2024-42002?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST