<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/language/2.0" xmlns:cvrf="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf" xmlns:cvrf-common="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/common" xmlns:cvssv2="http://scap.nist.gov/schema/cvss-v2/1.0" xmlns:cvssv3="https://www.first.org/cvss/cvss-v3.0.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://purl.org/dc/elements/1.1/" xmlns:prod="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod" xmlns:scap-core="http://scap.nist.gov/schema/scap-core/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:vuln="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf">
  <DocumentTitle xml:lang="en">CVE-2024-24821</DocumentTitle>
  <DocumentType>SUSE CVE</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE CVE-2024-24821</ID>
    </Identification>
    <Status>Interim</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>14</Number>
        <Date>2026-03-05T02:50:02Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-02-11T00:09:23Z</InitialReleaseDate>
    <CurrentReleaseDate>2026-03-05T02:50:02Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf-cve.pl</Engine>
      <Date>2020-12-27T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="CVE" Type="Summary" Ordinal="1" xml:lang="en">CVE-2024-24821</Note>
    <Note Title="Mitre CVE Description" Type="Description" Ordinal="2" xml:lang="en">Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files. All Composer CLI commands are affected, including composer.phar's self-update. The following scenarios are of high risk: Composer being run with sudo, Pipelines which may execute Composer on untrusted projects, Shared environments with developers who run Composer individually on the same project. This vulnerability has been addressed in versions 2.7.0 and 2.2.23. It is advised that the patched versions are applied at the earliest convenience. Where not possible, the following should be addressed: Remove all sudo composer privileges for all users to mitigate root privilege escalation, and avoid running Composer within an untrusted directory, or if needed, verify that the contents of `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` do not include untrusted code.  A reset can also be done on these files by the following:```sh
rm vendor/composer/installed.php vendor/composer/InstalledVersions.php
composer install --no-scripts --no-plugins
```</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="4" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
  </DocumentNotes>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2024-February/017994.html</URL>
      <Description>E-Mail link for SUSE-SU-2024:0592-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod">
    <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 High Performance Computing 15 SP4-ESPOS">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS">
        <FullProductName ProductID="SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS" CPE="cpe:/o:suse:sle_hpc-espos:15:sp4">SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS">
        <FullProductName ProductID="SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS" CPE="cpe:/o:suse:sle_hpc-ltss:15:sp4">SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise High Performance Computing 15 SP5">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Web and Scripting 15 SP5">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP5" CPE="cpe:/o:suse:sle-module-web-scripting:15:sp5">SUSE Linux Enterprise Module for Web and Scripting 15 SP5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server 15 SP4-LTSS">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server 15 SP4-LTSS">
        <FullProductName ProductID="SUSE Linux Enterprise Server 15 SP4-LTSS" CPE="cpe:/o:suse:sles-ltss:15:sp4">SUSE Linux Enterprise Server 15 SP4-LTSS</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server 15 SP4-TERADATA">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server 15 SP4-TERADATA">
        <FullProductName ProductID="SUSE Linux Enterprise Server 15 SP4-TERADATA" CPE="cpe:/o:suse:sles_teradata:15:sp4">SUSE Linux Enterprise Server 15 SP4-TERADATA</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server 15 SP5">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Web and Scripting 15 SP5">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP5" CPE="cpe:/o:suse:sle-module-web-scripting:15:sp5">SUSE Linux Enterprise Module for Web and Scripting 15 SP5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server 16.0">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server 16.0">
        <FullProductName ProductID="SUSE Linux Enterprise Server 16.0" CPE="cpe:/o:suse:sles:16:16.0:server">SUSE Linux Enterprise Server 16.0</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server for SAP Applications 15 SP4">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Server for SAP Applications 15 SP4">
        <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 15 SP4" CPE="cpe:/o:suse:sles_sap:15:sp4">SUSE Linux Enterprise Server for SAP Applications 15 SP4</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Server for SAP Applications 15 SP5">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Web and Scripting 15 SP5">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP5" CPE="cpe:/o:suse:sle-module-web-scripting:15:sp5">SUSE Linux Enterprise Module for Web and Scripting 15 SP5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Manager Server 4.3">
      <Branch Type="Product Name" Name="SUSE Manager Server 4.3">
        <FullProductName ProductID="SUSE Manager Server 4.3" CPE="cpe:/o:suse:suse-manager-server:4.3">SUSE Manager Server 4.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.5">
      <Branch Type="Product Name" Name="openSUSE Leap 15.5">
        <FullProductName ProductID="openSUSE Leap 15.5" CPE="cpe:/o:opensuse:leap:15.5">openSUSE Leap 15.5</FullProductName>
      </Branch>
    </Branch>
    <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="php-composer2-2.2.3-150400.3.9.1">
      <FullProductName ProductID="php-composer2-2.2.3-150400.3.9.1" CPE="cpe:2.3:a:getcomposer:composer:2.2.3:*:*:*:*:*:*:*">php-composer2-2.2.3-150400.3.9.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="php-composer2-2.7.1-1.1">
      <FullProductName ProductID="php-composer2-2.7.1-1.1" CPE="cpe:2.3:a:getcomposer:composer:2.7.1:*:*:*:*:*:*:*">php-composer2-2.7.1-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="php-composer2-2.8.9-160000.2.2">
      <FullProductName ProductID="php-composer2-2.8.9-160000.2.2" CPE="cpe:2.3:a:getcomposer:composer:2.8.9:*:*:*:*:*:*:*">php-composer2-2.8.9-160000.2.2</FullProductName>
    </Branch>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php-apache:latest">
      <FullProductName ProductID="Container bci/php-apache:latest:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of Container bci/php-apache:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php-fpm:latest">
      <FullProductName ProductID="Container bci/php-fpm:latest:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of Container bci/php-fpm:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="Container bci/php:latest">
      <FullProductName ProductID="Container bci/php:latest:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of Container bci/php:latest</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS">
      <FullProductName ProductID="SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS">
      <FullProductName ProductID="SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Web and Scripting 15 SP5">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Web and Scripting 15 SP5:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise Module for Web and Scripting 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 15 SP4-LTSS">
      <FullProductName ProductID="SUSE Linux Enterprise Server 15 SP4-LTSS:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise Server 15 SP4-LTSS</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 15 SP4-TERADATA">
      <FullProductName ProductID="SUSE Linux Enterprise Server 15 SP4-TERADATA:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise Server 15 SP4-TERADATA</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.8.9-160000.2.2" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server 16.0">
      <FullProductName ProductID="SUSE Linux Enterprise Server 16.0:php-composer2-2.8.9-160000.2.2">php-composer2-2.8.9-160000.2.2 as a component of SUSE Linux Enterprise Server 16.0</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Server for SAP Applications 15 SP4">
      <FullProductName ProductID="SUSE Linux Enterprise Server for SAP Applications 15 SP4:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Linux Enterprise Server for SAP Applications 15 SP4</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Manager Server 4.3">
      <FullProductName ProductID="SUSE Manager Server 4.3:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of SUSE Manager Server 4.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.2.3-150400.3.9.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:php-composer2-2.2.3-150400.3.9.1">php-composer2-2.2.3-150400.3.9.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="php-composer2-2.7.1-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:php-composer2-2.7.1-1.1">php-composer2-2.7.1-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files. All Composer CLI commands are affected, including composer.phar's self-update. The following scenarios are of high risk: Composer being run with sudo, Pipelines which may execute Composer on untrusted projects, Shared environments with developers who run Composer individually on the same project. This vulnerability has been addressed in versions 2.7.0 and 2.2.23. It is advised that the patched versions are applied at the earliest convenience. Where not possible, the following should be addressed: Remove all sudo composer privileges for all users to mitigate root privilege escalation, and avoid running Composer within an untrusted directory, or if needed, verify that the contents of `vendor/composer/InstalledVersions.php` and `vendor/composer/installed.php` do not include untrusted code.  A reset can also be done on these files by the following:```sh
rm vendor/composer/installed.php vendor/composer/InstalledVersions.php
composer install --no-scripts --no-plugins
```</Note>
    </Notes>
    <CVE>CVE-2024-24821</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Container bci/php-apache:latest:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>Container bci/php-fpm:latest:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>Container bci/php:latest:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Web and Scripting 15 SP5:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 15 SP4-LTSS:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 15 SP4-TERADATA:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Linux Enterprise Server 16.0:php-composer2-2.8.9-160000.2.2</ProductID>
        <ProductID>SUSE Linux Enterprise Server for SAP Applications 15 SP4:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>SUSE Manager Server 4.3:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>openSUSE Leap 15.5:php-composer2-2.2.3-150400.3.9.1</ProductID>
        <ProductID>openSUSE Tumbleweed:php-composer2-2.7.1-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV3>
        <BaseScoreV3>7.8</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H</VectorV3>
      </ScoreSetV3>
    </CVSSScoreSets>
  </Vulnerability>
</cvrfdoc>
