CVE-2026-135803
published critical CVSS 3.1 · 9.1Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/filesystem5.4.0 to < 5.4.56 · 6.0.0 to < 6.4.50 · 7.0.0 to < 7.4.23 · 8.0.0 to < 8.1.11 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony5.4.0 to < 5.4.56 · 6.0.0 to < 6.4.50 · 7.0.0 to < 7.4.23 · 8.0.0 to < 8.1.11 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.50+dfsg-0+deb13u1 | DSA-6617-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/filesystem | 5.4.0 to < 5.4.56 (affected · semver)6.0.0 to < 6.4.50 (affected · semver)7.0.0 to < 7.4.23 (affected · semver)8.0.0 to < 8.1.11 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 5.4.0 to < 5.4.56 (affected · semver)6.0.0 to < 6.4.50 (affected · semver)7.0.0 to < 7.4.23 (affected · semver)8.0.0 to < 8.1.11 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
3- https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1
- GHSA-6prc-h956-hxjq https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq
- CVE-2026-135803 https://symfony.com/cve-2026-135803
Provider assertions
2Symfony · cna
Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1db654ad09fdc84fb99972a4e5e68c43f79666fb183be580626ed4a287144ae6
- Ingested
- 25 Nov 2026, 19:53:07 UTC
- Source record
- Official CVE record