{"id":"CVE-2026-65610","summary":"Numeric Truncation Error in nnn","details":"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. \n\n\n\n\nMaintainer 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.","modified":"2026-08-22T03:31:20.949689982Z","published":"2026-08-19T13:21:13.455Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65610.json","cna_assigner":"CERT-PL","cwe_ids":["CWE-197"]},"references":[{"type":"ADVISORY","url":"https://cert.pl/en/posts/2026/08/CVE-2026-65609"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65610.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65610"},{"type":"PACKAGE","url":"https://github.com/jarun/nnn"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/jarun/nnn","events":[{"introduced":"46f076895ce28035fd190828810f123d8a22221c"},{"last_affected":"46f076895ce28035fd190828810f123d8a22221c"}],"database_specific":{"extracted_events":[{"introduced":"5.2"},{"last_affected":"5.2"}],"source":"AFFECTED_FIELD"}}],"versions":["5.2","v5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65610.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}