Skip to content
RedCVE

CVE-2024-42002Open Source Robotics Foundation Robot Operating System 2 (ROS 2) code injection

Open Source Robotics FoundationPublished:

CVSS score

8.6

High

CVSS 4.0 from ubuntu.com

Exploit probability (EPSS)

0.16%

0.16% chance of exploitation in the next 30 days, higher than 5.12% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: security@ubuntu.com

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Open Source Robotics Foundation Robot Operating System 2 (ROS 2) and compare its version with the affected versions.

  2. Watch for an official fix

    No fix or advisory is listed in the official record yet. Follow the vendor's security announcements; this page updates when one is published.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. 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/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected products

Affected productsVersions
Open Source Robotics Foundation Robot Operating System 2 (ROS 2)Rolling Ridley · Lyrical Luth · Kilted Kaiju · Jazzy Jalisco · Iron Irwini · Humble Hawksbill

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2024-42002 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2024-42002?

CVE-2024-42002 has a CVSS 4.0 base score of 8.6 (high).

Which versions are affected?

Open Source Robotics Foundation Robot Operating System 2 (ROS 2) (Rolling Ridley; Lyrical Luth; Kilted Kaiju; Jazzy Jalisco; Iron Irwini; Humble Hawksbill)

Is there a patch for CVE-2024-42002?

No patch is linked in the official record yet. Watch the vendor's security advisories.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.