CVE-2026-65612: Shell Command Injection in nnn

Published Aug 19, 2026
·
Updated

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.

Affected Software

1 affected component
nnn=5.2

Event History

Aug 19, 2026
CVE Published
via MITRE·01:21 PM
Data Sourced
via MITRE·01:21 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Users of nnn who browse untrusted shared filesystems, removable media, or extracted archives are exposed if they navigate to and open a file with a crafted filename using preview-tabbed. The injected command runs with the privileges of the affected nnn process.

2

What must an attacker do to exploit it?

An attacker needs to place a file whose name contains a single quote followed by shell syntax in a location the victim will browse. Exploitation requires the victim to navigate to that file and open it with preview-tabbed.

3

Are all nnn versions known to be affected?

Only version 5.2 was tested and confirmed vulnerable. No vulnerable version range was provided, and the issue may have been addressed after maintainer notification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203