SUSE-SU-2026:1784-1

Vulnerability from csaf_suse - Published: 2026-05-08 17:05 - Updated: 2026-05-08 17:05
Summary
Security update for php-composer2
Severity
Important
Notes
Title of the patch: Security update for php-composer2
Description of the patch: This update for php-composer2 fixes the following issues: - CVE-2026-40176: arbitrary command injection via malicious Perforce repository definition (bsc#1262254). - CVE-2026-40261: arbitrary command injection via malicious Perforce source reference/url (bsc#1262255).
Patchnames: SUSE-2026-1784,SUSE-SLE-Module-Web-Scripting-15-SP7-2026-1784,SUSE-SLE-Product-SLES-15-SP6-LTSS-2026-1784,SUSE-SLE-Product-SLES_SAP-15-SP6-2026-1784
Terms of use: CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).
Affected products
Product Identifier Version Remediation
Unresolved product id: SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Unresolved product id: SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Unresolved product id: SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Threats
Impact important
Affected products
Product Identifier Version Remediation
Unresolved product id: SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Unresolved product id: SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Unresolved product id: SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch
Vendor Fix
Threats
Impact important

{
  "document": {
    "aggregate_severity": {
      "namespace": "https://www.suse.com/support/security/rating/",
      "text": "important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright 2024 SUSE LLC. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "Security update for php-composer2",
        "title": "Title of the patch"
      },
      {
        "category": "description",
        "text": "This update for php-composer2 fixes the following issues:\n\n- CVE-2026-40176: arbitrary command injection via malicious Perforce repository definition (bsc#1262254).\n- CVE-2026-40261: arbitrary command injection via malicious Perforce source reference/url (bsc#1262255).\n",
        "title": "Description of the patch"
      },
      {
        "category": "details",
        "text": "SUSE-2026-1784,SUSE-SLE-Module-Web-Scripting-15-SP7-2026-1784,SUSE-SLE-Product-SLES-15-SP6-LTSS-2026-1784,SUSE-SLE-Product-SLES_SAP-15-SP6-2026-1784",
        "title": "Patchnames"
      },
      {
        "category": "legal_disclaimer",
        "text": "CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).",
        "title": "Terms of use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://www.suse.com/support/security/contact/",
      "name": "SUSE Product Security Team",
      "namespace": "https://www.suse.com/"
    },
    "references": [
      {
        "category": "external",
        "summary": "SUSE ratings",
        "url": "https://www.suse.com/support/security/rating/"
      },
      {
        "category": "self",
        "summary": "URL of this CSAF notice",
        "url": "https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_1784-1.json"
      },
      {
        "category": "self",
        "summary": "URL for SUSE-SU-2026:1784-1",
        "url": "https://www.suse.com/support/update/announcement/2026/suse-su-20261784-1/"
      },
      {
        "category": "self",
        "summary": "E-Mail link for SUSE-SU-2026:1784-1",
        "url": "https://lists.suse.com/pipermail/sle-security-updates/2026-May/025999.html"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1262254",
        "url": "https://bugzilla.suse.com/1262254"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1262255",
        "url": "https://bugzilla.suse.com/1262255"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-40176 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-40176/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-40261 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-40261/"
      }
    ],
    "title": "Security update for php-composer2",
    "tracking": {
      "current_release_date": "2026-05-08T17:05:56Z",
      "generator": {
        "date": "2026-05-08T17:05:56Z",
        "engine": {
          "name": "cve-database.git:bin/generate-csaf.pl",
          "version": "1"
        }
      },
      "id": "SUSE-SU-2026:1784-1",
      "initial_release_date": "2026-05-08T17:05:56Z",
      "revision_history": [
        {
          "date": "2026-05-08T17:05:56Z",
          "number": "1",
          "summary": "Current version"
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "php-composer2-2.6.4-150600.3.9.1.noarch",
                "product": {
                  "name": "php-composer2-2.6.4-150600.3.9.1.noarch",
                  "product_id": "php-composer2-2.6.4-150600.3.9.1.noarch"
                }
              }
            ],
            "category": "architecture",
            "name": "noarch"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "SUSE Linux Enterprise Module for Web and Scripting 15 SP7",
                "product": {
                  "name": "SUSE Linux Enterprise Module for Web and Scripting 15 SP7",
                  "product_id": "SUSE Linux Enterprise Module for Web and Scripting 15 SP7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sle-module-web-scripting:15:sp7"
                  }
                }
              },
              {
                "category": "product_name",
                "name": "SUSE Linux Enterprise Server 15 SP6-LTSS",
                "product": {
                  "name": "SUSE Linux Enterprise Server 15 SP6-LTSS",
                  "product_id": "SUSE Linux Enterprise Server 15 SP6-LTSS",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sles-ltss:15:sp6"
                  }
                }
              },
              {
                "category": "product_name",
                "name": "SUSE Linux Enterprise Server for SAP Applications 15 SP6",
                "product": {
                  "name": "SUSE Linux Enterprise Server for SAP Applications 15 SP6",
                  "product_id": "SUSE Linux Enterprise Server for SAP Applications 15 SP6",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sles_sap:15:sp6"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "SUSE Linux Enterprise"
          }
        ],
        "category": "vendor",
        "name": "SUSE"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "php-composer2-2.6.4-150600.3.9.1.noarch as component of SUSE Linux Enterprise Module for Web and Scripting 15 SP7",
          "product_id": "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch"
        },
        "product_reference": "php-composer2-2.6.4-150600.3.9.1.noarch",
        "relates_to_product_reference": "SUSE Linux Enterprise Module for Web and Scripting 15 SP7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "php-composer2-2.6.4-150600.3.9.1.noarch as component of SUSE Linux Enterprise Server 15 SP6-LTSS",
          "product_id": "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch"
        },
        "product_reference": "php-composer2-2.6.4-150600.3.9.1.noarch",
        "relates_to_product_reference": "SUSE Linux Enterprise Server 15 SP6-LTSS"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "php-composer2-2.6.4-150600.3.9.1.noarch as component of SUSE Linux Enterprise Server for SAP Applications 15 SP6",
          "product_id": "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
        },
        "product_reference": "php-composer2-2.6.4-150600.3.9.1.noarch",
        "relates_to_product_reference": "SUSE Linux Enterprise Server for SAP Applications 15 SP6"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2026-40176",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-40176"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::generateP4Command() method, which constructs shell commands by interpolating user-supplied Perforce connection parameters (port, user, client) without proper escaping. An attacker can inject arbitrary commands through these values in a malicious composer.json declaring a Perforce VCS repository, leading to command execution in the context of the user running Composer, even if Perforce is not installed. VCS repositories are only loaded from the root composer.json or the composer config directory, so this cannot be exploited through composer.json files of packages installed as dependencies. Users are at risk if they run Composer commands on untrusted projects with attacker-supplied composer.json files. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline).",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
          "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
          "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-40176",
          "url": "https://www.suse.com/security/cve/CVE-2026-40176"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1262254 for CVE-2026-40176",
          "url": "https://bugzilla.suse.com/1262254"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-05-08T17:05:56Z",
          "details": "important"
        }
      ],
      "title": "CVE-2026-40176"
    },
    {
      "cve": "CVE-2026-40261",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-40261"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::syncCodeBase() method, which appends the $sourceReference parameter to a shell command without proper escaping, and additionally in the Perforce::generateP4Command() method as in GHSA-wg36-wvj6-r67p / CVE-2026-40176, which interpolates user-supplied Perforce connection parameters (port, user, client) from the source url field without proper escaping. An attacker can inject arbitrary commands through crafted source reference or source url values containing shell metacharacters, even if Perforce is not installed. Unlike CVE-2026-40176, the source reference and url are provided as part of package metadata, meaning any compromised or malicious Composer repository can serve package metadata declaring perforce as a source type with malicious values. This vulnerability is exploitable when installing or updating dependencies from source, including the default behavior when installing dev-prefixed versions. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline). If developers are unable to immediately update, they can avoid installing dependencies from source by using --prefer-dist or the preferred-install: dist config setting, and only use trusted Composer repositories as a workaround.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
          "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
          "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-40261",
          "url": "https://www.suse.com/security/cve/CVE-2026-40261"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1262255 for CVE-2026-40261",
          "url": "https://bugzilla.suse.com/1262255"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Enterprise Module for Web and Scripting 15 SP7:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server 15 SP6-LTSS:php-composer2-2.6.4-150600.3.9.1.noarch",
            "SUSE Linux Enterprise Server for SAP Applications 15 SP6:php-composer2-2.6.4-150600.3.9.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-05-08T17:05:56Z",
          "details": "important"
        }
      ],
      "title": "CVE-2026-40261"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…