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

Published Aug 7, 2026
·
Updated

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.

Affected Software

1 affected component
Kakoune Kakoune<2026.05.21

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade kakoune to a version that resolves this vulnerability.

    Fixed in 2026.05.21
  2. Configuration

    As a workaround, add `autorestore-disable` to the user `kakrc` to disable the autorestore feature.

    Kakoune autorestore (autorestore.kak) autorestore-disable = added to user kakrc

Event History

Aug 7, 2026
CVE Published
via MITRE·10:34 PM
Data Sourced
via MITRE·10:34 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2026-48120?

CVE-2026-48120 is a high severity vulnerability in Kakoune that allows remote code execution through malicious backup files in the autorestore feature.

2

What is the severity of CVE-2026-48120?

The severity of CVE-2026-48120 is high with a CVSS score of 8.6.

3

How do I fix CVE-2026-48120?

To fix CVE-2026-48120, upgrade Kakoune to version 2026.05.21 or later.

4

What are the risks associated with CVE-2026-48120?

The risks of CVE-2026-48120 include arbitrary code execution which can potentially lead to system compromise when opening malicious files.

5

Who is affected by CVE-2026-48120?

Users of Kakoune prior to version 2026.05.21 are affected by CVE-2026-48120, especially those utilizing the autorestore feature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203