<?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">Security update for php-composer2</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE-SU-2024:2107-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-06-20T15:33:36Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-06-20T15:33:36Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-06-20T15:33:36Z</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">Security update for php-composer2</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for php-composer2 fixes the following issues:

- CVE-2024-35241: Fixed code execution when installing packages in repository with specially crafted branch names (bsc#1226181).
- CVE-2024-35242: Fixed command injection via specially crafted branch names during repository cloning (bsc#1226182).
</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">Container bci/php-apache:latest-2024-2107,Container bci/php-fpm:latest-2024-2107,Container bci/php:latest-2024-2107,SUSE-2024-2107,SUSE-SLE-Module-Web-Scripting-15-SP6-2024-2107,openSUSE-SLE-15.6-2024-2107</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/update/announcement/2024/suse-su-20242107-1/</URL>
      <Description>Link for SUSE-SU-2024:2107-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2024-June/018769.html</URL>
      <Description>E-Mail link for SUSE-SU-2024:2107-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://bugzilla.suse.com/1226181</URL>
      <Description>SUSE Bug 1226181</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1226182</URL>
      <Description>SUSE Bug 1226182</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2024-35241/</URL>
      <Description>SUSE CVE CVE-2024-35241 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2024-35242/</URL>
      <Description>SUSE CVE CVE-2024-35242 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Container bci/php-apache:latest">
      <Branch Type="Product Name" Name="Container bci/php-apache:latest">
        <FullProductName ProductID="Container bci/php-apache:latest">Container bci/php-apache:latest</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="Container bci/php-fpm:latest">
      <Branch Type="Product Name" Name="Container bci/php-fpm:latest">
        <FullProductName ProductID="Container bci/php-fpm:latest">Container bci/php-fpm:latest</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="Container bci/php:latest">
      <Branch Type="Product Name" Name="Container bci/php:latest">
        <FullProductName ProductID="Container bci/php:latest">Container bci/php:latest</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Module for Web and Scripting 15 SP6">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Web and Scripting 15 SP6">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP6" CPE="cpe:/o:suse:sle-module-web-scripting:15:sp6">SUSE Linux Enterprise Module for Web and Scripting 15 SP6</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.6">
      <Branch Type="Product Name" Name="openSUSE Leap 15.6">
        <FullProductName ProductID="openSUSE Leap 15.6" CPE="cpe:/o:opensuse:leap:15.6">openSUSE Leap 15.6</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="php-composer2-2.6.4-150600.3.3.1">
      <FullProductName ProductID="php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="php-composer2-2.6.4-150600.3.3.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php-apache:latest">
      <FullProductName ProductID="Container bci/php-apache:latest:php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1 as a component of Container bci/php-apache:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.6.4-150600.3.3.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php-fpm:latest">
      <FullProductName ProductID="Container bci/php-fpm:latest:php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1 as a component of Container bci/php-fpm:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.6.4-150600.3.3.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php:latest">
      <FullProductName ProductID="Container bci/php:latest:php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1 as a component of Container bci/php:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.6.4-150600.3.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 15 SP6">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP6:php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 15 SP6</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.6.4-150600.3.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.6">
      <FullProductName ProductID="openSUSE Leap 15.6:php-composer2-2.6.4-150600.3.3.1">php-composer2-2.6.4-150600.3.3.1 as a component of openSUSE Leap 15.6</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">Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `status`, `reinstall` and `remove` commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code. Patches for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using `--prefer-dist` or the `preferred-install: dist` config setting.
</Note>
    </Notes>
    <CVE>CVE-2024-35241</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container bci/php-apache:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>Container bci/php-fpm:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>Container bci/php:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 15 SP6:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:php-composer2-2.6.4-150600.3.3.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>https://www.suse.com/support/update/announcement/2024/suse-su-20242107-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2024-35241.html</URL>
        <Description>CVE-2024-35241</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1226181</URL>
        <Description>SUSE Bug 1226181</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">Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.
</Note>
    </Notes>
    <CVE>CVE-2024-35242</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container bci/php-apache:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>Container bci/php-fpm:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>Container bci/php:latest:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 15 SP6:php-composer2-2.6.4-150600.3.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:php-composer2-2.6.4-150600.3.3.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>https://www.suse.com/support/update/announcement/2024/suse-su-20242107-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2024-35242.html</URL>
        <Description>CVE-2024-35242</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1226182</URL>
        <Description>SUSE Bug 1226182</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
