# CVE-2026-135803: Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-11-24T08:55:16.948Z
- Modified: 2026-11-25T20:18:38.343Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Symfony

## 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.

(As written by CVE List.)

## Affected

- symfony/filesystem: from 5.4.0 before 5.4.56; from 6.0.0 before 6.4.50; from 7.0.0 before 7.4.23; from 8.0.0 before 8.1.11
- symfony/symfony: from 5.4.0 before 5.4.56; from 6.0.0 before 6.4.50; from 7.0.0 before 7.4.23; from 8.0.0 before 8.1.11

## References

- <https://symfony.com/cve-2026-135803> (vendor-advisory)
- <https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq> (vendor-advisory)
- <https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1> (patch)

## Sources

- CVE List: [CVE-2026-135803](https://www.cve.org/CVERecord?id=CVE-2026-135803), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-135803](https://nvd.nist.gov/vuln/detail/CVE-2026-135803), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-135803 · Whole record: https://cve.day/CVE-2026-135803.json · Rebuilt by cve.day 2026-11-25T23:18:07.370Z
