{"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-10-25T07:13:55.448544251Z","published":"2026-08-07T22:34:02.607Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48120.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-74"]},"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":"36ad52ebf983c1b23182caccd4f792517235b06d"},{"fixed":"25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2026.05.21"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825"}]}]}}],"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/osv-test-cve-osv-conversion/osv-output/CVE-2026-48120.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/mawww/kakoune/commit/36ad52ebf983c1b23182caccd4f792517235b06d","target":{"file":"src/main.cc"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["128495886531965262996541097277457311222","80875189594521831869114628986674075728","329997126514369219202846194224370385862","97158121025604836355451783740262182794","40047562719486121863037407613896888184","323453739393177447376236665399840768355","303778251511019835848770699201801619722","286508314168956282742731727002431979980","291742790962387901507933038406493762379","107448851313047533440757017120110586705"]},"id":"CVE-2026-48120-f38539cb","signature_type":"Line"}],"vanir_signatures_modified":"2026-10-25T07:13:55Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"}]}