CVE-2026-121549
nnn: nnn: Arbitrary file overwrite via insecure temporary file creation in plugins
Overview
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.
Source: OX vulnerability database
Severity
4.4 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
Weakness: CWE-377
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 5 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | nnn | affected |
| 12 | nnn | affected |
| 13 | nnn | affected |
| 14 | nnn | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nnn | affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-121549
- github.com https://github.com/jarun/nnn
- github.com https://github.com/jarun/nnn/blob/v5.3/plugins/nuke#L280
- github.com https://github.com/jarun/nnn/blob/v5.3/plugins/pdfread#L9-L10
- github.com https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
- github.com https://github.com/jarun/nnn/issues/2188
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-121549
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-121549
- www.vulncheck.com https://www.vulncheck.com/advisories/nnn-through-5.3-insecure-temporary-file-symlink-overwrite-via-pdfread-and-nuke-plugins
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.