Red Hat Security Advisory: git security update
🔗 CVE IDs covered (5)
📋 Description
CVE-2023-22490 — git: data exfiltration with maliciously crafted repository
CVE-2023-23946 — git: git apply: a path outside the working tree can be overwritten with crafted input
CVE-2023-25652 — git: by feeding specially crafted input to git apply --reject, a path outside the working tree can be overwritten with partially controlled contents
CVE-2023-25815 — git: malicious placement of crafted messages when git was compiled with runtime prefix
CVE-2023-29007 — git: arbitrary configuration injection when renaming or deleting a section from a configuration file
🎯 Affected products52
- Red Hat Enterprise Linux AppStream (v. 8)
- git-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-0:2.39.3-1.el8_8.src as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-all-0:2.39.3-1.el8_8.noarch as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-debuginfo-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-debuginfo-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-debuginfo-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-debuginfo-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-core-doc-0:2.39.3-1.el8_8.noarch as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-debuginfo-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-debuginfo-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-debuginfo-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-credential-libsecret-debuginfo-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-0:2.39.3-1.el8_8.s390x as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-0:2.39.3-1.el8_8.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-debuginfo-0:2.39.3-1.el8_8.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 8)
- git-daemon-debuginfo-0:2.39.3-1.el8_8.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 8)
- +22 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: - Avoid cloning repositories from untrusted sources with --recurse-submodules. - Instead, consider cloning repositories without recursively cloning their submodules, and instead run git submodule update at each layer. Before doing so, inspect each new .gitmodules file to ensure that it does not contain suspicious module URLs. Workaround: Use git apply --stat to inspect a patch before applying; avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.
🔗 References (8)
- selfhttps://access.redhat.com/errata/RHSA-2023:3246
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2168160
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2168161
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2188333
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2188337
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2188338
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3246.json