# CVE-2026-48120: Kakoune has a Critical RCE via Autorestore Backup Filename Injection

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-08-07T22:34:02.607Z
- Modified: 2026-10-23T20:10:00.160Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mawww kakoune: < 2026.05.21

## References

- <https://github.com/mawww/kakoune/security/advisories/GHSA-h99r-h8cp-vwcq>
- <https://github.com/mawww/kakoune/commit/25c7b13b244fd1ddacc63ecfe1784b5ebc2ba825>

## Sources

- CVE List: [CVE-2026-48120](https://www.cve.org/CVERecord?id=CVE-2026-48120), CVE Terms of Use, modified 2026-08-11
- NVD: [CVE-2026-48120](https://nvd.nist.gov/vuln/detail/CVE-2026-48120), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-48120 · Whole record: https://cve.day/CVE-2026-48120.json · Rebuilt by cve.day 2026-11-25T22:59:31.901Z
