{"id":2856,"cve":"CVE-2024-30710","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2024-30710\/","cwe":"CWE-319 (inferred)","cwe_number":319,"cwe_url":null,"cvss_score":null,"published":"2024-04-10","owasp":"A02 Cryptographic Failures","odc":"Interface","cdc":"Missing Interface","category":"Information Leakage","subcategory":"Information Disclosure","scope":"Remote","impact":"Information Disclosure","summary":"Plaintext ROS2 Dashing messages expose data to MitM interception.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2024-30710\/","description":"An issue was discovered in ROS2 Dashing Diademata in ROS_VERSION 2 and ROS_PYTHON_VERSION 3, where the system transmits messages in plaintext. This flaw exposes sensitive information, making it vulnerable to man-in-the-middle (MitM) attacks, and allowing attackers to easily intercept and access this data. NOTE: this is disputed by multiple third parties who believe there was not reasonable evidence to determine the existence of a vulnerability.","solution":"Upgrade ROS\u202f2 to version\u202fHumble\u202fHawksbill (or any later release) which adds encrypted DDS transport and fixes the plaintext\u2011message issue.","affected_component":"ROS2","fixed_by_upgrading":false,"vulnerable_code":"import socket\n\ndef publish_data(host: str, port: int, payload: bytes) -> None:\n    \"\"\"Send ROS2-like message payload over a plain TCP socket.\"\"\"\n    # VULNERABLE: transmits data in plaintext, susceptible to eavesdropping\n    with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:\n        sock.connect((host, port))\n        sock.sendall(payload)\n","patched_code":"import socket\nimport ssl\n\ndef publish_data(host: str, port: int, payload: bytes) -> None:\n    \"\"\"Send ROS2-like message payload over an encrypted TLS socket.\"\"\"\n    # FIX: encrypts transmission with TLS to prevent plaintext leakage\n    context = ssl.create_default_context()\n    with socket.create_connection((host, port)) as raw_sock:\n        with context.wrap_socket(raw_sock, server_hostname=host) as sock:\n            sock.sendall(payload)\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[],"references":null}