CVE-2026-121549

nnn through 5.3 Insecure Temporary File Symlink Overwrite via pdfread and nuke Plugins

Published Nov 3, 2026 CVSS 4.0 · 4.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw resides in the pdfread and nuke plugins of the nnn file manager version 5.3 and earlier. These plugins create temporary files in /tmp using predictable paths derived from the filename or process ID. A local attacker can pre‑create a symbolic link pointing to an arbitrary file that the user has write permissions for. When the plugin opens and truncates the temporary file, the symlink causes the victim’s file to be overwritten rather than the intended temp file. This results in a local file write vulnerability (CWE‑377) and a symlink-based path traversal flaw (CWE‑59).

Affected Systems

The vulnerability affects the nnn file manager (vendor jarun) for all releases up to and including 5.3, specifically when the pdfread and nuke plugins are enabled. Earlier and later versions not containing the plugins or those patched are not affected.

Risk and Exploitability

The CVSS score of 4.1 indicates a moderate impact. The EPSS score is less than 1%, indicating a very low probability of exploitation, and the issue is not listed in CISA KEV, implying no known wide‑scale exploitation. The attack requires local access; an attacker must run nnn as the vulnerable user and create a symlink in /tmp before invoking the plugins. Successful exploitation allows overwriting any file that the victim can write, which could modify configuration files or user data, compromising integrity for that user. The danger is limited to the user’s writable file space but could affect application or system configuration if those files are critical.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade nnn to the latest release that incorporates the temporary‑file symlink fix.
  • If an immediate upgrade is not possible, disable or uninstall the pdfread and nuke plugins to eliminate the vulnerable code path.
  • Ensure the user running nnn does not have unnecessary write access to /tmp, or configure a dedicated temporary directory with restricted permissions to reduce the window for symlink attacks.

Generated by OpenCVE AI on November 6, 2026 at 02:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Jarun
Jarun nnn
Vendors & Products Jarun
Jarun nnn
Type Values Removed Values Added
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.
Title nnn through 5.3 Insecure Temporary File Symlink Overwrite via pdfread and nuke Plugins
Weaknesses CWE-377
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'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'}

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 7, 2026, 3:08 AM
Reserved
Nov 3, 2026, 2:46 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 4:17 PM
Modified
Nov 7, 2026, 4:17 AM
Severity
Moderate
Public date
Nov 3, 2026, 3:17 PM