{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "1.0"
              },
              {
                "fixed": "2.2.30"
              },
              {
                "introduced": "2.3.0"
              },
              {
                "fixed": "2.10.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "32df3aa8cdbdaa16df9491b5e672e81c87f94c78"
            },
            {
              "introduced": "934ee6eed3c3ffd0aeccef7c1d255adcf0752b24"
            },
            {
              "fixed": "dcf399dbf5a5d05b54169fe2caf018152edba181"
            },
            {
              "fixed": "f0de0bf90226853b841672f086d8b58b02332504"
            },
            {
              "fixed": "0aac50528e83ed635cf788333635897469440220"
            },
            {
              "fixed": "199ad81a9cc6a2a5164ad79a8da26b2e19e521af"
            }
          ],
          "repo": "https://github.com/composer/composer",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-rvx4-ffvw-m9q3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84361.json"
  },
  "details": "Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to perforce and source.url to an rsh: or jsh: P4PORT value. When the Perforce p4 client was installed and Composer installed the package from source through composer install or composer update, including --prefer-source, Composer\\Util\\Perforce passed the address to p4 without validation, causing p4 to run a local command with the privileges of the user or CI account. Packagist.org does not permit Perforce source metadata. This issue is fixed in versions 2.2.30 and 2.10.3.",
  "id": "CVE-2026-84361",
  "modified": "2026-09-03T03:30:34.963219944Z",
  "published": "2026-09-01T20:06:48.375Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.10.3"
    },
    {
      "type": "WEB",
      "url": "https://github.com/composer/composer/releases/tag/2.2.30"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/84xxx/CVE-2026-84361.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-84361"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220"
    },
    {
      "type": "FIX",
      "url": "https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Composer: Perforce source URL permits P4PORT `rsh:` command execution"
}