Improper Handling of Windows Device Names Affecting gix-worktree-state package, versions <0.11.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th 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 IDSNYK-RUST-GIXWORKTREESTATE-7064573
  • published23 May 2024
  • disclosed22 May 2024
  • creditEliahKagan

Introduced: 22 May 2024

CVE-2024-35197  (opens in a new tab)
CWE-67  (opens in a new tab)

How to fix?

Upgrade gix-worktree-state to version 0.11.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Handling of Windows Device Names through the manipulation of reserved Windows device names such as CON, CONIN$, and COM1 in Git repository references and file paths. An attacker can disrupt operations or mislead users by displaying deceptive messages that appear to originate from a trusted application, by creating or cloning repositories with specially crafted names that interact with system devices.

Note

This is only exploitable if the Git client does not sanitize input names to prevent interaction with device names.

References

CVSS Scores

version 3.1