Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local write access to victim's session directory
-
DeliveryCraft session file with oversized length fields
-
ExploitWait for victim to run nnn with -s flag
-
ExecutionDeserialize crafted length fields without validation
-
PersistWrite beyond fixed-size global buffer bounds
-
ImpactCorrupt adjacent global state
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) the attacker must have write access to the victim's nnn session directory on the local filesystem - this is typically only possible if the attacker is another local user on a shared system, or if they can achieve file placement via another vulnerability or social engineering; (2) the victim must use the -s option when launching nnn, explicitly loading the malicious session file - this is a non-default invocation that requires user action; (3) the victim must be running nnn version 5.2 or potentially an unconfirmed earlier version. Exploitation is limited to local access only (AV:L), cannot be triggered remotely, and requires active user interaction to load the session file. The absence of a default-on session autoload mechanism means passive exposure is not possible without deliberate user action. |
| Impact | The CVSS 4.0 base score of 2.4 (Low) accurately reflects the constrained attack surface: the vector AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N indicates a local attack requiring low privileges and active user interaction (the victim must explicitly invoke nnn with the -s flag). There is no confidentiality impact and only limited integrity and availability impact against the vulnerable system itself, with no subsequent-system effects. EPSS data is not available in the provided intelligence, and the vulnerability is not listed in CISA KEV, so no confirmed active exploitation is known. No public proof-of-concept code has been identified. The practical threat is narrow: an attacker must already have write access to the victim's nnn session directory - a prerequisite that substantially limits exploitability in shared or hardened environments. The primary real-world risk is a crash or corruption of nnn's runtime state, not remote code execution or data exfiltration. This is a low-priority finding in most operational contexts unless nnn is used in privileged or automated pipelines where session files could be injected. |
| Exploit ScenarioDerived | A local attacker with write access to the victim's nnn session directory crafts a session file containing maliciously oversized length fields. When the victim subsequently runs nnn with the -s flag (e.g., nnn -s mysession), nnn deserializes the crafted file without bounds checking, writing data beyond fixed-size global buffers and corrupting adjacent global state, potentially crashing nnn or influencing its runtime behavior. No public proof-of-concept has been identified, but the attack logic is straightforward for a developer familiar with nnn's session file format. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Out-of-bounds write in nnn terminal file manager version 5.2 allows a local attacker who can place a malicious session file in the victim's session directory to corrupt adjacent global state when the victim loads the file using the -s option. The vulnerability stems from missing validation of attacker-controlled length fields during session file deserialization, enabling writes beyond fixed-size global buffers. No public exploit has been identified at time of analysis, and this is not listed in CISA KEV; the overall risk is low given the local, user-interaction-dependent attack path.
RemediationAI
No vendor-released patch has been identified at time of analysis; the nnn maintainer was notified but did not confirm a fix or provide an updated version. The primary compensating control is to avoid using the -s (session restore) option with any session files originating from untrusted or shared locations. Users should ensure that their nnn session directory (typically ~/.config/nnn/sessions/) has permissions restricted to the owning user (chmod 700), preventing other local users from injecting malicious session files. In multi-user or shared systems, consider disabling nnn's session feature entirely in deployment scripts or wrappers. Monitor the CERT-PL advisory at https://cert.pl/en/posts/2026/08/CVE-2026-65609 and the upstream nnn repository for a patched release. If a patched version becomes available, upgrading is the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
nnn is a lightweight, terminal-based file manager commonly used on Linux and other Unix-like systems. The vulnerability (CWE-787: Out-of-bounds Write) exists in the session file deserialization logic invoked when nnn is launched with the -s flag, which instructs it to load a previously saved session from disk. The session file format includes length fields that nnn reads and uses to control how much data is written into statically allocated global buffers. Because these length fields are not bounds-checked against the actual buffer sizes, a crafted session file can supply artificially large values, causing nnn to write attacker-influenced data past the end of those buffers and into adjacent memory. The affected CPE is cpe:2.3:a:nnn:nnn:*:*:*:*:*:*:*:*, and only version 5.2 has been explicitly tested and confirmed vulnerable by the reporting party (CERT-PL).
Know when Nnn gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Local-only attack requiring low privileges and user interaction (-s flag); no confidentiality impact, limited integrity and availability impact from global state corruption.
Primary rating from Vendor (CERT-PL).
CVSS VectorVendor: CERT-PL
DescriptionCVE.org
nnn is vulnerable to Out-of-Bound write vulnerability. Due to lack of validation of attacker-controlled length fields deserialized from a session file, a crafted session file can cause nnn to write data beyond the bounds of fixed-size global buffers when loaded with the -s option. An attacker who can place a malicious session file in the victim's nnn session directory can exploit this to corrupt adjacent global state.
Maintainer of this project was notified about this vulnerability. It might has been addressed, but the maintainer did not provide a vulnerable version range. Only version 5.2 was tested and confirmed as vulnerable.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Arbitrary command execution in nnn through 5.3 (CVSS 8.4 High) occurs when the togglex plugin processes selected filenam
OS command injection in nnn file manager version 5.2 allows arbitrary shell command execution when a victim navigates to
Shell command injection in nnn file manager version 5.2 allows an attacker who controls a directory name on a shared fil
The pdfread and nuke plugins shipped with nnn through version 5.3 write to predictable, name- and PID-derived paths unde
Integer truncation in the nnn terminal file manager (version 5.2 confirmed vulnerable) allows a local attacker who contr
Local file-write redirection and path disclosure in the nnn terminal file manager (through version 5.3) affect users who
EUVD-2026-62398
GHSA-r4wp-c597-23pf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB