CVE-2020-10699
targetcli: world writable /var/run/targetclid.sock allows unprivileged user to execute commands
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 23, 2020
Updated · November 22, 2025
Description
A flaw was found in Linux, where the socket used by targetclid was world-writable. If a system enables the targetclid socket, a local attacker can use this flaw to modify the iSCSI configuration and escalate their privileges to root.
Statement
Red Hat Enterprise Linux versions 7, 8.0 and 8.1 are not vulnerable to this flaw, because they do not ship a version of targetcli that contains the targetclid.socket socket. Red Hat Enterprise Linux version 8.2 is affected by this flaw. This issue did not affect the version of targetcli shipped with Red Hat Ceph Storage 2 and 3, as the package did not include the support for systemd which provides targetclid.socket socket.
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
- Do not enable targetclid, this would prevent the socket to be created
- Manually change the socket's permission every time it is being created : $ sudo chmod 0600 /var/run/targetclid.sock
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-732 · Incorrect Permission Assignment for Critical Resource