Description
nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. An attacker who can influence the victim's execution environment can provide an arbitrary HOME path with length that is truncated to 0. The expression (homelen - 1) is promoted to signed int and becomes -1 and producing an out-of-bounds read and an out-of-bounds write one byte before the path buffer. 




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.
Published: 2026-08-19
Score: 2.4 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a numeric truncation error in the nnn application. The homelen variable is stored as an unsigned char and can hold only up to 255. An attacker can supply a HOME path longer than 255, causing homelen to truncate to 0. When the expression (homelen - 1) is evaluated, integer promotion makes it -1, leading to an out-of-bounds read and a write one byte before the allocated buffer, which corrupts adjacent memory.

Affected Systems

The vulnerability has been confirmed only in version 5.2 of nnn. The maintainer was notified but has not published a fixed version range, and no other versions are known to be unaffected. Therefore, only version 5.2 is definitively vulnerable, and other unpatched releases may also contain the same flaw until further information is released.

Risk and Exploitability

The CVSS score of 2.4 indicates low severity. The EPSS score is below 1% and the vulnerability is not listed in CISA’s KEV catalog, so widespread exploitation is unlikely. Based on the description, it is inferred that the attacker must have control over the environment in which nnn runs to supply a long HOME path, meaning local or privileged execution is required. Because the flaw depends on the supply of a specific environment variable and has a low severity, the overall risk is low but should still be mitigated if the affected version is in use.

Generated by OpenCVE AI on August 20, 2026 at 17:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a patched version of nnn as soon as one is released.
  • If a patch is not yet available, restrict or sanitize the HOME environment variable before launching nnn to ensure it is not longer than 255 characters.
  • Monitor nnn for abnormal crashes or suspicious memory usage that may indicate exploitation attempts.

Generated by OpenCVE AI on August 20, 2026 at 17:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 20 Aug 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Nnn
Nnn nnn
Vendors & Products Nnn
Nnn nnn

Wed, 19 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
Description nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. An attacker who can influence the victim's execution environment can provide an arbitrary HOME path with length that is truncated to 0. The expression (homelen - 1) is promoted to signed int and becomes -1 and producing an out-of-bounds read and an out-of-bounds write one byte before the path buffer.  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.
Title Numeric Truncation Error in nnn
Weaknesses CWE-197
References
Metrics cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: CERT-PL

Published:

Updated: 2026-08-20T15:57:11.971Z

Reserved: 2026-07-22T10:59:31.846Z

Link: CVE-2026-65610

cve-icon Vulnrichment

Updated: 2026-08-20T15:53:42.685Z

cve-icon NVD

Status : Deferred

Published: 2026-08-19T14:17:38.227

Modified: 2026-08-28T15:26:19.533

Link: CVE-2026-65610

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T18:00:04Z

Weaknesses