Bug 1829407 (CVE-2020-12279) - CVE-2020-12279 libgit2: NTFS protections inactive when running Git in the Windows Subsystem for Linux
Summary: CVE-2020-12279 libgit2: NTFS protections inactive when running Git in the Win...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2020-12279
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1829423 1829425 1829427 1829429 1829432 1829436 1829437
Blocks: 1829386
TreeView+ depends on / blocked
 
Reported: 2020-04-29 14:06 UTC by Riccardo Schirone
Modified: 2021-10-28 09:48 UTC (History)
5 users (show)

Fixed In Version: libgit2 0.28.4, libgit2 0.99.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-28 09:48:36 UTC
Embargoed:


Attachments (Terms of Use)

Description Riccardo Schirone 2020-04-29 14:06:17 UTC
An issue was discovered in libgit2 where 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 the libgit2 variant of CVE-2019-1353.

https://github.com/git/git/security/advisories/GHSA-589j-mmg9-733v
https://github.com/libgit2/libgit2/commit/64c612cc3e25eff5fb02c59ef5a66ba7a14751e4
https://github.com/libgit2/libgit2/releases/tag/v0.28.4
https://github.com/libgit2/libgit2/releases/tag/v0.99.0

Comment 1 Riccardo Schirone 2020-04-29 14:24:35 UTC
Created libgit2 tracking bugs for this issue:

Affects: epel-all [bug 1829423]
Affects: fedora-all [bug 1829425]


Created libgit2:0.26/libgit2 tracking bugs for this issue:

Affects: fedora-all [bug 1829427]


Created libgit2:0.27/libgit2 tracking bugs for this issue:

Affects: fedora-all [bug 1829429]


Created libgit2:0.28/libgit2 tracking bugs for this issue:

Affects: fedora-all [bug 1829432]

Comment 5 Riccardo Schirone 2020-04-30 08:00:59 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.