Path traversal in composer - #VU159579
Published: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated local attacker to delete directories and write package files outside vendor/ with the privileges of the user running Composer.
The vulnerability exists due to missing validation of package names containing .. path segments in vendor/composer/installed.json during installation or reinstallation. An unauthenticated local attacker can tamper with this file before a victim runs Composer, triggering directory deletion during installation or reinstallation and file writes during reinstallation.