Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-59946 BIT-composer-2026-59946EUVD-2026-42360GHSA-gjfg-22fp-rrxx

Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files

Published Jul 8, 2026 · Updated Jul 9, 2026 · Assigned by GitHub_M

Description

Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.

Affected products

VendorProductAffectedFixed
composer composer >= 1.0, < 2.2.29, >= 2.3.0, < 2.10.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 composer 2.10.2-1 —
Debian 13 composer No fix yet —
Debian 12 composer No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 composer No fix yet —
Ubuntu 26.04 LTS composer No fix yet —
Ubuntu 25.10 composer No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS composer No fix yet —
Ubuntu Pro 22.04 LTS composer No fix yet —
Ubuntu Pro 20.04 LTS composer No fix yet —
Ubuntu Pro 18.04 LTS composer No fix yet —
Ubuntu Pro 16.04 LTS composer No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 composer 2.10.2-1.hum1 RHSA-2026:34854
ReleasePackageFixed inAdvisory
SLES 15 SP7 php-composer2 2.6.4-150600.3.12.1 SUSE-SU-2026:3105-1
SLES 15 SP6 php-composer2 2.6.4-150600.3.12.1 SUSE-SU-2026:3105-1
SLES 15 SP5 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
SLES 15 SP4 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 php-composer2 2.8.9-160000.4.1 SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1
SLES for SAP 15 SP6 php-composer2 2.6.4-150600.3.12.1 SUSE-SU-2026:3105-1
SLES for SAP 15 SP5 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
SLES for SAP 15 SP4 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
SLES 16.0 php-composer2 2.8.9-160000.4.1 SUSE-SU-2026:23138-1, SUSE-SU-2026:23116-1
SLE HPC 15 SP5 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
SLE HPC 15 SP4 php-composer2 2.2.30-150400.3.21.1 SUSE-SU-2026:4589-1, SUSE-SU-2026:4283-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php-composer2 2.10.2-1.1 openSUSE-SU-2026:11268-1
openSUSE Leap 16.0 php-composer2 2.8.9-160000.4.1 openSUSE-SU-2026:21520-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 composer 2.10.2-1.amzn2023.0.1 ALAS2023-2026-1941

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist composer/composer >= 2.3.0, < 2.10.2 2.10.2 GHSA-gjfg-22fp-rrxx
Packagist composer/composer >= 1.0.0, < 2.2.29 2.2.29 GHSA-gjfg-22fp-rrxx

Advisories 10

References