CVE-2026-121550

nnn through 5.3 Symlink-Following Write via NNN_FIFO Handling

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

Analysis

AI-generated

Technical impact

The vulnerability lets a user with local access control the writing path by supplying an existing FIFO path that the program does not validate. This permits overwriting files that are writable by the user, potentially corrupting data or inserting malicious content, and exposes the history of directories that the user browsed. The flaw corresponds to CWE-59, insecure file handling via misused symbolic links or regular files.

Affected Systems

The issue is defined for the NNN file manager, version 5.3, maintained by the jarun project. Any installation of NNN 5.3 that relies on the default /tmp/nnn.fifo path is affected; later releases are presumed to have fixed the path validation. The product is not listed in CISA's KEV catalog.

Risk and Exploitability

The CVSS score of 1 indicates a low severity in the formal metric, and no EPSS score is currently available. Based on the description it is inferred that the vulnerability requires local access and can be exploited by creating a symlink or regular file at the expected FIFO location, which the attacker can control. The impact is limited to the attacker’s user context, but an elevated privilege user could overwrite any file they can write. The lack of remote access or authentication bypass reduces the overall threat level, yet the ability to corrupt user data remains a concern.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update NNN to a version later than 5.3 where the FIFO path is validated before use
  • Avoid creating or leaving a symlink or regular file at /tmp/nnn.fifo; remove or rename the path before launching NNN
  • Run NNN under a user that does not have write access to critical files, and ensure the directory permissions of your browsing locations are set to read‑only for non‑trusted users

Generated by OpenCVE AI on November 3, 2026 at 16:44 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': 'none', '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 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.
Title nnn through 5.3 Symlink-Following Write via NNN_FIFO Handling
Weaknesses CWE-59
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 3:09 PM
Reserved
Nov 3, 2026, 2:46 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 4:17 PM
Modified
Nov 9, 2026, 3:17 PM