8.6

CVE-2024-42002: Unsafe use of eval() method in ros2 topic hz tool

Awaiting analysis
Published 28-09-2026Last modified 30-09-2026

Vulnerability summary

CVE-2024-42002 is a high (CVSS 8.6) Improper Control of Generation of Code vulnerability in open source robotics foundation robot operating system 2 (ros 2). EPSS estimates a 0.16% chance of exploitation in the next 30 days, higher than 5.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.6, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.6/10
010
High · v4.0 (CVE.org)
EPSS score
0.16%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 28-09-2026
    PublishedVulnerability first disclosed.
  2. 30-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 2 sources · 2 versions

EPSS trend

Probability

0.16%

Chance of exploitation in the next 30 days

Percentile

5%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.16% on 21-10-2026

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Open source robotics foundation1 product
  • robot 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

1 vendor · 1 product

References

2 links