nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. (CVE-2026-65610)
The nnn file manager stores the homelen variable as an unsigned char type, which can only represent values from 0 to 255. This causes an integer truncation issue when handling HOME paths longer than 255 characters, potentially leading to a negative value after promotion and resulting in an out-of-bounds read and write one byte before the path buffer. Version 5.2 has been confirmed vulnerable. No official patch or affected version range has been provided by the maintainer.
AI Analysis
Technical Summary
nnn uses an unsigned char (uchar_t) type for the homelen variable, limiting it to values between 0 and 255. When an attacker controls the HOME environment variable with a length exceeding this range, the length is truncated, and the expression (homelen - 1) is promoted to a signed integer, becoming -1. This leads to an out-of-bounds read and write one byte before the allocated path buffer. The vulnerability was confirmed in version 5.2, but no explicit affected version range or patch information is available from the maintainer.
Potential Impact
An attacker able to influence the victim's execution environment can cause out-of-bounds memory access, including one byte before the path buffer. This may lead to memory corruption, potentially causing crashes or undefined behavior. The severity is rated low, and no known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or version range has been provided by the maintainer, users should monitor for updates from the project and consider avoiding version 5.2 until a fix is released.
nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. (CVE-2026-65610)
Description
The nnn file manager stores the homelen variable as an unsigned char type, which can only represent values from 0 to 255. This causes an integer truncation issue when handling HOME paths longer than 255 characters, potentially leading to a negative value after promotion and resulting in an out-of-bounds read and write one byte before the path buffer. Version 5.2 has been confirmed vulnerable. No official patch or affected version range has been provided by the maintainer.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
nnn uses an unsigned char (uchar_t) type for the homelen variable, limiting it to values between 0 and 255. When an attacker controls the HOME environment variable with a length exceeding this range, the length is truncated, and the expression (homelen - 1) is promoted to a signed integer, becoming -1. This leads to an out-of-bounds read and write one byte before the allocated path buffer. The vulnerability was confirmed in version 5.2, but no explicit affected version range or patch information is available from the maintainer.
Potential Impact
An attacker able to influence the victim's execution environment can cause out-of-bounds memory access, including one byte before the path buffer. This may lead to memory corruption, potentially causing crashes or undefined behavior. The severity is rated low, and no known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or version range has been provided by the maintainer, users should monitor for updates from the project and consider avoiding version 5.2 until a fix is released.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-2fq9-p2vj-rc2v
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-65610"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 4.0
Threat ID: 6a85ee24acd9273b4969a4eb
Added to database: 08/19/2026, 17:55:48 UTC
Last enriched: 08/19/2026, 18:09:49 UTC
Last updated: 08/19/2026, 18:51:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.