{
  "cveId": "CVE-2026-40176",
  "url": "https://patchblox.com/security/cve/CVE-2026-40176",
  "summary": "CVE-2026-40176 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2026-40176, released April 15, 2026. It is not reported as exploited. Patch Radar priority: High.",
  "title": "composer: Composer is a dependency manager for PHP",
  "description": "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).",
  "published": "2026-04-15T21:17:27Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
  "epss": 0.01045,
  "epssPercentile": 0.64347,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "composer",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "2.5.5-1\u002Bdeb12u4",
      "fix": "DEBIAN-CVE-2026-40176",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-40176",
      "released": "2026-04-15T21:17:27Z"
    },
    {
      "platform": "linux",
      "product": "composer",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "2.8.8-1\u002Bdeb13u2",
      "fix": "DEBIAN-CVE-2026-40176",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-40176",
      "released": "2026-04-15T21:17:27Z"
    },
    {
      "platform": "linux",
      "product": "composer",
      "release": "Debian 14",
      "fixedVersion": "2.9.7-1",
      "fix": "DEBIAN-CVE-2026-40176",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-40176",
      "released": "2026-04-15T21:17:27Z"
    },
    {
      "platform": "linux",
      "product": "composer",
      "release": "amzn 2023",
      "fixedVersion": "2.9.7-1.amzn2023.0.1",
      "fix": "ALAS2023-2026-1625",
      "url": "https://patchblox.com/security/fix/linux/alas2023-2026-1625",
      "released": "2026-04-27T09:00:00Z"
    },
    {
      "platform": "linux",
      "product": "php-composer2",
      "release": "opensuse-leap 16.0",
      "fixedVersion": "2.8.9-160000.4.1",
      "fix": "OPENSUSE-SU-2026:21520-1",
      "url": "https://patchblox.com/security/fix/linux/opensuse-su-2026-21520-1",
      "released": "2026-08-03T21:09:33Z"
    },
    {
      "platform": "linux",
      "product": "php-composer2",
      "release": "sles 15.6",
      "fixedVersion": "2.6.4-150600.3.12.1",
      "fix": "SUSE-SU-2026:3105-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-3105-1",
      "released": "2026-07-17T13:32:56Z"
    },
    {
      "platform": "linux",
      "product": "php-composer2",
      "release": "sles 15.7",
      "fixedVersion": "2.6.4-150600.3.12.1",
      "fix": "SUSE-SU-2026:3105-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-3105-1",
      "released": "2026-07-17T13:32:56Z"
    },
    {
      "platform": "linux",
      "product": "php-composer2",
      "release": "sles 16.0",
      "fixedVersion": "2.8.9-160000.4.1",
      "fix": "SUSE-SU-2026:23138-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2026-23138-1",
      "released": "2026-08-03T21:09:28Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T00:53:09Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}