# CVE-2026-54055: Kitty has an Arbitrary File Write via Symlink Race Condition in File Transmission Protocol

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:L`
- 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.10%, higher than 0% of CVEs (2026-11-29)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-12T20:03:17.907Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-59, CWE-367, CWE-426
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- kovidgoyal kitty: < 0.47.2; before 0.47.2

## References

- <https://github.com/kovidgoyal/kitty/security/advisories/GHSA-q446-x7q6-vcxh> (exploit, mitigation, vendor-advisory)

## Sources

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

---

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