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.
https://github.com/jarun/nnn/issues/2188
https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
https://github.com/jarun/nnn/blob/v5.3/plugins/pdfread#L9-L10
Published: 2026-11-03
Updated: 2026-11-03
Base Score: 3.8
Vector: CVSS2#AV:L/AC:H/Au:S/C:N/I:C/A:N
Severity: Low
Base Score: 4.4
Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
Severity: Medium
Base Score: 4.1
Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Severity: Medium
EPSS: 0.00109