5.3medium
NFS client accepts file names containing path separators
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.68% (higher than 53% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- freebsd
Description
When mounting a remote filesystem using NFS, the kernel did not sanitize remotely provided filenames for the path separator character, "/". This allows readdir(3) and related functions to return filesystem entries with names containing additional path components. The lack of validation described above gives rise to a confused deputy problem. For example, a program copying files from an NFS mount could be tricked into copying from outside the intended source directory, and/or to a location outside the intended destination directory.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FreeBSD FreeBSD | from 14.1-RELEASE before p3, from 14.0-RELEASE before p9, from 13.3-RELEASE before p5, from 14.1 before 14.1p3, from 14.0 before 14.0p9, from 13.3 before 13.3p5, before 13.0, from 13.1 before 13.3 and 3 more | CVE List, NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
When mounting a remote filesystem using NFS, the kernel did not sanitize remotely provided filenames for the path separator character, "/". This allows readdir(3) and related functions to return filesystem entries with names containing additional path components. The lack of validation described above gives rise to a confused deputy problem. For example, a program copying files from an NFS mount could be tricked into copying from outside the intended source directory, and/or to a location outside the intended destination directory.
NVD (es)
Al montar un sistema de archivos remoto usando NFS, el kernel no desinfectó los nombres de archivos proporcionados de forma remota para el carácter separador de ruta, "/". Esto permite que readdir(3) y funciones relacionadas devuelvan entradas del sistema de archivos con nombres que contienen componentes de ruta adicionales. La falta de validación descrita anteriormente da lugar a un confuso problema de diputados. Por ejemplo, se podría engañar a un programa que copia archivos desde un montaje NFS para que los copie desde fuera del directorio de origen previsto y/o a una ubicación fuera del directorio de destino previsto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6759 changed 2024-08-16 | CVE Terms of Use |
| NVD | CVE-2024-6759 changed 2026-06-17 | Public domain |