CVE-2021-36376 Relative Path Traversal in git-delta
Delta on Windows resolves executable paths relative to the current directory, allowing attackers to execute arbitrary code via path hijacking.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-36376?
CVE-2021-36376 is a high-severity path traversal vulnerability in n/a, published on 13 Jul 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
dandavison delta before 0.8.3 on Windows resolves an executable's pathname as a relative path from the current directory.
Weakness: CWE-427
Which versions are affected by CVE-2021-36376?
3 open source packages ship an affected version, including git-delta. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
git-delta crates.io | All versions | 0.8.3 |
git-delta crates.io | All versions | 0.8.3 |
git-delta crates.io | From 0.0.0-0 | 0.8.3 |
Linux distribution packages (1)
git-delta openSUSE:Tumbleweed | All versions | 0.8.3-1.2 |
Products include Delta Project Delta.
How do I fix CVE-2021-36376?
Upgrade git-delta to 0.8.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-36376 being exploited?
There is no known exploitation of CVE-2021-36376 in the wild and no public exploit code.
Sources
Also known as GHSA-5xg3-j2j6-rcx4, RUSTSEC-2021-0105, openSUSE-SU-2024:10788-1.