<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">git-2.40.1-1.1 on GA media</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2024:12889-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-06-15T00:00:00Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-06-15T00:00:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-06-15T00:00:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">git-2.40.1-1.1 on GA media</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">These are all security issues fixed in the git-2.40.1-1.1 package on the GA media of openSUSE Tumbleweed.</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-Tumbleweed-2024-12889</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-25652/</URL>
      <Description>SUSE CVE CVE-2023-25652 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-25815/</URL>
      <Description>SUSE CVE CVE-2023-25815 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-29007/</URL>
      <Description>SUSE CVE CVE-2023-29007 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Tumbleweed">
      <Branch Type="Product Name" Name="openSUSE Tumbleweed">
        <FullProductName ProductID="openSUSE Tumbleweed" CPE="cpe:/o:opensuse:tumbleweed">openSUSE Tumbleweed</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="git-2.40.1-1.1">
      <FullProductName ProductID="git-2.40.1-1.1">git-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-arch-2.40.1-1.1">
      <FullProductName ProductID="git-arch-2.40.1-1.1">git-arch-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-core-2.40.1-1.1">
      <FullProductName ProductID="git-core-2.40.1-1.1">git-core-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-gnome-keyring-2.40.1-1.1">
      <FullProductName ProductID="git-credential-gnome-keyring-2.40.1-1.1">git-credential-gnome-keyring-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-credential-libsecret-2.40.1-1.1">
      <FullProductName ProductID="git-credential-libsecret-2.40.1-1.1">git-credential-libsecret-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-cvs-2.40.1-1.1">
      <FullProductName ProductID="git-cvs-2.40.1-1.1">git-cvs-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-daemon-2.40.1-1.1">
      <FullProductName ProductID="git-daemon-2.40.1-1.1">git-daemon-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-doc-2.40.1-1.1">
      <FullProductName ProductID="git-doc-2.40.1-1.1">git-doc-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-email-2.40.1-1.1">
      <FullProductName ProductID="git-email-2.40.1-1.1">git-email-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-gui-2.40.1-1.1">
      <FullProductName ProductID="git-gui-2.40.1-1.1">git-gui-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-p4-2.40.1-1.1">
      <FullProductName ProductID="git-p4-2.40.1-1.1">git-p4-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-svn-2.40.1-1.1">
      <FullProductName ProductID="git-svn-2.40.1-1.1">git-svn-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="git-web-2.40.1-1.1">
      <FullProductName ProductID="git-web-2.40.1-1.1">git-web-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="gitk-2.40.1-1.1">
      <FullProductName ProductID="gitk-2.40.1-1.1">gitk-2.40.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="perl-Git-2.40.1-1.1">
      <FullProductName ProductID="perl-Git-2.40.1-1.1">perl-Git-2.40.1-1.1</FullProductName>
    </Branch>
    <Relationship ProductReference="git-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-2.40.1-1.1">git-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-arch-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-arch-2.40.1-1.1">git-arch-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-core-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-core-2.40.1-1.1">git-core-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-gnome-keyring-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-credential-gnome-keyring-2.40.1-1.1">git-credential-gnome-keyring-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-credential-libsecret-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-credential-libsecret-2.40.1-1.1">git-credential-libsecret-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-cvs-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-cvs-2.40.1-1.1">git-cvs-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-daemon-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-daemon-2.40.1-1.1">git-daemon-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-doc-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-doc-2.40.1-1.1">git-doc-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-email-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-email-2.40.1-1.1">git-email-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-gui-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-gui-2.40.1-1.1">git-gui-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-p4-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-p4-2.40.1-1.1">git-p4-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-svn-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-svn-2.40.1-1.1">git-svn-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="git-web-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:git-web-2.40.1-1.1">git-web-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="gitk-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:gitk-2.40.1-1.1">gitk-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="perl-Git-2.40.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:perl-Git-2.40.1-1.1">perl-Git-2.40.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents (corresponding to the rejected hunk(s) from the given patch). A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. As a workaround, avoid using `git apply` with `--reject` when applying patches from an untrusted source. Use `git apply --stat` to inspect a patch before applying; avoid applying one that create a conflict where a link corresponding to the `*.rej` file exists.</Note>
    </Notes>
    <CVE>CVE-2023-25652</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:git-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-arch-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-core-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-gnome-keyring-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-libsecret-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-cvs-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-daemon-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-doc-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-email-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-gui-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-p4-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-svn-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-web-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:gitk-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:perl-Git-2.40.1-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-25652.html</URL>
        <Description>CVE-2023-25652</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1210686</URL>
        <Description>SUSE Bug 1210686</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer. As a consequence, Git is expected not to localize messages at all, and skips the gettext initialization. However, due to a change in MINGW-packages, the `gettext()` function's implicit initialization no longer uses the runtime prefix but uses the hard-coded path `C:\mingw64\share\locale` to look for localized messages. And since any authenticated user has the permission to create folders in `C:\` (and since `C:\mingw64` does not typically exist), it is possible for low-privilege users to place fake messages in that location where `git.exe` will pick them up in version 2.40.1.

This vulnerability is relatively hard to exploit and requires social engineering. For example, a legitimate message at the end of a clone could be maliciously modified to ask the user to direct their web browser to a malicious website, and the user might think that the message comes from Git and is legitimate. It does require local write access by the attacker, though, which makes this attack vector less likely. Version 2.40.1 contains a patch for this issue. Some workarounds are available. Do not work on a Windows machine with shared accounts, or alternatively create a `C:\mingw64` folder and leave it empty. Users who have administrative rights may remove the permission to create folders in `C:\`.</Note>
    </Notes>
    <CVE>CVE-2023-25815</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:git-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-arch-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-core-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-gnome-keyring-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-libsecret-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-cvs-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-daemon-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-doc-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-email-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-gui-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-p4-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-svn-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-web-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:gitk-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:perl-Git-2.40.1-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-25815.html</URL>
        <Description>CVE-2023-25815</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1210686</URL>
        <Description>SUSE Bug 1210686</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, a specially crafted `.gitmodules` file with submodule URLs that are longer than 1024 characters can used to exploit a bug in `config.c::git_config_copy_or_rename_section_in_file()`. This bug can be used to inject arbitrary configuration into a user's `$GIT_DIR/config` when attempting to remove the configuration section associated with that submodule. When the attacker injects configuration values which specify executables to run (such as `core.pager`, `core.editor`, `core.sshCommand`, etc.) this can lead to a remote code execution. A fix A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. As a workaround, avoid running `git submodule deinit` on untrusted repositories or without prior inspection of any submodule sections in `$GIT_DIR/config`.</Note>
    </Notes>
    <CVE>CVE-2023-29007</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:git-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-arch-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-core-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-gnome-keyring-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-credential-libsecret-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-cvs-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-daemon-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-doc-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-email-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-gui-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-p4-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-svn-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:git-web-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:gitk-2.40.1-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:perl-Git-2.40.1-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-29007.html</URL>
        <Description>CVE-2023-29007</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1210686</URL>
        <Description>SUSE Bug 1210686</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
