Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. composer/composer
  4. ›
  5. CVE-2023-43655

CVE-2023-43655: Composer Remote Code Execution vulnerability via web-accessible composer.phar

September 29, 2023 (updated February 13, 2025)

Users publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be impacted if PHP also has register_argc_argv enabled in php.ini.

References

  • github.com/advisories/GHSA-jm6m-4632-36hf
  • github.com/composer/composer
  • github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d
  • github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c
  • github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c
  • github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf
  • lists.debian.org/debian-lts-announce/2024/03/msg00030.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2
  • nvd.nist.gov/vuln/detail/CVE-2023-43655

Code Behaviors & Features

Detect and mitigate CVE-2023-43655 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.10.27, all versions starting from 2.0.0 before 2.2.22, all versions starting from 2.3.0 before 2.6.4

Fixed versions

  • 1.10.27
  • 2.2.22
  • 2.6.4

Solution

Upgrade to versions 1.10.27, 2.2.22, 2.6.4 or above.

Impact 6.4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Source file

packagist/composer/composer/CVE-2023-43655.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 17 Nov 2026 12:16:45 +0000.