nnn — security advisory
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.
- Products
- nnn
- Affected versions
- 1.3-2, 1.5-1, 1.6-1, 1.7-1, 2.6-1, 2.7-1, 2.8-1, 2.8.1-1, 2.9-1, 3.0-1, 3.0-2, 3.5-1, 4.3-1, 4.8-1, 4.9-1, 4.9-1build1, 4.9-1build2, 5.0-1, 5.1-1, 5.2-1, 5.3-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-65610
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:49 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-65610
nnn
Fixed versions: Not specified
nnn
Fixed versions: Not specified
nnn
Fixed versions: Not specified
nnn
Fixed versions: Not specified
nnn
Fixed versions: Not specified
nnn
Fixed versions: Not specified
Complete source record
{
"id": "5ebe6aaeda8f9b34adcc6f0423dc968051299802c711fabb08fb4a1aafabcc8f",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-65610",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-65610",
"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.",
"evidence": "osv:UBUNTU-CVE-2026-65610",
"products": [
{
"name": {
"value": "nnn",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.5-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.6-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.7-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "nnn",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.7-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.8-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.8.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.9-1",
"evidence": "/affected/1/versions"
},
{
"value": "3.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "3.0-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "nnn",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.5-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.3-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "nnn",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.8-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.9-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.9-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.9-1build2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "nnn",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.1-1",
"evidence": "/affected/4/versions"
},
{
"value": "5.2-1",
"evidence": "/affected/4/versions"
},
{
"value": "5.3-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "nnn",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "5.0-1",
"evidence": "/affected/5/versions"
},
{
"value": "5.1-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "low",
"structured": {
"id": "UBUNTU-CVE-2026-65610",
"aliases": [
"UBUNTU-CVE-2026-65610"
],
"metrics": [
{
"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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.3-2",
"1.5-1",
"1.6-1",
"1.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "1.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.6-1",
"2.7-1",
"2.8-1",
"2.8.1-1",
"2.9-1",
"3.0-1",
"3.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "3.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.5-1",
"4.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "4.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.8-1",
"4.9-1",
"4.9-1build1",
"4.9-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "4.9-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"5.1-1",
"5.2-1",
"5.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "5.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "nnn",
"purl": "pkg:deb/ubuntu/nnn?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"5.0-1",
"5.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-65610.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "5.1-1"
}
]
}
}
],
"modified": "2026-10-17T12:59:16.810045802Z",
"provider": "osv",
"upstream": [
"CVE-2026-65610"
],
"references": [
"https://ubuntu.com/security/CVE-2026-65610",
"https://www.cve.org/CVERecord?id=CVE-2026-65610"
]
},
"related_cves": [
{
"value": "CVE-2026-65610",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359583,
"published_at": "2026-08-19T14:17:00+00:00"
}