ROS 2 ros2topic Command-Line Tool Code Injection Vulnerability
Open Source Robotics Foundation Robot Operating System 2 (ROS 2)
At a glance
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 description · CVE List / CNA
System impact
CVSS summary v4.0
- Published:
- Updated:
- EPSS:
- 0.16%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Local
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:Open Source Robotics Foundation | Robot Operating System 2 (ROS 2)Environments (3)
| Affected versions:Rolling RidleyShow full version range for Robot Operating System 2 (ROS 2)Lyrical LuthKilted KaijuJazzy JaliscoIron IrwiniHumble HawksbillGalactic GeocheloneFoxy FitzroyEloquent ElusorDashing DiademataCrystal Clemmys |
| Vendor:Open Source Robotics Foundation | Robot Operating System 2 (ROS 2) | Affected versions:Humble HawksbillShow full version range for Robot Operating System 2 (ROS 2)Foxy FitzroyJazzy JaliscoKilted KaijuIron IrwiniRolling RidleyDashing DiademataEloquent ElusorCrystal ClemmysGalactic GeocheloneLyrical Luth |
1–2 of 2 · Page 1 of 1
CVSS scores and metrics5
canonical · CVE List / CNA (cna)Primary8.6 / 10HighCVSS 4.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
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[email protected] · NVD (Secondary)8.6 / 10HighCVSS 4.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
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:XENISA · ENISA EUVD (aggregator)8.6 / 10HighCVSS 4.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Attack requirements
- None
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Ncanonical · CVE List / CNA (cna)8.4 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Secondary)8.4 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories6
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences