StraitOfVuln
Latest / CVE-2026-135803

CVE-2026-135803

CriticalCVSS 9.1 (v3.1)Awaiting Analysis
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-135803
Published / updated
24 Nov 2026, 09:17 UTC · last modified 25 Nov 2026, 20:18 UTC
Severity
CRITICAL
CVSS score
9.1 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N · Attack vector: Network
Affected vendor
Symfony
Affected products
symfony/filesystem, symfony/symfony
Affected versions
symfony/filesystem: 5.4.0 to before 5.4.56, 6.0.0 to before 6.4.50, 7.0.0 to before 7.4.23, 8.0.0 to before 8.1.11
symfony/symfony: 5.4.0 to before 5.4.56, 6.0.0 to before 6.4.50, 7.0.0 to before 7.4.23, 8.0.0 to before 8.1.11
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
symfony/filesystem 5.4.56, symfony/filesystem 6.4.50, symfony/filesystem 7.4.23, symfony/filesystem 8.1.11, symfony/symfony 5.4.56, symfony/symfony 6.4.50, symfony/symfony 7.4.23, symfony/symfony 8.1.11
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.77% probability of exploitation in the next 30 days · 57% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
b5aa5c7f-767d-4597-9c64-3ac08b8711c6