Vulnerability DatabaseGHSA-w6hj-6587-3jh5

GHSA-w6hj-6587-3jh5: 
PHP vulnerability analysis and mitigation

Summary

A malicious package archive could cause Composer to write a file outside the intended package directory during composer install, composer update, or composer require. Because the written file can be an application entry point or another file that later gets executed, this can lead to code execution. It is arbitrary file write, not a flaw triggered by normal Packagist-hosted packages, which do not carry the kind of archive entries required.

Am I affected?

You are affected if all of the following hold:

  • You run Composer 1.0.0 through 2.11.1.
  • You install packages whose distribution archive (zip) an attacker can control. In practice this means untrusted third-party Composer repositories, private or self-hosted repositories, artifact mirrors, or any attacker-controlled dist URL.
  • Your system has the unzip command available (standard on Linux and macOS) together with the PHP zip extension. When those hold, a crafted archive can redirect one of its entries so the content lands outside the package directory, for example overwriting a front controller in the project root, which yields code execution on the next request or command. You are plainly not affected if every package you install comes from a trusted source. Packagist.org-hosted archives generally do not contain the archive entries this relies on, so typical Packagist.org-only installs are not a realistic vector. The single most realistic way to get hit: adding or updating a package served by an untrusted or attacker-controlled repository or mirror.

Patched versions

Fixed in 2.11.2 and 2.2.32.

Workarounds

The only complete fix is upgrading.


Source: NVD

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-hg3m-q4fj-ggmqCRITICAL9.3
  • PHP logoPHP
  • wallabag/wallabag
NoNoNov 20, 2026
CVE-2026-63012MEDIUM6.5
  • PHP logoPHP
  • baserproject/baser-core
NoYesNov 19, 2026
GHSA-crpp-mf59-rhpqMEDIUMN/A
  • PHP logoPHP
  • api-platform/core
NoYesNov 20, 2026
GHSA-9wh3-m3m5-jffxMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NoYesNov 20, 2026
GHSA-65w2-9r4h-848gMEDIUMN/A
  • PHP logoPHP
  • nowo-tech/transaction-doctrine
NoYesNov 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management