{"id":"CVE-2026-65612","aliases":["CVE-2026-65612"],"related":[],"kind":"vulnerability","state":"published","title":"Shell Command Injection in nnn","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\nto 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.\n\n\n\nMaintainer 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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\nto 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.\n\n\n\nMaintainer 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.","source":"cvelist"},{"lang":"es","text":"nnn no sanitiza la variable de nombre de archivo. Un atacante puede colocar un archivo con un nombre manipulado en un sistema de archivos compartido, medios extraíbles o dentro de un archivo extraído cuyo nombre contiene una comilla simple seguida de sintaxis de shell. Si la víctima navega a ese archivo y lo abre con preview-tabbed, el nombre de archivo se incrusta en el comando de shell generado y la carga útil inyectada se ejecuta con los privilegios del proceso nnn.\n\nEl mantenedor de este proyecto fue notificado sobre esta vulnerabilidad. Podría haber sido abordado, pero el mantenedor no proporcionó un rango de versiones vulnerables. Solo la versión 5.2 fue probada y confirmada como vulnerable.","source":"nvd"}],"published":"2026-08-19T13:21:32.599Z","modified":"2026-10-27T12:10:00.343Z","severity":{"scorer":"CERT-PL","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"CERT-PL","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"type":"git","version":"5.2","status":"affected"}],"vendor":"nnn","product":"nnn","repo":"https://github.com/jarun/nnn","source":"cvelist"}],"references":[{"url":"https://cert.pl/en/posts/2026/08/CVE-2026-65609","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Michał Majchrowicz (AFINE Team)","Marcin Wyczechowski (AFINE Team)"],"assigner":"CERT-PL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-20T15:32:48.281Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65612","url":"https://www.cve.org/CVERecord?id=CVE-2026-65612","licence":"CVE Terms of Use","modified":"2026-08-20T15:57:11.651Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65612","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65612","licence":"Public domain","modified":"2026-10-27T12:10:00.343Z"}],"updatedAt":"2026-11-25T22:59:33.926Z","epss":{"score":0.0033,"percentile":0.28227,"date":"2026-12-01T12:00:22.000Z"}}