cve.bz

CVE-2020-12279

9.8 criticalEPSS 5.1%Fix available

Critical (9.8). EPSS 5.1% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. checkout.c mishandles equivalent filenames that exist because of NTFS short names. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1353.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
5.1% (unchanged from 5.1% a week ago; 5.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-706 Use of Incorrectly-Resolved Name or Reference
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-12279 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-12279?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-12279?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-12279 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libgit2:libgit2before 0.28.4
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libgit20.25.1+really0.24.6-1+deb9u1DLA-2936-1
Debian10libgit20.27.7+dfsg.1-0.2+deb10u1DLA-3340-1
Debian12, 13, 14libgit20.28.4+dfsg.1-2DEBIAN-CVE-2020-12279
Ubuntu20.04:LTSlibgit20.28.4+dfsg.1-2ubuntu0.1USN-6678-1
Ubuntu22.04:LTSlibgit21.1.0+dfsg.1-4.1ubuntu0.1USN-6678-1
UbuntuPro:14.04:LTSlibgit2no fix listedUBUNTU-CVE-2020-12279
UbuntuPro:16.04:LTSlibgit20.24.1-2ubuntu0.2+esm2UBUNTU-CVE-2020-12279 USN-6678-1
UbuntuPro:18.04:LTSlibgit20.26.0+dfsg.1-1.1ubuntu0.2+esm1UBUNTU-CVE-2020-12279 USN-6678-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Even if the code in the versions of libgit2 as shipped with Red Hat Enterprise Linux 7, and 8 are affected by this flaw, Red Hat does not support the NTFS filesystem nor Windows Subsystem for Linux (WSL). For this reason, the flaw has a Low Impact.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7libgit2Fix deferred
Red Hat Enterprise Linux 8libgit2Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-12279.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
  • CAPEC-159 Redirect Access to Libraries Likelihood: High · Severity: Very High
  • CAPEC-177 Create files with the same name as files protected with a higher classification Severity: Very High
  • CAPEC-641 DLL Side-Loading Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON