{"id":"CVE-2026-48120","aliases":["DEBIAN-CVE-2026-48120","EUVD-2026-54719","GHSA-h99r-h8cp-vwcq","UBUNTU-CVE-2026-48120"],"status":"published","title":"Kakoune has a Critical RCE via Autorestore Backup Filename Injection","description":"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.","severity":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00198,"percentile":0.09632,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-74"],"published":"2026-08-07T22:34:02Z","modified":"2026-10-28T11:11:25Z","fixes":[{"ecosystem":"Debian:14","package":"kakoune","fixed_in":["2026.05.21-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2022.10.31-1","2022.10.31-2","2024.05.18-1","2024.05.18-2","2026.05.21-1","2026.05.21-2"]},{"source":"osv","ecosystem":"Debian:13","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2024.05.18-2","2026.05.21-1","2026.05.21-2"]},{"source":"osv","ecosystem":"Debian:14","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2026.05.21-1"}]}],"versions":["2024.05.18-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0~2016.12.20.1.3a6167ae-1","0~2016.12.20.1.3a6167ae-1build1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2019.01.20-2","2019.07.01-1","2019.07.01-1build1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2020.01.16-3","2020.09.01-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2022.10.31-2"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2024.05.18-2ubuntu2","2026.05.21-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"kakoune","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2024.05.18-2ubuntu1","2024.05.18-2ubuntu2"]}],"products":[{"vendor":"mawww","product":"kakoune"}],"references":[{"url":"https://github.com/mawww/kakoune/security/advisories/GHSA-h99r-h8cp-vwcq","tags":["x_refsource_CONFIRM","advisory","report"]},{"url":"https://github.com/mawww/kakoune/commit/25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825","tags":["x_refsource_MISC","fix","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48120.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48120","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-48120","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-48120","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-48120","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-48120","title":"Kakoune has a Critical RCE via Autorestore Backup Filename Injection","description":"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.","status":"published","published":"2026-08-07T22:34:02.607Z","modified":"2026-08-11T01:20:08.508Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T13:50:49.872037Z"}],"euvd":[{"id":"EUVD-2026-54719","description":"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.","status":"published","published":"2026-08-07T22:34:02Z","modified":"2026-08-11T01:20:08Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T18:02:00.742322Z"}],"nvd":[{"id":"CVE-2026-48120","description":"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.","status":"published","published":"2026-08-07T23:17:04.117Z","modified":"2026-10-23T20:10:00.16Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T14:12:35.743275Z"}],"osv":[{"id":"CVE-2026-48120","title":"Kakoune has a Critical RCE via Autorestore Backup Filename Injection","description":"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.","status":"published","published":"2026-08-07T22:34:02.607Z","modified":"2026-10-28T11:11:25.476865234Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:45:06.701612Z"},{"id":"DEBIAN-CVE-2026-48120","description":"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.","status":"published","published":"2026-08-07T23:17:04.117Z","modified":"2026-10-24T09:47:29.591721169Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:56.444225Z"},{"id":"UBUNTU-CVE-2026-48120","description":"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.","status":"published","published":"2026-08-07T23:17:00Z","modified":"2026-10-17T13:00:23.005480661Z","cvss":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:33.391918Z"}]}}
