<?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">stgit-2.4.12-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:14355-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-09-20T00:00:00Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-09-20T00:00:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-09-20T00: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">stgit-2.4.12-1.1 on GA media</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">These are all security issues fixed in the stgit-2.4.12-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-14355</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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/BSEETUGLLWE2LBDZK4YETKJXSIBBHJ5L/</URL>
      <Description>E-Mail link for openSUSE-SU-2024:14355-1</Description>
    </Reference>
    <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-2024-45405/</URL>
      <Description>SUSE CVE CVE-2024-45405 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="stgit-2.4.12-1.1">
      <FullProductName ProductID="stgit-2.4.12-1.1">stgit-2.4.12-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="stgit-bash-completion-2.4.12-1.1">
      <FullProductName ProductID="stgit-bash-completion-2.4.12-1.1">stgit-bash-completion-2.4.12-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="stgit-emacs-2.4.12-1.1">
      <FullProductName ProductID="stgit-emacs-2.4.12-1.1">stgit-emacs-2.4.12-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="stgit-fish-completion-2.4.12-1.1">
      <FullProductName ProductID="stgit-fish-completion-2.4.12-1.1">stgit-fish-completion-2.4.12-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="stgit-vim-plugin-2.4.12-1.1">
      <FullProductName ProductID="stgit-vim-plugin-2.4.12-1.1">stgit-vim-plugin-2.4.12-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="stgit-zsh-completion-2.4.12-1.1">
      <FullProductName ProductID="stgit-zsh-completion-2.4.12-1.1">stgit-zsh-completion-2.4.12-1.1</FullProductName>
    </Branch>
    <Relationship ProductReference="stgit-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-2.4.12-1.1">stgit-2.4.12-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="stgit-bash-completion-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-bash-completion-2.4.12-1.1">stgit-bash-completion-2.4.12-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="stgit-emacs-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-emacs-2.4.12-1.1">stgit-emacs-2.4.12-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="stgit-fish-completion-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-fish-completion-2.4.12-1.1">stgit-fish-completion-2.4.12-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="stgit-vim-plugin-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-vim-plugin-2.4.12-1.1">stgit-vim-plugin-2.4.12-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="stgit-zsh-completion-2.4.12-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:stgit-zsh-completion-2.4.12-1.1">stgit-zsh-completion-2.4.12-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">`gix-path` is a crate of the `gitoxide` project (an implementation of `git` written in Rust) dealing paths and their conversions. Prior to version 0.10.11, `gix-path` runs `git` to find the path of a configuration file associated with the `git` installation, but improperly resolves paths containing unusual or non-ASCII characters, in rare cases enabling a local attacker to inject configuration leading to code execution. Version 0.10.11 contains a patch for the issue.

In `gix_path::env`, the underlying implementation of the `installation_config` and `installation_config_prefix` functions calls `git config -l --show-origin` to find the path of a file to treat as belonging to the `git` installation. Affected versions of `gix-path` do not pass `-z`/`--null` to cause `git` to report literal paths. Instead, to cover the occasional case that `git` outputs a quoted path, they attempt to parse the path by stripping the quotation marks. The problem is that, when a path is quoted, it may change in substantial ways beyond the concatenation of quotation marks. If not reversed, these changes can result in another valid path that is not equivalent to the original.

On a single-user system, it is not possible to exploit this, unless `GIT_CONFIG_SYSTEM` and `GIT_CONFIG_GLOBAL` have been set to unusual values or Git has been installed in an unusual way. Such a scenario is not expected. Exploitation is unlikely even on a multi-user system, though it is plausible in some uncommon configurations or use cases. In general, exploitation is more likely to succeed if users are expected to install `git` themselves, and are likely to do so in predictable locations; locations where `git` is installed, whether due to usernames in their paths or otherwise, contain characters that `git` quotes by default in paths, such as non-English letters and accented letters; a custom `system`-scope configuration file is specified with the `GIT_CONFIG_SYSTEM` environment variable, and its path is in an unusual location or has strangely named components; or a `system`-scope configuration file is absent, empty, or suppressed by means other than `GIT_CONFIG_NOSYSTEM`. Currently, `gix-path` can treat a `global`-scope configuration file as belonging to the installation if no higher scope configuration file is available. This increases the likelihood of exploitation even on a system where `git` is installed system-wide in an ordinary way. However, exploitation is expected to be very difficult even under any combination of those factors.</Note>
    </Notes>
    <CVE>CVE-2024-45405</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:stgit-2.4.12-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:stgit-bash-completion-2.4.12-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:stgit-emacs-2.4.12-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:stgit-fish-completion-2.4.12-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:stgit-vim-plugin-2.4.12-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:stgit-zsh-completion-2.4.12-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</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>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/BSEETUGLLWE2LBDZK4YETKJXSIBBHJ5L/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2024-45405.html</URL>
        <Description>CVE-2024-45405</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1230682</URL>
        <Description>SUSE Bug 1230682</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
