CVE-2026-54055

Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.2, a local privilege escalation vulnerability exists in kitty's file transmission protocol where a child process running in the terminal can write to arbitrary files on the filesystem by exploiting a TOCTOU (Time-of-Check-Time-of-Use) race condition between symlink validation and file creation. The `os.open()` call used to create files does not use `O_NOFOLLOW`, allowing an attacker to create a symlink between the initial stat check and the actual file open, causing the write to follow the symlink to an arbitrary destination. Version 0.47.2 fixes the issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:kovidgoyal:kitty:*:*:*:*:*:*:*:*

History

26 Oct 2026, 11:10

Type Values Removed Values Added
Summary
  • (es) Kitty es un terminal multiplataforma basado en GPU. En versiones anteriores a la 0.47.2, existe una vulnerabilidad de escalada de privilegios local en el protocolo de transmisión de archivos de Kitty, donde un proceso hijo ejecutándose en el terminal puede escribir en archivos arbitrarios en el sistema de archivos explotando una condición de carrera TOCTOU (Time-of-Check-Time-of-Use) entre la validación de symlinks y la creación de archivos. La llamada “os.open()” utilizada para crear archivos no utiliza “O_NOFOLLOW”, permitiendo a un atacante crear un symlink entre la comprobación stat inicial y la apertura real del archivo, haciendo que la escritura siga el symlink a un destino arbitrario. La versión 0.47.2 corrige el problema.

Information

Published : 2026-06-12 20:16

Updated : 2026-10-26 11:10


NVD link : CVE-2026-54055

Mitre link : CVE-2026-54055

CVE.ORG link : CVE-2026-54055


JSON object : View

Products Affected

kovidgoyal

  • kitty
CWE
CWE-59

Improper Link Resolution Before File Access ('Link Following')

CWE-367

Time-of-check Time-of-use (TOCTOU) Race Condition

CWE-426

Untrusted Search Path