Numeric Truncation Error in nnn
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
No affected products listed by the sources yet.
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-65610
- 2026-10-03 Alias added: GHSA-2fq9-p2vj-rc2v
References
More nnn vulnerabilities
- TI-2026-46775 Shell Command Injection in nnn CVSS 4.0MEDIUM 5.1
- TI-2026-46774 Shell Command Injection in nnn CVSS 4.0MEDIUM 5.1
- TI-2026-46772 Out-of-bounds write in nnn CVSS 4.0LOW 2.4
Sources
- CVE-2026-65610 · CVE Program
- CVE-2026-65610 · NVD
- FIRST EPSS
- GHSA-2fq9-p2vj-rc2v · GitHub Advisory Database · CC BY 4.0
- CVE-2026-65610 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences