CVE-2026-65611: Shell Command Injection in nnn

Published Aug 19, 2026
·
Updated

nnn does not sanitize the path variable. An attacker can create a directory on a shared filesystem, removable media, or inside an extracted archive whose name contains a single quote followed by shell syntax. If the victim enters that directory in nnn and uses the batch copy or move workflow, the crafted directory name 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 realistically exposed to this issue?

Users who browse untrusted shared filesystems, removable media, or extracted archives with nnn are exposed if an attacker can place a specially named directory in a location the user opens. The payload runs with the privileges of the user running nnn.

2

What interaction is required for exploitation?

The victim must enter the attacker-controlled directory in nnn and use its batch copy or move workflow. Merely having the crafted directory present is not described as sufficient.

3

Which versions are known to be affected?

Version 5.2 was tested and confirmed vulnerable. No vulnerable version range was provided, and the maintainer may have addressed the issue without specifying affected or fixed versions.

4

What can be done before a confirmed fix is available?

Avoid using nnn's batch copy or move workflow after entering directories from untrusted shared storage, removable media, or extracted archives. Treat directory names in those locations as untrusted, especially names containing a single quote and shell syntax.

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