Time-of-check Time-of-use (TOCTOU) Race Condition in shadow - CVE-2013-4235

 

Time-of-check Time-of-use (TOCTOU) Race Condition in shadow - CVE-2013-4235

Published: January 3, 2022


Vulnerability identifier: #VU59131
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2013-4235
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Mark Florian
Affected software:
shadow

Detailed vulnerability description

The vulnerability allows a local user to delete or modify arbitrary files on the system.

The vulnerability exists due to a race condition in shadow-utils when executing usermod/userdel operations. A local user with write access to the directory that is being moved or deleted by the usermod/userdel commands can modify or delete arbitrary files on the system.

Successful exploitation of the vulnerability may allow an attacker to corrupt arbitrary files on the system and perform a denial of service (DoS) attack.


How to mitigate CVE-2013-4235

Install updates from vendor's website.

Sources