CVEBrief

Home / Open Source Robotics Foundation / Robot Operating System 2 (ROS 2) / CVE-2024-42002

CVE-2024-42002: is it exploited, and which versions of Open Source Robotics Foundation Robot Operating System 2 (ROS 2) are affected and fixed?

CVE-2024-42002 is a code injection through eval vulnerability in Open Source Robotics Foundation Robot Operating System 2 (ROS 2). It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: Robot Operating System 2 (ROS 2) Rolling Ridley, Robot Operating System 2 (ROS 2) Lyrical Luth, Robot Operating System 2 (ROS 2) Kilted Kaiju and 8 more (CVE record by canonical). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.6, CVSS 4.0, from canonical).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:06 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 07:38 UTC
Affected
Robot Operating System 2 (ROS 2) Rolling Ridley, Robot Operating System 2 (ROS 2) Lyrical Luth, Robot Operating System 2 (ROS 2) Kilted Kaiju and 8 more
CVE record by canonical
Fixed in
Not listed
check the vendor advisory
Severity
High 8.6
CVSS 4.0 from canonical
Exploit odds (EPSS)
0.16% in 30 days
higher than 5% of CVEs; FIRST, December 2, 2026

What is CVE-2024-42002?

Unsafe use of eval() method in ros2 topic hz tool

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.

From the CVE record by canonical, last updated September 30, 2026, 13:43 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Open Source Robotics FoundationRobot Operating System 2 (ROS 2) ros2topic
Linux, MacOS, Windows
Rolling Ridley
Lyrical Luth
Kilted Kaiju
Jazzy Jalisco
Iron Irwini
Humble Hawksbill
Galactic Geochelone
Foxy Fitzroy
Eloquent Elusor
Dashing Diademata
Crystal Clemmys

As the CVE record by canonical states it, last updated September 30, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

How severe is CVE-2024-42002?

ScoreVersionVectorSource
High 8.6CVSS 4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Ncanonical
High 8.4CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hcanonical

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-42002 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: total (CISA ADP, September 30, 2026)
EPSS
0.16% probability of exploitation activity in the next 30 days, percentile 5.4 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

How do I fix it? (from the CVE record)

No fixed release is available at the time of publication. A fix is proposed upstream in https://github.com/ros2/ros2cli/pull/1001.

Is there a workaround? (from the CVE record)

Do not pass untrusted or unreviewed input to the --filter option of 'ros2 topic hz'.

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
August 1, 2024
Published
September 28, 2026, 21:38 UTC
CVE record updated
September 30, 2026, 13:43 UTC by canonical
NVD
Awaiting Analysis, last modified November 9, 2026, 10:10 UTC
Last checked
CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2024-42002

Is CVE-2024-42002 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 0.16% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Open Source Robotics Foundation Robot Operating System 2 (ROS 2) are affected by CVE-2024-42002?

Robot Operating System 2 (ROS 2) Rolling Ridley, Robot Operating System 2 (ROS 2) Lyrical Luth, Robot Operating System 2 (ROS 2) Kilted Kaiju, Robot Operating System 2 (ROS 2) Jazzy Jalisco, Robot Operating System 2 (ROS 2) Iron Irwini, Robot Operating System 2 (ROS 2) Humble Hawksbill and 5 more, per the CVE record by canonical. The tables above give every range the sources list.

Which version fixes CVE-2024-42002?

None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.

How severe is CVE-2024-42002?

High (8.6, CVSS 4.0, from canonical). The severity table above shows each score with its source.

Where is the official record of CVE-2024-42002?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.