CVE-2013-4235
MediumCVSS 4.7Exploitation Probability (EPSS)
Low risk22th percentile - higher than 22% of all known CVEs
Summary
shadow: TOCTOU (time-of-check time-of-use) race condition when copying and removing directory trees.
Risk Assessment
A local attacker could exploit the race condition to manipulate files or directories, potentially leading to privilege escalation or data corruption. The risk applies to systems where directory tree operations are performed with elevated privileges.
Recommendation
Update the shadow package to a version containing the fix for CVE-2013-4235. Restrict the ability of unprivileged users to perform directory tree operations.
Other vulnerabilities in shadow
See all- CVE-2016-6252High
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
- CVE-2017-12424Critical
In the newusers tool in shadow before version 4.5, there is a possibility to manipulate internal data structures in ways unintended by the authors. Malformed input may lead to crashes (with a buffer overflow or other memory corruption) or other unspecified behaviors.
- CVE-2023-29383Low
In Shadow 4.13, it is possible to inject control characters into fields provided to the SUID program chfn (change finger). Although it is not possible to exploit this directly (e.g., adding a new user fails because \n is in the block list), it is possible to misrepresent the /etc/passwd file when viewed. Use of \r manipulations and Unicode characters to work around blocking of the ':' character make it possible to give the impression that a new user has been added.
Original NVD description (English source)
shadow: TOCTOU (time-of-check time-of-use) race condition when copying and removing directory trees
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

