CVE-2024-42002 (GCVE-0-2024-42002)
Vulnerability from cvelistv5 – Published: 2026-09-28 21:38 – Updated: 2026-09-30 13:43| URL | Tags |
|---|---|
| https://github.com/ros2/ros2cli/pull/1001 | patch |
| https://github.com/ros2/ros2cli/pull/133#discussi… | issue-tracking |
| Vendor | Product | Version | CPE status | |
|---|---|---|---|---|
| Open Source Robotics Foundation | Robot Operating System 2 (ROS 2) |
Affected:
Rolling Ridley
(custom)
Affected: Lyrical Luth (custom) Affected: Kilted Kaiju (custom) Affected: Jazzy Jalisco (custom) Affected: Iron Irwini (custom) Affected: Humble Hawksbill (custom) Affected: Galactic Geochelone (custom) Affected: Foxy Fitzroy (custom) Affected: Eloquent Elusor (custom) Affected: Dashing Diademata (custom) Affected: Crystal Clemmys (custom) |
guessed |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-42002",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-09-30T13:43:08.696167Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-09-30T13:43:15.912Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"modules": [
"ros2topic"
],
"packageName": "ros2topic",
"platforms": [
"Linux",
"MacOS",
"Windows"
],
"product": "Robot Operating System 2 (ROS 2)",
"programFiles": [
"ros2topic/ros2topic/verb/hz.py"
],
"repo": "https://github.com/ros2/ros2cli",
"vendor": "Open Source Robotics Foundation",
"versions": [
{
"status": "affected",
"version": "Rolling Ridley",
"versionType": "custom"
},
{
"status": "affected",
"version": "Lyrical Luth",
"versionType": "custom"
},
{
"status": "affected",
"version": "Kilted Kaiju",
"versionType": "custom"
},
{
"status": "affected",
"version": "Jazzy Jalisco",
"versionType": "custom"
},
{
"status": "affected",
"version": "Iron Irwini",
"versionType": "custom"
},
{
"status": "affected",
"version": "Humble Hawksbill",
"versionType": "custom"
},
{
"status": "affected",
"version": "Galactic Geochelone",
"versionType": "custom"
},
{
"status": "affected",
"version": "Foxy Fitzroy",
"versionType": "custom"
},
{
"status": "affected",
"version": "Eloquent Elusor",
"versionType": "custom"
},
{
"status": "affected",
"version": "Dashing Diademata",
"versionType": "custom"
},
{
"status": "affected",
"version": "Crystal Clemmys",
"versionType": "custom"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Florencia Cabral Berenfus, Ubuntu Robotics Team"
}
],
"descriptions": [
{
"lang": "en",
"value": "A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) \u0027ros2topic\u0027 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 \u0027hz\u0027 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."
}
],
"impacts": [
{
"capecId": "CAPEC-242",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-242 Code Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 8.6,
"baseSeverity": "HIGH",
"exploitMaturity": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
},
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 8.4,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/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 (\u0027eval injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-94",
"description": "CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-28T21:38:08.369Z",
"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
"shortName": "canonical"
},
"references": [
{
"tags": [
"patch"
],
"url": "https://github.com/ros2/ros2cli/pull/1001"
},
{
"tags": [
"issue-tracking"
],
"url": "https://github.com/ros2/ros2cli/pull/133#discussion_r223081766"
}
],
"solutions": [
{
"lang": "en",
"value": "No fixed release is available at the time of publication. A fix is proposed upstream in https://github.com/ros2/ros2cli/pull/1001."
}
],
"source": {
"discovery": "INTERNAL"
},
"title": "Unsafe use of eval() method in ros2 topic hz tool",
"workarounds": [
{
"lang": "en",
"value": "Do not pass untrusted or unreviewed input to the --filter option of \u0027ros2 topic hz\u0027."
}
],
"x_generator": {
"engine": "cvelib 1.8.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
"assignerShortName": "canonical",
"cveId": "CVE-2024-42002",
"datePublished": "2026-09-28T21:38:08.369Z",
"dateReserved": "2024-08-01T12:00:12.183Z",
"dateUpdated": "2026-09-30T13:43:15.912Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2024-42002",
"date": "2026-11-13",
"epss": "0.0016",
"percentile": "0.05215"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"modules": [
"ros2topic"
],
"packageName": "ros2topic",
"platforms": [
"Linux",
"MacOS",
"Windows"
],
"product": "Robot Operating System 2 (ROS 2)",
"programFiles": [
"ros2topic/ros2topic/verb/hz.py"
],
"repo": "https://github.com/ros2/ros2cli",
"vendor": "Open Source Robotics Foundation",
"versions": [
{
"status": "affected",
"version": "Rolling Ridley",
"versionType": "custom"
},
{
"status": "affected",
"version": "Lyrical Luth",
"versionType": "custom"
},
{
"status": "affected",
"version": "Kilted Kaiju",
"versionType": "custom"
},
{
"status": "affected",
"version": "Jazzy Jalisco",
"versionType": "custom"
},
{
"status": "affected",
"version": "Iron Irwini",
"versionType": "custom"
},
{
"status": "affected",
"version": "Humble Hawksbill",
"versionType": "custom"
},
{
"status": "affected",
"version": "Galactic Geochelone",
"versionType": "custom"
},
{
"status": "affected",
"version": "Foxy Fitzroy",
"versionType": "custom"
},
{
"status": "affected",
"version": "Eloquent Elusor",
"versionType": "custom"
},
{
"status": "affected",
"version": "Dashing Diademata",
"versionType": "custom"
},
{
"status": "affected",
"version": "Crystal Clemmys",
"versionType": "custom"
}
]
}
],
"source": "security@ubuntu.com"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) \u0027ros2topic\u0027 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 \u0027hz\u0027 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."
},
{
"lang": "es",
"value": "Se ha descubierto una vulnerabilidad de inyecci\u00f3n de c\u00f3digo en el Robot Operating System 2 (ROS 2) herramienta de l\u00ednea de comandos \u2019ros2topic\u2019, que afecta a todas las distribuciones de ROS 2 desde Crystal Clemmys hasta Lyrical Luth y Rolling Ridley inclusive. La vulnerabilidad se encuentra en el verbo \u2019hz\u2019, que informa la tasa de publicaci\u00f3n de un t\u00f3pico y acepta una expresi\u00f3n Python proporcionada por el usuario mediante la opci\u00f3n --filter. Esta entrada se pasa directamente a la funci\u00f3n eval() sin saneamiento, lo que permite a un usuario local crear y ejecutar c\u00f3digo arbitrario."
}
],
"id": "CVE-2024-42002",
"lastModified": "2026-11-09T10:10:00.217",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 8.4,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 2.5,
"impactScore": 5.9,
"source": "security@ubuntu.com",
"type": "Secondary"
}
],
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 8.6,
"baseSeverity": "HIGH",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "security@ubuntu.com",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2024-42002",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-09-30T13:43:08.696167Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-09-28T22:17:28.617",
"references": [
{
"source": "security@ubuntu.com",
"url": "https://github.com/ros2/ros2cli/pull/1001"
},
{
"source": "security@ubuntu.com",
"url": "https://github.com/ros2/ros2cli/pull/133#discussion_r223081766"
}
],
"sourceIdentifier": "security@ubuntu.com",
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-94"
},
{
"lang": "en",
"value": "CWE-95"
}
],
"source": "security@ubuntu.com",
"type": "Secondary"
}
]
}
},
"vulnrichment": {
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-42002",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-09-30T13:43:08.696167Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-09-30T13:43:12.945Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"modules": [
"ros2topic"
],
"packageName": "ros2topic",
"platforms": [
"Linux",
"MacOS",
"Windows"
],
"product": "Robot Operating System 2 (ROS 2)",
"programFiles": [
"ros2topic/ros2topic/verb/hz.py"
],
"repo": "https://github.com/ros2/ros2cli",
"vendor": "Open Source Robotics Foundation",
"versions": [
{
"status": "affected",
"version": "Rolling Ridley",
"versionType": "custom"
},
{
"status": "affected",
"version": "Lyrical Luth",
"versionType": "custom"
},
{
"status": "affected",
"version": "Kilted Kaiju",
"versionType": "custom"
},
{
"status": "affected",
"version": "Jazzy Jalisco",
"versionType": "custom"
},
{
"status": "affected",
"version": "Iron Irwini",
"versionType": "custom"
},
{
"status": "affected",
"version": "Humble Hawksbill",
"versionType": "custom"
},
{
"status": "affected",
"version": "Galactic Geochelone",
"versionType": "custom"
},
{
"status": "affected",
"version": "Foxy Fitzroy",
"versionType": "custom"
},
{
"status": "affected",
"version": "Eloquent Elusor",
"versionType": "custom"
},
{
"status": "affected",
"version": "Dashing Diademata",
"versionType": "custom"
},
{
"status": "affected",
"version": "Crystal Clemmys",
"versionType": "custom"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Florencia Cabral Berenfus, Ubuntu Robotics Team"
}
],
"descriptions": [
{
"lang": "en",
"value": "A code injection vulnerability has been discovered in the Robot Operating System 2 (ROS 2) \u0027ros2topic\u0027 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 \u0027hz\u0027 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."
}
],
"impacts": [
{
"capecId": "CAPEC-242",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-242 Code Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 8.6,
"baseSeverity": "HIGH",
"exploitMaturity": "NOT_DEFINED",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "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",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
},
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 8.4,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/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 (\u0027eval injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-94",
"description": "CWE-94 Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-09-28T21:38:08.369Z",
"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
"shortName": "canonical"
},
"references": [
{
"tags": [
"patch"
],
"url": "https://github.com/ros2/ros2cli/pull/1001"
},
{
"tags": [
"issue-tracking"
],
"url": "https://github.com/ros2/ros2cli/pull/133#discussion_r223081766"
}
],
"solutions": [
{
"lang": "en",
"value": "No fixed release is available at the time of publication. A fix is proposed upstream in https://github.com/ros2/ros2cli/pull/1001."
}
],
"source": {
"discovery": "INTERNAL"
},
"title": "Unsafe use of eval() method in ros2 topic hz tool",
"workarounds": [
{
"lang": "en",
"value": "Do not pass untrusted or unreviewed input to the --filter option of \u0027ros2 topic hz\u0027."
}
],
"x_generator": {
"engine": "cvelib 1.8.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc",
"assignerShortName": "canonical",
"cveId": "CVE-2024-42002",
"datePublished": "2026-09-28T21:38:08.369Z",
"dateReserved": "2024-08-01T12:00:12.183Z",
"dateUpdated": "2026-09-30T13:43:15.912Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Solutions
Workarounds
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.