{"id":"CVE-2026-48120","summary":"Kakoune has a Critical RCE via Autorestore Backup Filename Injection","details":"Kakoune is a code editor. Prior to version 2026.05.21, the bundled, enabled by default, `autorestore.kak` script can be exploited by malicious backup files leading to arbitrary kakoune and shell commands being executed by simply opening a file. Kakoune 2026.05.21 fixes the issue. As a workaround, add `autorestore-disable` to the user kakrc will disable the autorestore feature.","aliases":["GHSA-h99r-h8cp-vwcq"],"modified":"2026-08-09T03:47:20.517120620Z","published":"2026-08-07T22:34:02.607Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-74"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48120.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48120.json"},{"type":"ADVISORY","url":"https://github.com/mawww/kakoune/security/advisories/GHSA-h99r-h8cp-vwcq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48120"},{"type":"FIX","url":"https://github.com/mawww/kakoune/commit/25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mawww/kakoune","events":[{"introduced":"0"},{"fixed":"25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"2026.05.21"}]}}],"versions":["v2026.04.12","v2025.06.03","v2024.05.18","v2024.05.09","v2023.08.05","v2023.07.29","v2022.10.31","v2021.11.08","v2021.10.28","v2021.08.28","v2020.09.01","v2020.08.04","v2020.01.16","v2019.12.10","v2019.07.01","v2019.01.20","v2018.10.27","v2018.09.04","v2018.04.13","v20180409"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48120.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}