Skip to main content

nnn CVE-2026-65609

| EUVDEUVD-2026-62398 LOW
Out-of-bounds Write (CWE-787)
2026-08-19 CERT-PL GHSA-r4wp-c597-23pf
2.4
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local write access to victim's session directory
  2. Delivery
    Craft session file with oversized length fields
  3. Exploit
    Wait for victim to run nnn with -s flag
  4. Execution
    Deserialize crafted length fields without validation
  5. Persist
    Write beyond fixed-size global buffer bounds
  6. Impact
    Corrupt 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nnn 5.2

Affected Packages

euvd nnn no fix

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

Vendor (CERT-PL) PRIMARY 2.4 LOW
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
vuln.today AI 3.9 LOW

Local-only attack requiring low privileges and user interaction (-s flag); no confidentiality impact, limited integrity and availability impact from global state corruption.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Rare
niche terminal file manager used by Linux power users
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy