CVE-2020-10737 Race condition in oddjob

Medium 6.3 Published Updated

An attacker can exploit a race condition in mkhomedir to change ownership of arbitrary directories via symlinks, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-10737?

CVE-2020-10737 is a medium-severity vulnerability in Red Hat oddjob, published on 27 May 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-362

Which versions are affected by CVE-2020-10737?

It affects 1 product.

Linux distribution packages (6)
oddjob Red Hat:enterprise_linux:8::appstreamAll versions0:0.34.5-3.el8
oddjob-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.34.5-3.el8
oddjob-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.34.5-3.el8
oddjob-mkhomedir Red Hat:enterprise_linux:8::appstreamAll versions0:0.34.5-3.el8
oddjob-mkhomedir-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.34.5-3.el8
oddjob openSUSE:TumbleweedAll versions0.34.5-1.9

Products include Redhat Oddjob.

How do I fix CVE-2020-10737?

Upgrade to a fixed version.

Is CVE-2020-10737 being exploited?

There is no known exploitation of CVE-2020-10737 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-10737, GHSA-m6xw-hhwx-7qjc, RHSA-2020:4687, UBUNTU-CVE-2020-10737, USN-5169-1, openSUSE-SU-2024:11109-1.

Is CVE-2020-10737 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free