5.8medium
rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling
- Severity
- 5.8medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes to unintended locations. Attackers can substitute a symlink for a component of the destination path between the path resolution and chdir() call, causing the receiver's working directory to be established outside the intended destination tree so that subsequent relative-path file writes land in unintended filesystem locations.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| RsyncProject rsync | up to 3.4.4 Not affected: 3.5.0 | CVE List |
| samba rsync | before 3.5.0 | NVD |
All scores
| VulnCheck | 5.8medium CVSS:4.0 | CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 6.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
What each source says
CVE List
rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes to unintended locations. Attackers can substitute a symlink for a component of the destination path between the path resolution and chdir() call, causing the receiver's working directory to be established outside the intended destination tree so that subsequent relative-path file writes land in unintended filesystem locations.
NVD (es)
rsync anterior a 3.5.0 contiene una vulnerabilidad de condición de carrera de tiempo de verificación a tiempo de uso (TOCTOU) en el manejo del directorio de destino del receptor no demonio que permite a un atacante que puede manipular los componentes padre de la ruta de destino redirigir las escrituras de archivos a ubicaciones no deseadas. Los atacantes pueden sustituir un enlace simbólico por un componente de la ruta de destino entre la resolución de la ruta y la llamada a chdir(), haciendo que el directorio de trabajo del receptor se establezca fuera del árbol de destino previsto, de modo que las escrituras de archivos de ruta relativa posteriores aterricen en ubicaciones no deseadas del sistema de archivos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53796 changed 2026-08-14 | CVE Terms of Use |
| NVD | CVE-2026-53796 changed 2026-11-06 | Public domain |