{"answers":{"affected":"2 open source packages ship an affected version, including github.com/migueldeicaza/SwiftTerm. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-23465 in the wild and no public exploit code.","fix":"Upgrade github.com/migueldeicaza/SwiftTerm to 1.2.0 or later.","what":"CVE-2022-23465 is a high-severity command injection vulnerability in migueldeicaza SwiftTerm, published on 2 Dec 2022. 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-2022-23465 and fix it if it is affected.\n\nWhat it is: CVE-2022-23465 is a high-severity command injection vulnerability in migueldeicaza SwiftTerm, published on 2 Dec 2022. 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: There is no known exploitation of CVE-2022-23465 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/migueldeicaza/SwiftTerm (SwiftURL): affected all versions; fixed in 1.2.0\n- github.com/migueldeicaza/SwiftTerm (SwiftURL): affected all versions; fixed in 1.2.0\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-2022-23465/ (Markdown: https://insights.sbomify.com/CVE-2022-23465/index.md)","id":"CVE-2022-23465","markdown":"https://insights.sbomify.com/CVE-2022-23465/index.md","name":"CVE-2022-23465","record":{"aliases":["GHSA-jq43-q8mx-r7mq"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Swift terminal emulator","requires_auth":"none","summary":"Attackers can execute arbitrary commands by injecting malicious escape sequences into terminal window titles, affecting users of the SwiftTerm library.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"swiftterm","vendor":"swiftterm_project"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"SwiftTerm is a Xterm/VT100 Terminal emulator. Prior to commit a94e6b24d24ce9680ad79884992e1dff8e150a31, an attacker could modify the window title via a certain character escape sequence and then insert it back to the command line in the user's terminal, e.g. when the user views a file containing the malicious sequence, which could allow the attacker to execute arbitrary commands. Version a94e6b24d24ce9680ad79884992e1dff8e150a31 contains a patch for this issue. There are no known workarounds available.","ecosystems":["SwiftURL"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SwiftTerm vulnerable to arbitrary command execution","id":"CVE-2022-23465","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"SwiftURL","product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":2,"n_references":2,"next":{"headline":"DOM-based cross-site scripting (XSS) in teler dashboard","id":"CVE-2022-23466"},"packages":[{"ecosystem":"SwiftURL","fixed":["1.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/migueldeicaza/SwiftTerm","purl":null,"source":"GHSA-jq43-q8mx-r7mq"},{"ecosystem":"SwiftURL","fixed":["1.2.0"],"introduced":["0"],"last_affected":[],"package":"github.com/migueldeicaza/SwiftTerm","purl":"pkg:swift/github.com/migueldeicaza/SwiftTerm","source":"GHSA-jq43-q8mx-r7mq"}],"prev":{"headline":"Potential Server Side Request Forgery (SSRF) in Nepxion Discovery","id":"CVE-2022-23464"},"products":["SwiftTerm"],"published":"2022-12-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["migueldeicaza"]},"summary":"Attackers can execute arbitrary commands by injecting malicious escape sequences into terminal window titles, affecting users of the SwiftTerm library.","url":"https://insights.sbomify.com/CVE-2022-23465/"}