{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54056 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-54056 is a high-severity path traversal vulnerability in kovidgoyal kitty, published on 12 Jun 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54056 and fix it if it is affected.\n\nWhat it is: CVE-2026-54056 is a high-severity path traversal vulnerability in kovidgoyal kitty, published on 12 Jun 2026. Any signed-in user can exploit it over the 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-54056 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-54056/ (Markdown: https://insights.sbomify.com/CVE-2026-54056/index.md)","id":"CVE-2026-54056","markdown":"https://insights.sbomify.com/CVE-2026-54056/index.md","name":"CVE-2026-54056","record":{"aliases":["DEBIAN-CVE-2026-54056","GHSA-r892-cv7q-fw8x","UBUNTU-CVE-2026-54056"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Kitty terminal emulator","requires_auth":"low_privilege","summary":"A malicious remote drag-and-drop source can overwrite arbitrary files via symlink following in Kitty terminal's kitten dnd staging.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"kitty","vendor":"kovidgoyal"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"Kitty is a cross-platform GPU based terminal. In versions 0.47.0 and 0.47.1, `kitten dnd` can allow a malicious remote drag-and-drop source to overwrite or truncate arbitrary files writable by the local kitty user. Remote `text/uri-list` drops are staged in a temporary directory, but on case-sensitive filesystems duplicate remote basenames are not de-duplicated. An attacker can first create a staged symlink and then send a same-name regular-file entry. The regular-file write uses `utils.CreateAt()` / `openat(O_RDWR|O_CREAT|O_TRUNC)` without `O_NOFOLLOW`, so it follows the attacker-created symlink and writes outside the staging directory before final overwrite confirmation runs. This appears related in class to the file-transfer symlink advisory, but it is a different bug: it affects `kitten dnd` remote drag-and-drop staging, uses different vulnerable code (`kittens/dnd/drop.go` and `tools/utils/file_at_fd.go`), and reproduces on commit `4aa4a5c0567a92553a8c20a88a4352da637fca5d`, after the file-transfer `O_NOFOLLOW` fix. Version 0.47.2 patches 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 overwrite via symlink following in `kitten dnd` remote drop staging","id":"CVE-2026-54056","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Kitty vulnerable to command injection via unsanitized OSC 21 query reply","id":"CVE-2026-54057"},"packages":[],"prev":{"headline":"Kitty has an Arbitrary File Write via Symlink Race Condition in File Transmission Protocol","id":"CVE-2026-54055"},"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.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"},{"cvss_score":5,"headline":"Kitty has an Arbitrary File Write via Symlink Race Condition in File Transmission Protocol","id":"CVE-2026-54055","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 malicious remote drag-and-drop source can overwrite arbitrary files via symlink following in Kitty terminal's kitten dnd staging.","url":"https://insights.sbomify.com/CVE-2026-54056/"}