CVE-2026-135803
Received
Received - Intake
Path Traversal in Symfony Path Component
Vulnerability report for CVE-2026-135803, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-11-24
Last updated on: 2026-11-24
Assigner: b5aa5c7f-767d-4597-9c64-3ac08b8711c6
Description
Description
Most methods of Symfony\Component\Filesystem\Path rely on Path::split(), which takes everything before the first :// as the root of a path. It doesn't check that this prefix is a URI scheme, so the .. segments in that prefix are never resolved. PHP sees a scheme only at the start of a string. So /base/../x://../secret.txt is a plain local path to /secret.txt for PHP, while Path::isBasePath('/base', '/base/../x://../secret.txt') returns true. canonicalize(), join(), makeAbsolute() and makeRelative() are affected the same way.
Some applications check a path built from user input with isBasePath() or canonicalize(), and then open it. They can be made to read or write files outside the expected directory.
On Symfony 6.4 and later, the AssetMapper component builds with Path::join() the path of the files that a remote package references from its CSS. A malicious or compromised package can therefore make importmap:require or importmap:install write a file of its choice outside assets/vendor. For example, the CSS url(../../../../../public/x://shell.php) writes public/x:/shell.php.
A prefix is now a scheme only when PHP would look for a stream wrapper with that name. That is two or more letters, digits, +, - or ., followed by :// at the start of the path. Other prefixes are regular path segments, and the .. segments after them are resolved. Real schemes such as phar://, file://, vfs:// or compress.zlib:// keep working.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| Symfony | symfony/filesystem | From 5.4.0 (inc) to 5.4.56 (exc) |
| Symfony | symfony/filesystem | From 6.0.0 (inc) to 6.4.50 (exc) |
| Symfony | symfony/filesystem | From 7.0.0 (inc) to 7.4.23 (exc) |
| Symfony | symfony/filesystem | From 8.0.0 (inc) to 8.1.11 (exc) |
| Symfony | symfony/symfony | From 5.4.0 (inc) to 5.4.56 (exc) |
| Symfony | symfony/symfony | From 6.0.0 (inc) to 6.4.50 (exc) |
| Symfony | symfony/symfony | From 7.0.0 (inc) to 7.4.23 (exc) |
| Symfony | symfony/symfony | From 8.0.0 (inc) to 8.1.11 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |