Affected versions
Ubuntu18.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu20.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/nnn
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/nnn
- Affected versions
- *
- Fixed version
- Not reported
Description
Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex that allows attackers to execute commands via crafted filenames. Attackers can place files whose names contain a double quote and shell syntax, which xargs -I splices into an sh -c script, running commands as the user invoking togglex.
Links
- https://github.com/jarun/nnn
- https://github.com/jarun/nnn/blob/v5.3/plugins/togglex#L15
- https://github.com/jarun/nnn/commit/04715921aece0257fef7a8558c0783493d98efff
- https://github.com/jarun/nnn/issues/2188
- https://ubuntu.com/security/CVE-2026-121548
- https://www.cve.org/CVERecord?id=CVE-2026-121548
- https://www.vulncheck.com/advisories/nnn-through-5.3-os-command-injection-via-togglex-plugin

