GHSA-jq43-q8mx-r7mq

Suggest an improvement
Source
https://github.com/advisories/GHSA-jq43-q8mx-r7mq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-jq43-q8mx-r7mq/GHSA-jq43-q8mx-r7mq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jq43-q8mx-r7mq
Aliases
Published
2023-07-14T21:58:43Z
Modified
2024-02-09T00:34:39Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N CVSS Calculator
Summary
SwiftTerm Code Injection vulnerability
Details

Impact

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.

Credit

These bugs were found and disclosed by David Leadbeater dgl@dgl.cx (@dgl at Github.com)

Patches

Fixed in version ce596e0dc8cdb288bc7ed5c6a59011ee3a8dc171

Workarounds

There are no workarounds available

References

Similar exploits to this existed in the past, for terminal emulators:

https://nvd.nist.gov/vuln/detail/CVE-2003-0063 https://nvd.nist.gov/vuln/detail/CVE-2008-2383

Additional background and information is also available:

https://marc.info/?l=bugtraq&m=104612710031920&w=2 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510030

References

Affected packages

SwiftURL / github.com/migueldeicaza/SwiftTerm

Package

Name
github.com/migueldeicaza/SwiftTerm
Purl
pkg:swift/github.com/migueldeicaza/SwiftTerm

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.0