Affected versions
Ubuntu18.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/nnn
- Affected versions
- *
- Fixed version
- Not reported
Description
nnn through 5.3 contains an insecure temporary file vulnerability in the pdfread and nuke plugins that allows local attackers to overwrite files by exploiting predictable paths in /tmp. Attackers can pre-create a symlink at the name-derived or PID-derived path so the victim's plugin truncates and overwrites any file the victim can write.
Links
- https://github.com/jarun/nnn
- https://github.com/jarun/nnn/blob/v5.3/plugins/nuke#L280
- https://github.com/jarun/nnn/blob/v5.3/plugins/pdfread#L9-L10
- https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
- https://github.com/jarun/nnn/issues/2188
- https://ubuntu.com/security/CVE-2026-121549
- https://www.cve.org/CVERecord?id=CVE-2026-121549
- https://www.vulncheck.com/advisories/nnn-through-5.3-insecure-temporary-file-symlink-overwrite-via-pdfread-and-nuke-plugins

