CVE-2020-12278 Path traversal in n/a

Critical 9.8 Published Updated

Attackers can achieve remote code execution by exploiting NTFS Alternate Data Streams to bypass filename checks during repository cloning.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-12278?

CVE-2020-12278 is a critical path traversal vulnerability in Debian Debian Linux, published on 27 Apr 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. path.c mishandles equivalent filenames that exist because of NTFS Alternate Data Streams. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1352.

Weakness: CWE-706

Which versions are affected by CVE-2020-12278?

It affects 2 products.

Products include Debian Debian Linux, Libgit2 Libgit2.

How do I fix CVE-2020-12278?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-12278 being exploited?

There is no known exploitation of CVE-2020-12278 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-12278, GHSA-5wph-8frv-58vj, GHSA-w32v-c4gg-xc8p, JLSEC-2025-182, UBUNTU-CVE-2020-12278.

Is CVE-2020-12278 in your software?

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

Check your SBOMs for free