{"id":"CVE-2022-23465","aliases":["CVE-2022-23465","GHSA-jq43-q8mx-r7mq"],"related":[],"kind":"vulnerability","state":"published","title":"SwiftTerm vulnerable to arbitrary command execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAttacker 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.\n\n### Credit\nThese bugs were found and disclosed by David Leadbeater <dgl@dgl.cx> (@dgl at Github.com)\n\n### Patches\n\nFixed in version ce596e0dc8cdb288bc7ed5c6a59011ee3a8dc171\n\n### Workarounds\n\nThere are no workarounds available\n\n### References\n\nSimilar exploits to this existed in the past, for terminal emulators:\n\nhttps://nvd.nist.gov/vuln/detail/CVE-2003-0063\nhttps://nvd.nist.gov/vuln/detail/CVE-2008-2383\n\nAdditional background and information is also available:\n\nhttps://marc.info/?l=bugtraq&m=104612710031920&w=2\nhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510030","format":"markdown","source":"ghsa"},{"lang":"es","text":"SwiftTerm es un emulador de terminal Xterm/VT100. Antes del commit a94e6b24d24ce9680ad79884992e1dff8e150a31, un atacante podría modificar el título de la ventana mediante una determinada secuencia de escape de caracteres y luego insertarlo nuevamente en la línea de comando en la terminal del usuario, por ejemplo, cuando el usuario ve un archivo que contiene la secuencia maliciosa, lo que podría permitir al atacante ejecutar comandos arbitrarios. La versión a94e6b24d24ce9680ad79884992e1dff8e150a31 contiene un parche para este problema. No se conocen workarounds disponibles.","source":"nvd"}],"published":"2022-12-02T22:53:45.174Z","modified":"2026-06-17T04:30:10.733Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< a94e6b24d24ce9680ad79884992e1dff8e150a31","status":"affected"}],"vendor":"migueldeicaza","product":"SwiftTerm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.0"}],"ecosystem":"SwiftURL","package":"github.com/migueldeicaza/SwiftTerm","purl":"pkg:swift/github.com/migueldeicaza/SwiftTerm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2022-12-02"}],"vendor":"swiftterm_project","product":"swiftterm","cpe":"cpe:2.3:a:swiftterm_project:swiftterm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/migueldeicaza/SwiftTerm/security/advisories/GHSA-jq43-q8mx-r7mq","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/migueldeicaza/SwiftTerm/commit/a94e6b24d24ce9680ad79884992e1dff8e150a31","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23465","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/migueldeicaza/SwiftTerm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T13:53:13.010Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23465","url":"https://www.cve.org/CVERecord?id=CVE-2022-23465","licence":"CVE Terms of Use","modified":"2025-04-23T16:32:50.729Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jq43-q8mx-r7mq","url":"https://github.com/advisories/GHSA-jq43-q8mx-r7mq","licence":"CC-BY-4.0","modified":"2024-02-09T00:34:39.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23465","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23465","licence":"Public domain","modified":"2026-06-17T04:30:10.733Z"}],"updatedAt":"2026-11-25T22:58:17.195Z","epss":{"score":0.00468,"percentile":0.42138,"date":"2026-12-01T12:00:22.000Z"}}