CVE-2026-135803 - Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory
Vulnerability · Reported by NVD · · CWE-22
- Severity
- High Estimated, NVD hasn't scored it yet
- CVSS
- – Not scored yet
- Exploit chance (EPSS)
- 0.77% Higher than 52% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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
Type of weakness
This issue is classified as path traversal (CWE-22).
Is it being exploited?
The EPSS model estimates a 0.77% chance this CVE will be exploited in the next 30 days, which is low and higher than 52% of all published CVEs.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.
Tags
CVE-2026-135803
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-135803 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
NVD has not scored this CVE yet. The severity shown is an estimate from the article text and will be replaced automatically.
How this data is collected: methodology & sources.