{"id":"CVE-2023-51596","summary":"BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution Vulnerability","details":"BlueZ Phone Book Access Profile Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of BlueZ. User interaction is required to exploit this vulnerability in that the target must connect to a malicious Bluetooth device.\n\nThe specific flaw exists within the handling of the Phone Book Access profile. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-20939.","modified":"2026-08-12T03:30:20.225490393Z","published":"2024-05-03T02:15:24.617Z","related":["ALSA-2024:9413"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/51xxx/CVE-2023-51596.json","unresolved_ranges":[{"extracted_events":[{"introduced":"5.66"},{"last_affected":"5.66"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"zdi","cwe_ids":["CWE-122"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/51xxx/CVE-2023-51596.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-51596"},{"type":"ADVISORY","url":"https://www.zerodayinitiative.com/advisories/ZDI-23-1902/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/bluez/bluez","events":[{"introduced":"63b01d0b0661d6a0048107dcb9e6f12ceac409e0"},{"last_affected":"63b01d0b0661d6a0048107dcb9e6f12ceac409e0"}],"database_specific":{"extracted_events":[{"introduced":"5.66"},{"last_affected":"5.66"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:bluez:bluez:5.66:*:*:*:*:*:*:*"}}],"versions":["5.66"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-51596.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}