# Composer Remote Code Execution vulnerability via web-accessible composer.phar

Advisory record · `GHSA-jm6m-4632-36hf`

- **Identifiers:** `GHSA-jm6m-4632-36hf` · `BIT-composer-2023-43655` · `CVE-2023-43655` · `PKSA-m1ph-vmbx-2xd3`
- **State:** Confirmed
- **Severity:** CVSS 6.4 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-74](https://cwe.mitre.org/data/definitions/74.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md)
- **Published:** 29 Sept 2023
- **Updated:** 13 Feb 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Sept 2023, 20:39 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `composer/composer` (Packagist): affected `<1.10.27 || >=2.0.0, <2.2.22 || >=2.3.0, <2.6.4`; fixed in `1.10.27`, `2.2.22`, `2.6.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Composer versions before 1.10.27, from 2.0.0 before 2.2.22, and from 2.3.0 before 2.6.4 are vulnerable when a composer.phar file is published on a public web server where it can be run as PHP and PHP has register_argc_argv enabled. An attacker who can request that file can potentially execute code on the server. Upgrade to 1.10.27, 2.2.22, or 2.6.4 depending on your release line. As a workaround, disable register_argc_argv in php.ini and do not publish composer.phar to the web.

Written 4 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.4 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.015, the 75th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 29 Sept 2023, 08:56 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf)
- 31 Oct 2026, 14:27 UTC: First seen by agentprime
- 31 Oct 2026, 14:27 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-jm6m-4632-36hf)

## Sources

- [GitHub Advisory Database: GHSA-jm6m-4632-36hf](https://github.com/advisories/GHSA-jm6m-4632-36hf)
- [OSV: GHSA-jm6m-4632-36hf](https://osv.dev/vulnerability/GHSA-jm6m-4632-36hf)
- <https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43655>
- <https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d>
- <https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c>
- <https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c>
- <https://github.com/composer/composer>
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jm6m-4632-36hf>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jm6m-4632-36hf/>. Everything for agents: <https://agentprime.io/llms.txt>.
