CVE catalog

CVE-2026-65612

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

[CVE catalog]

Severity
High · CVSS 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.44% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannnnsid5.3-1vulnerable
Debiannnnforky5.3-1vulnerable
Debiannnntrixie5.0-1vulnerable
Debiannnnbookworm4.7-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannnnsourcesid(unfixed)not yet assignedNot reported[1145170]
Debiannnnsourceforky(unfixed)not yet assignedNot reported[1145170]
Debiannnnsourcetrixie(unfixed)not yet assignedNot reported[1145170]
Debiannnnsourcebookworm(unfixed)not yet assignedNot reported[1145170]

[Debian bug #1145170]

Notes

[trixie] nnn: Minor issue [bookworm] nnn: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [nnn]Affected
    Details (2)
    • 4.7-1 · amd64 · bookworm

      Affected

      nvd · nnn · debian · bookworm; nvd · nnn · debian · 12

    • 4.7-1 · arm64 · bookworm

      Affected

      nvd · nnn · debian · bookworm; nvd · nnn · debian · 12

[Debian 13 (Trixie)]

  • [nnn]Affected
    Details (2)
    • 5.0-1 · amd64 · trixie

      Affected

      nvd · nnn · debian · 13

    • 5.0-1 · arm64 · trixie

      Affected

      nvd · nnn · debian · 13

Observed:

References