6.3medium
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 h…
- Severity
- 6.3medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Red Hat oddjob | before 0.34.5, before 0.34.6 | CVE List |
| redhat oddjob | before 0.34.5 | NVD |
All scores
| redhat | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.7low CVSS:2.0 | AV:L/AC:H/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Se encontró una condición de carrera en la herramienta mkhomedir enviada con el paquete oddjob en versiones anteriores a 0.34.5 y 0.34.6 en la que, durante la creación del inicio, mkhomedir copia el directorio /etc/skel en el inicio recientemente creado y cambia su propiedad al usuario del inicio sin comprobar apropiadamente la ruta homedir. Este fallo permite a un atacante aprovechar este problema al crear un punto de enlace simbólico en una carpeta de destino, que luego ha transferido su propiedad al usuario no privilegiado del nuevo directorio de inicio.
References
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10737 | issue-tracking, vendor-advisory | |
| https://pagure.io/oddjob/c/10b8aaa1564b723a005b53acc069df71313f4cac?branch | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-10737 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-10737 changed 2026-06-17 | Public domain |