CVE-2026-121550
nnn through 5.3 contains an insecure file handling vulnerability that allows local attackers to redirect writes because main() accepts an existing NNN_FIFO pat…
Impact
nnn through 5.3 contains an insecure file handling vulnerability that allows local attackers to redirect writes because main() accepts an existing NNN_FIFO path without verifying it is a FIFO. Attackers can pre-create the documented predictable /tmp/nnn.fifo path as a symlink or readable regular file, causing victim-writable files to be overwritten or leaking the victim's browsed paths.
An attacker can exploit this with local access to the system, with a regular user account, but a user has to actively do something, such as open a file or a link. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data being read, low risk of data or systems being changed.
Affected products · Jarun
| Product | Affected versions |
|---|---|
| Nnn | through 5.3 Version 0 ≤5.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/jarun/nnn/issues/2188
- https://github.com/jarun/nnn
- https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
- https://github.com/jarun/nnn/blob/v5.3/src/nnn.c#L10635
- https://github.com/jarun/nnn/blob/v5.3/src/nnn.c#L7433
- https://www.vulncheck.com/advisories/nnn-through-5.3-symlink-following-write-via-nnn-fifo-handling
- https://github.com/advisories/GHSA-96gh-683j-p43h
- https://nvd.nist.gov/vuln/detail/CVE-2026-121550