{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54055 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-54055 is a medium-severity vulnerability in kovidgoyal kitty, published on 12 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54055 and fix it if it is affected.\n\nWhat it is: CVE-2026-54055 is a medium-severity vulnerability in kovidgoyal kitty, published on 12 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54055 exists.\n\nAffected product: kovidgoyal kitty. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54055/ (Markdown: https://insights.sbomify.com/CVE-2026-54055/index.md)","id":"CVE-2026-54055","markdown":"https://insights.sbomify.com/CVE-2026-54055/index.md","name":"CVE-2026-54055","record":{"aliases":["DEBIAN-CVE-2026-54055","GHSA-q446-x7q6-vcxh","UBUNTU-CVE-2026-54055"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kitty terminal emulator","requires_auth":"low_privilege","summary":"A local attacker can exploit a race condition in Kitty's file transmission protocol to write arbitrary files, leading to privilege escalation.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kitty","vendor":"kovidgoyal"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-426","name":"Untrusted Search Path"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Kitty has an Arbitrary File Write via Symlink Race Condition in File Transmission Protocol","id":"CVE-2026-54055","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Kitty has an arbitrary file overwrite via symlink following in `kitten dnd` remote drop staging","id":"CVE-2026-54056"},"packages":[],"prev":{"headline":"Transmute has full-read SSRF in URL file import (POST /api/files/url) — no host/IP validation, follows redirects","id":"CVE-2026-54054"},"products":["kitty"],"published":"2026-06-12","related":[{"cvss_score":9.9,"headline":"Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check","id":"CVE-2026-33642","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":7.8,"headline":"@kitty-edit DCS + --color=geninclude vulnerable to Unauthenticated in-process RCE","id":"CVE-2026-42851","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":7.6,"headline":"Kitty has an arbitrary file overwrite via symlink following in `kitten dnd` remote drop staging","id":"CVE-2026-54056","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":7.5,"headline":"Kitty has a Heap Buffer Overflow in its Graphics Protocol Handler","id":"CVE-2026-33633","kev_date_added":null,"published":"2026-05-19"},{"cvss_score":7.4,"headline":"Kitty has a shell command injection","id":"CVE-2026-42850","kev_date_added":null,"published":"2026-06-12"},{"cvss_score":7.3,"headline":"Kitty vulnerable to command injection via unsanitized OSC 21 query reply","id":"CVE-2026-54057","kev_date_added":null,"published":"2026-06-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-15","vendors":["kovidgoyal"]},"summary":"A local attacker can exploit a race condition in Kitty's file transmission protocol to write arbitrary files, leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-54055/"}