nnn — security advisory
nnn does not sanitize the filename variable. An attacker can place a file with a crafted name on a shared filesystem, removable media, or inside an extracted archive whose name contains a single quote followed by shell syntax. If the victim navigates to that file and opens it with preview-tabbed, the filename is embedded into the generated shell command and the injected payload executes with the privileges of the nnn process. 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-65612
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:49 UTC · Revision 1
Source evidence
nnn does not sanitize the filename variable. An attacker can place a file with a crafted name on a shared filesystem, removable media, or inside an extracted archive whose name contains a single quote followed by shell syntax. If the victim navigates to that file and opens it with preview-tabbed, the filename is embedded into the generated shell command and the injected payload executes with the privileges of the nnn process. 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-65612
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": "5f9f20ab53d02db24fdd3607cb416e39fa3942a235dde1d6323cd337980bce24",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-65612",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-65612",
"summary": "nnn does not sanitize the filename variable. An attacker can place a file with a crafted name on a shared filesystem, removable media, or inside an extracted archive whose name contains a single quote followed by shell syntax. If the victim navigates to that file and opens it with preview-tabbed, the filename is embedded into the generated shell command and the injected payload executes with the privileges of the nnn process. 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-65612",
"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": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-65612",
"aliases": [
"UBUNTU-CVE-2026-65612"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:L"
},
{
"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-65612.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-65612.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-65612.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-65612.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-65612.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-65612.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "nnn",
"binary_version": "5.1-1"
}
]
}
}
],
"modified": "2026-10-17T12:59:17.009809058Z",
"provider": "osv",
"upstream": [
"CVE-2026-65612"
],
"references": [
"https://ubuntu.com/security/CVE-2026-65612",
"https://www.cve.org/CVERecord?id=CVE-2026-65612"
]
},
"related_cves": [
{
"value": "CVE-2026-65612",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359587,
"published_at": "2026-08-19T14:17:00+00:00"
}