CVE-2020-10737
Medium · 6.3CVSS
6.3
EPSS
0.3%
Published
May 27, 2020
CISA due date
—
Cloudanix analysis
A program meant to set up new user folders can be tricked into handing control of critical system areas to regular users.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Application
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits a local attacker to create a symbolic link for a new user's home directory pointing to an arbitrary target path, causing the tool to recursively change ownership of that target to the unprivileged user during home directory creation.
Why it matters to the business
Attackers with local access can gain ownership of sensitive system directories, potentially leading to unauthorized access to files, configuration changes, or further privilege escalation on affected systems.
How an attack unfolds
An attacker creates a symlink from the expected home directory path to a target directory they wish to own. When a new user is created and mkhomedir runs, it follows the symlink and changes ownership of the target to the new user, allowing the attacker to access or modify that content.
How to fix it
Update the oddjob package to version 0.34.5 or later. Ensure proper path validation is in place before changing ownership during home directory creation.
How to confirm the fix worked
Verify the installed version of oddjob is at least 0.34.5. Test by attempting to create a user with a symlinked home directory and confirm ownership changes are prevented on target paths.
Typical attack path
- Create a symlink pointing the prospective home directory to a privileged target path
- Trigger user creation or home directory initialization for a new account
- Observe that ownership of the target path has been changed to the unprivileged user
- Use the newly owned files or directories to escalate privileges or access data
How to detect it
Check system logs for user creation events around the time of suspicious ownership changes on directories. Look for processes invoking mkhomedir with unusual paths. Examine file ownership anomalies on sensitive directories.
- mkhomedir
- /etc/skel
- symlink to /root
- symlink to /etc
- unexpected chown on system directories
What your security team should do
- Upgrade oddjob to a fixed version immediately
- Audit systems for any existing symlink-based ownership changes on sensitive directories
- Monitor for local privilege escalation attempts involving user creation
- Restrict local user creation privileges where possible
The record
A race condition was found in the mkhomedir tool shipped with the oddjob package in versions before 0.34.5 and 0.34.6 wherein, during the home creation, mkhomedir copies the /etc/skel directory into the newly created home and changes its ownership to the home's user without properly checking the homedir path. This flaw allows an attacker to leverage this issue by creating a symlink point to a target folder, which then has its ownership transferred to the new home directory's unprivileged user.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | oddjob | 0 | 0.34.6-1 |
| Debian:12 | oddjob | 0 | 0.34.6-1 |
| Debian:13 | oddjob | 0 | 0.34.6-1 |
| Red Hat:enterprise_linux:8::appstream | oddjob | 0 | 0:0.34.5-3.el8 |
| Red Hat:enterprise_linux:8::appstream | oddjob-debuginfo | 0 | 0:0.34.5-3.el8 |
| Red Hat:enterprise_linux:8::appstream | oddjob-debugsource | 0 | 0:0.34.5-3.el8 |
| Red Hat:enterprise_linux:8::appstream | oddjob-mkhomedir | 0 | 0:0.34.5-3.el8 |
| Red Hat:enterprise_linux:8::appstream | oddjob-mkhomedir-debuginfo | 0 | 0:0.34.5-3.el8 |
| Ubuntu:20.04:LTS | oddjob | 0 | No fix |
| Ubuntu:22.04:LTS | oddjob | 0 | 0.34.6-1 |
| Ubuntu:Pro:16.04:LTS | oddjob | 0 | 0.34.3-2ubuntu0.1~esm1 |
| Ubuntu:Pro:18.04:LTS | oddjob | 0 | 0.34.3-4ubuntu0.1~esm1 |
| Ubuntu:Pro:20.04:LTS | oddjob | 0 | 0.34.4-1ubuntu0.1~esm1 |
| openSUSE:Tumbleweed | oddjob | 0 | 0.34.5-1.9 |
Related vulnerabilities
- CVE-2026-114641 Traefik 2.11.x before 2.11.58 and 3.x before 3.7.14 contains a race condition in NTLM and… CWE-362
- CVE-2026-109279 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 lacks proper synchronization when… CWE-362
- CVE-2026-97032 HTTP/2 servers could end up crashing due to inadvertently modifying its HPACK encoder… CWE-362
- CVE-2026-98163 In the Linux kernel, the following vulnerability has been resolved: cgroup: Avoid… CWE-362
- CVE-2026-98146 In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Remove… CWE-362
- CVE-2026-98153 In the Linux kernel, the following vulnerability has been resolved: nvme: fix racy access… CWE-362
- CVE-2026-98130 In the Linux kernel, the following vulnerability has been resolved: sctp: fix a TOCTOU… CWE-362
- CVE-2026-98115 In the Linux kernel, the following vulnerability has been resolved: ksmbd: safely drain… CWE-362