CVE-2026-135803
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | symfony |
Fixed | 6.4.50+dfsg-0+deb13u1 |
| sid | symfony |
Fixed | 7.4.23+dfsg-1 |
| forky | symfony |
Fixed | 7.4.23+dfsg-1 |
| bookworm | symfony |
Affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/filesystem | >=5.4.0,<5.4.56|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.50|>=7.0.0,<7.1.0|>=7.1.0,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.23|>=8.0.0,<8.1.0|>=8.1.0,<8.1.11 | |
| Packagist | symfony/symfony | >=5.4.0,<5.4.56|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.50|>=7.0.0,<7.1.0|>=7.1.0,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.23|>=8.0.0,<8.1.0|>=8.1.0,<8.1.11 | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| symfony | symfony_filesystem | {"startIncluding":"5.4.0","endExcluding":"5.4.56"} | 5.4.56 |
| symfony | symfony_filesystem | {"startIncluding":"6.0.0","endExcluding":"6.4.50"} | 6.4.50 |
| symfony | symfony_filesystem | {"startIncluding":"7.0.0","endExcluding":"7.4.23"} | 7.4.23 |
| symfony | symfony_filesystem | {"startIncluding":"8.0.0","endExcluding":"8.1.11"} | 8.1.11 |
| symfony | symfony_symfony | {"startIncluding":"5.4.0","endExcluding":"5.4.56"} | 5.4.56 |
| symfony | symfony_symfony | {"startIncluding":"6.0.0","endExcluding":"6.4.50"} | 6.4.50 |
| symfony | symfony_symfony | {"startIncluding":"7.0.0","endExcluding":"7.4.23"} | 7.4.23 |
| symfony | symfony_symfony | {"startIncluding":"8.0.0","endExcluding":"8.1.11"} | 8.1.11 |
References
CWEs
CWE-22
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.