Arbitrary Command Execution Affecting github.com/migueldeicaza/SwiftTerm package, versions <1.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SWIFT-MIGUELDEICAZASWIFTTERM-3153504
  • published4 Dec 2022
  • disclosed4 Dec 2022
  • creditDavid Leadbeater

Introduced: 4 Dec 2022

CVE-2022-23465  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade migueldeicaza/SwiftTerm to version 1.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Execution. 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.

References

CVSS Scores

version 3.1