Symfony Filesystem
Monthly
Path traversal in Symfony's Filesystem Path component lets strings such as /base/../x://../secret.txt survive isBasePath(), canonicalize(), join(), makeAbsolute() and makeRelative() uncanonicalized, because everything before the first '://' is treated as a path root even when it is not a URI scheme - while PHP itself sees only a plain local path and resolves it to /secret.txt. An application that validates an attacker-influenced path with these methods and then opens the result can be driven to read or write outside the intended directory, and on Symfony 6.4+ the AssetMapper importmap workflow builds CSS-referenced file paths with Path::join(), so a malicious or compromised remote package can make importmap:require or importmap:install write outside assets/vendor. Affected releases are symfony/filesystem and symfony/symfony 5.4.0-5.4.55, 6.0.0-6.4.49, 7.0.0-7.4.22 and 8.0.0-8.1.10, fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11; the vendor score is 9.1 but real exposure hinges on the consuming application's API usage rather than being purely remote and unattended (our assessment therefore rates AC:H), no public exploit code was identified at time of analysis, EPSS is 0.20% (10th percentile) and there is no KEV listing, yet the availability of fixed releases keeps this at an act_now decision.
Path traversal in Symfony's Filesystem Path component lets strings such as /base/../x://../secret.txt survive isBasePath(), canonicalize(), join(), makeAbsolute() and makeRelative() uncanonicalized, because everything before the first '://' is treated as a path root even when it is not a URI scheme - while PHP itself sees only a plain local path and resolves it to /secret.txt. An application that validates an attacker-influenced path with these methods and then opens the result can be driven to read or write outside the intended directory, and on Symfony 6.4+ the AssetMapper importmap workflow builds CSS-referenced file paths with Path::join(), so a malicious or compromised remote package can make importmap:require or importmap:install write outside assets/vendor. Affected releases are symfony/filesystem and symfony/symfony 5.4.0-5.4.55, 6.0.0-6.4.49, 7.0.0-7.4.22 and 8.0.0-8.1.10, fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11; the vendor score is 9.1 but real exposure hinges on the consuming application's API usage rather than being purely remote and unattended (our assessment therefore rates AC:H), no public exploit code was identified at time of analysis, EPSS is 0.20% (10th percentile) and there is no KEV listing, yet the availability of fixed releases keeps this at an act_now decision.