SwiftTerm vulnerable to arbitrary command execution
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-23465
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:06 UTC · Revision 1
Source evidence
SwiftTerm vulnerable to arbitrary command execution
core-osv · Original sourcePublished 2 Dec 2022, 22:53 UTC
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.
osv:CVE-2022-23465
Complete source record
{
"id": "1d437216a6a692e0516335a4fb325245bba4dde63137a45021e771cdecbc7bef",
"url": "https://osv.dev/vulnerability/CVE-2022-23465",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2022-23465",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2022-23465",
"aliases": [
"CVE-2022-23465",
"GHSA-jq43-q8mx-r7mq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/migueldeicaza/swiftterm",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a94e6b24d24ce9680ad79884992e1dff8e150a31"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "a94e6b24d24ce9680ad79884992e1dff8e150a31"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "a94e6b24d24ce9680ad79884992e1dff8e150a31"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "a94e6b24d24ce9680ad79884992e1dff8e150a31"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"1.0.7",
"1.0.6",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1",
"1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23465.json"
}
}
],
"modified": "2026-10-28T02:30:36.786554268Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23465.json",
"https://github.com/migueldeicaza/SwiftTerm/security/advisories/GHSA-jq43-q8mx-r7mq",
"https://nvd.nist.gov/vuln/detail/CVE-2022-23465",
"https://github.com/migueldeicaza/SwiftTerm/commit/a94e6b24d24ce9680ad79884992e1dff8e150a31"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23465.json"
}
},
"related_cves": [
{
"value": "CVE-2022-23465",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 503711,
"published_at": "2022-12-02T22:53:45.174+00:00"
}