ArchLinux: 201912-6: git: arbitrary code execution
Summary
- CVE-2019-1348 (arbitrary code execution)
A security issue has been found in git before 2.24.1 where 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 (arbitrary code execution)
A security issue has been found in git before 2.24.1 when using
submodule paths that refer to the same file system entity (e.g. using
the NTFS Alternate Data Streams attack mentioned in CVE-2019-1352 where
files would be written to the `.git/` directory using a synonymous
directory name), it was possible to "squat" on the `git~1` shortname on
NTFS drives, opening attacks via `git~2`. This also affects Git when
run as a Linux application inside the Windows Subsystem for Linux.
- CVE-2019-1352 (arbitrary code execution)
A security issue has been found in git before 2.24.1 where it was
unaware of NTFS Alternate Data Streams, allowing files inside the .git/
directory to be overwritten during a clone.
- CVE-2019-1387 (arbitrary code execution)
A security issue has been found in git before 2.24.1 where 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.
- CVE-2019-19604 (arbitrary code execution)
A security issue has been found in git before 2.24.1, and it is now
disallowed for `.gitmodules` to have entries that set
`submodule.
Resolution
Upgrade to 2.24.1-1.
# pacman -Syu "git>=2.24.1-1"
The problems have been fixed upstream in version 2.24.1.
References
https://github.com/git/git/commit/68061e3470210703cb15594194718d35094afdc0 https://lkml.org/lkml/2019/12/10/905 https://github.com/git/git/commit/0060fd1511b94c918928fa3708f69a3f33895a4a https://github.com/git/git/commit/7c3745fc6185495d5765628b4dfe1bd2c25a2981 https://github.com/git/git/commit/a8dee3ca610f5a1d403634492136c887f83b59d2 https://github.com/git/git/commit/c1547450748fcbac21675f2681506d2d80351a19 https://security.archlinux.org/CVE-2019-1348 https://security.archlinux.org/CVE-2019-1349 https://security.archlinux.org/CVE-2019-1352 https://security.archlinux.org/CVE-2019-1387 https://security.archlinux.org/CVE-2019-19604
Workaround
None.