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.
History

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: 2026-08-19T13:21:13.455Z

Updated: 2026-08-19T13:21:13.455Z

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

Link: CVE-2026-65610

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-65610

cve-icon Redhat

No data.