Description (CNA)
LiME through 1.12.0 fails to validate the disk acquisition output path and does not use O_NOFOLLOW when opening the operator-supplied path parameter, allowing unprivileged local users to overwrite arbitrary root-owned files. An attacker who controls the output directory can create a symbolic link with the expected filename pointing to any root-owned file, and when the acquisition runs in kernel context, LiME follows the link and truncates the target file with the memory acquisition stream.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| jtsylve / LiME | affected 0 through 1.12.0 |
CWE
CWE-59
References
- https://gist.github.com/thesmartshadow/5355949144749b431da41490b63598f5
- https://github.com/jtsylve/LiME/blob/v1.12.0/src/disk.c#L63
- https://github.com/jtsylve/LiME
- https://www.vulncheck.com/advisories/lime-through-1.12.0-arbitrary-file-overwrite-via-symlink-following
ADP enrichment
No English description supplied.
No references supplied.