CVE-2023-45866
bluez: unauthorized HID device connections allows keystroke injection and arbitrary commands execution
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · December 7, 2023
Updated · April 21, 2026
Description
A flaw was found in the HID Profile in BlueZ that opens doors for unauthorized connections, especially by devices like keyboards, to inject keystrokes without user confirmation. BlueZ lacks proper restrictions on non-bonded devices, creating a risk for attackers that are physically close to inject keystrokes and execute arbitrary commands when the device is in a discoverable state.
Statement
BlueZ was found to inadequately limit non-bonded devices from injecting HID events into the input subsystem. This vulnerability could permit a nearby attacker (physically proximate) to inject keystrokes and carry out arbitrary commands when the device is in discoverable mode.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Put Bluetooth device in non-discoverable mode / disable incoming pairing. Or Disable Bluetooth. Instructions on disabling bluetooth in Red Hat Enterprise Linux are available at: https://access.redhat.com/solutions/2682931
CVSS / CWE
CVSS 3.1 · 6.3CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CWE-1220 · Insufficient Granularity of Access Control