Critical vulnerability
Critical vulnerability in Symfony (CVE-2026-135803)
Symfony · Servers and applications
CVE-2026-135803
Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory
- Severity
- Critical 9.1
- Published
- 4 Nov 2026
- Fixed in
- 6.4.50, 7.4.23, 8.1.11
- Exploit chance
- 0.3% in the next 30 daysHigher than 14% of CVEs. EPSS by FIRST, 25 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data
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.
| Software | Affected versions |
|---|---|
| SymfonyServers and applications |
|
| symfony/filesystemPackagist |
|
| SymfonyPackagist |
|
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-135803
- GitHub Advisory Database https://github.com/advisories/GHSA-6prc-h956-hxjq
- github.com https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq
From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.