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.