VYPR
Unrated severityNVD Advisory· Published Jan 24, 2020· Updated Aug 4, 2024

CVE-2019-1348

CVE-2019-1348

Description

An issue was found in Git before v2.24.1, v2.23.1, v2.22.2, v2.21.1, v2.20.2, v2.19.3, v2.18.2, v2.17.3, v2.16.6, v2.15.4, and v2.14.6. The --export-marks option of git fast-import is exposed also via the in-stream command feature export-marks=... and it allows overwriting arbitrary paths.

Affected products

31

Patches

11
53a06cf39b75

Git 2.24.1

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.24.1.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.24.1 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4,
    +v2.17.3, v2.20.2 and in v2.21.1, addressing the security issues
    +CVE-2019-1348, CVE-2019-1349, CVE-2019-1350, CVE-2019-1351,
    +CVE-2019-1352, CVE-2019-1353, CVE-2019-1354, CVE-2019-1387, and
    +CVE-2019-19604; see the release notes for those versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.24.0
    +DEF_VER=v2.24.1
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.24.0.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.24.1.txt
    \ No newline at end of file
    
a7312d1a28ff

Git 2.23.1

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.23.1.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.23.1 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4,
    +v2.17.3, v2.20.2 and in v2.21.1, addressing the security issues
    +CVE-2019-1348, CVE-2019-1349, CVE-2019-1350, CVE-2019-1351,
    +CVE-2019-1352, CVE-2019-1353, CVE-2019-1354, CVE-2019-1387, and
    +CVE-2019-19604; see the release notes for those versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.23.0
    +DEF_VER=v2.23.1
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.23.0.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.23.1.txt
    \ No newline at end of file
    
d9589d405153

Git 2.22.2

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.22.2.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.22.2 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4,
    +v2.17.3, v2.20.2 and in v2.21.1, addressing the security issues
    +CVE-2019-1348, CVE-2019-1349, CVE-2019-1350, CVE-2019-1351,
    +CVE-2019-1352, CVE-2019-1353, CVE-2019-1354, CVE-2019-1387, and
    +CVE-2019-19604; see the release notes for those versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.22.1
    +DEF_VER=v2.22.2
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.22.1.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.22.2.txt
    \ No newline at end of file
    
367f12b7e92a

Git 2.21.1

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +14 2
  • Documentation/RelNotes/2.21.1.txt+12 0 added
    @@ -0,0 +1,12 @@
    +Git v2.21.1 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4,
    +v2.17.3 and in v2.20.2, addressing the security issues CVE-2019-1348,
    +CVE-2019-1349, CVE-2019-1350, CVE-2019-1351, CVE-2019-1352,
    +CVE-2019-1353, CVE-2019-1354, CVE-2019-1387, and CVE-2019-19604;
    +see the release notes for those versions for details.
    +
    +Additionally, this version also includes a couple of fixes for the
    +Windows-specific quoting of command-line arguments when Git executes
    +a Unix shell on Windows.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.21.0
    +DEF_VER=v2.21.1
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.21.0.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.21.1.txt
    \ No newline at end of file
    
4cd1cf31efed

Git 2.20.2

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +20 2
  • Documentation/RelNotes/2.20.2.txt+18 0 added
    @@ -0,0 +1,18 @@
    +Git v2.20.2 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4
    +and in v2.17.3, addressing the security issues CVE-2019-1348,
    +CVE-2019-1349, CVE-2019-1350, CVE-2019-1351, CVE-2019-1352,
    +CVE-2019-1353, CVE-2019-1354, and CVE-2019-1387; see the release notes
    +for those versions for details.
    +
    +The change to disallow `submodule.<name>.update=!command` entries in
    +`.gitmodules` which was introduced v2.15.4 (and for which v2.17.3
    +added explicit fsck checks) fixes the vulnerability in v2.20.x where a
    +recursive clone followed by a submodule update could execute code
    +contained within the repository without the user explicitly having
    +asked for that (CVE-2019-19604).
    +
    +Credit for finding this vulnerability goes to Joern Schneeweisz,
    +credit for the fixes goes to Jonathan Nieder.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.20.1
    +DEF_VER=v2.20.2
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.20.1.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.20.2.txt
    \ No newline at end of file
    
caccc527ca7f

Git 2.19.3

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.19.3.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.19.3 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4
    +and in v2.17.3, addressing the security issues CVE-2019-1348,
    +CVE-2019-1349, CVE-2019-1350, CVE-2019-1351, CVE-2019-1352,
    +CVE-2019-1353, CVE-2019-1354, and CVE-2019-1387; see the release notes
    +for those versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.19.2
    +DEF_VER=v2.19.3
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.19.2.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.19.3.txt
    \ No newline at end of file
    
9877106b01cb

Git 2.18.2

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.18.2.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.18.2 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6, v2.15.4
    +and in v2.17.3, addressing the security issues CVE-2019-1348,
    +CVE-2019-1349, CVE-2019-1350, CVE-2019-1351, CVE-2019-1352,
    +CVE-2019-1353, CVE-2019-1354, and CVE-2019-1387; see the release notes
    +for those versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.18.1
    +DEF_VER=v2.18.2
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.18.1.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.18.2.txt
    \ No newline at end of file
    
a5ab8d031734

Git 2.17.3

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +14 2
  • Documentation/RelNotes/2.17.3.txt+12 0 added
    @@ -0,0 +1,12 @@
    +Git v2.17.3 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6 and in
    +v2.15.4 addressing the security issues CVE-2019-1348, CVE-2019-1349,
    +CVE-2019-1350, CVE-2019-1351, CVE-2019-1352, CVE-2019-1353,
    +CVE-2019-1354, and CVE-2019-1387; see the release notes for those
    +versions for details.
    +
    +In addition, `git fsck` was taught to identify `.gitmodules` entries
    +of the form `submodule.<name>.update=!command`, which have been
    +disallowed in v2.15.4.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.17.2
    +DEF_VER=v2.17.3
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.17.2.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.17.3.txt
    \ No newline at end of file
    
eb288bc455ac

Git 2.16.6

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +10 2
  • Documentation/RelNotes/2.16.6.txt+8 0 added
    @@ -0,0 +1,8 @@
    +Git v2.16.6 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6 and in
    +v2.15.4 addressing the security issues CVE-2019-1348, CVE-2019-1349,
    +CVE-2019-1350, CVE-2019-1351, CVE-2019-1352, CVE-2019-1353,
    +CVE-2019-1354, and CVE-2019-1387; see the release notes for those
    +versions for details.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.16.5
    +DEF_VER=v2.16.6
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.16.5.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.16.6.txt
    \ No newline at end of file
    
7cdafcaacf67

Git 2.15.4

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +13 2
  • Documentation/RelNotes/2.15.4.txt+11 0 added
    @@ -0,0 +1,11 @@
    +Git v2.15.4 Release Notes
    +=========================
    +
    +This release merges up the fixes that appear in v2.14.6 to address
    +the security issues CVE-2019-1348, CVE-2019-1349, CVE-2019-1350,
    +CVE-2019-1351, CVE-2019-1352, CVE-2019-1353, CVE-2019-1354, and
    +CVE-2019-1387; see the release notes for that version for details.
    +
    +In conjunction with a vulnerability that was fixed in v2.20.2,
    +`.gitmodules` is no longer allowed to contain entries of the form
    +`submodule.<name>.update=!command`.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.15.3
    +DEF_VER=v2.15.4
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.15.3.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.15.4.txt
    \ No newline at end of file
    
66d2a6159f51

Git 2.14.6

https://github.com/git/gitJohannes SchindelinDec 4, 2019via osv
3 files changed · +56 2
  • Documentation/RelNotes/2.14.6.txt+54 0 added
    @@ -0,0 +1,54 @@
    +Git v2.14.6 Release Notes
    +=========================
    +
    +This release addresses the security issues CVE-2019-1348,
    +CVE-2019-1349, CVE-2019-1350, CVE-2019-1351, CVE-2019-1352,
    +CVE-2019-1353, CVE-2019-1354, and CVE-2019-1387.
    +
    +Fixes since v2.14.5
    +-------------------
    +
    + * CVE-2019-1348:
    +   The --export-marks option of git fast-import is exposed also via
    +   the in-stream command feature export-marks=... and it allows
    +   overwriting arbitrary paths.
    +
    + * CVE-2019-1349:
    +   When submodules are cloned recursively, under certain circumstances
    +   Git could be fooled into using the same Git directory twice. We now
    +   require the directory to be empty.
    +
    + * CVE-2019-1350:
    +   Incorrect quoting of command-line arguments allowed remote code
    +   execution during a recursive clone in conjunction with SSH URLs.
    +
    + * CVE-2019-1351:
    +   While the only permitted drive letters for physical drives on
    +   Windows are letters of the US-English alphabet, this restriction
    +   does not apply to virtual drives assigned via subst <letter>:
    +   <path>. Git mistook such paths for relative paths, allowing writing
    +   outside of the worktree while cloning.
    +
    + * CVE-2019-1352:
    +   Git was unaware of NTFS Alternate Data Streams, allowing files
    +   inside the .git/ directory to be overwritten during a clone.
    +
    + * CVE-2019-1353:
    +   When running Git in the Windows Subsystem for Linux (also known as
    +   "WSL") while accessing a working directory on a regular Windows
    +   drive, none of the NTFS protections were active.
    +
    + * CVE-2019-1354:
    +   Filenames on Linux/Unix can contain backslashes. On Windows,
    +   backslashes are directory separators. Git did not use to refuse to
    +   write out tracked files with such filenames.
    +
    + * CVE-2019-1387:
    +   Recursive clones are currently affected by a vulnerability that is
    +   caused by too-lax validation of submodule names, allowing very
    +   targeted attacks via remote code execution in recursive clones.
    +
    +Credit for finding these vulnerabilities goes to Microsoft Security
    +Response Center, in particular to Nicolas Joly. The `fast-import`
    +fixes were provided by Jeff King, the other fixes by Johannes
    +Schindelin with help from Garima Singh.
    
  • GIT-VERSION-GEN+1 1 modified
    @@ -1,7 +1,7 @@
     #!/bin/sh
     
     GVF=GIT-VERSION-FILE
    -DEF_VER=v2.14.5
    +DEF_VER=v2.14.6
     
     LF='
     '
    
  • RelNotes+1 1 modified
    @@ -1 +1 @@
    -Documentation/RelNotes/2.14.5.txt
    \ No newline at end of file
    +Documentation/RelNotes/2.14.6.txt
    \ No newline at end of file
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.