CVE-2021-36376 Relative Path Traversal in git-delta

High 7.8 Published Updated

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.

PackageAffectedFixed in
git-delta crates.ioAll versions0.8.3
git-delta crates.ioAll versions0.8.3
git-delta crates.ioFrom 0.0.0-00.8.3
Linux distribution packages (1)
git-delta openSUSE:TumbleweedAll versions0.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.

Is CVE-2021-36376 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free