Path traversal in Symfony - CVE-2026-135803

 

Path traversal in Symfony - CVE-2026-135803

Published: December 1, 2026


Vulnerability identifier: #VU171471
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-135803
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to read or write files outside the intended directory, depending on how the application uses the affected path.

The vulnerability exists due to improper path traversal prevention in Symfony Filesystem's Path::split() when it treats any prefix before the first :// as a path root without verifying that it is a URI scheme. This leaves parent-directory segments unresolved in paths that PHP treats as local. A remote attacker can supply a path that bypasses directory containment checks to read or write files outside the base directory if the application then opens the path. A malicious or compromised remote package can also cause AssetMapper to write outside assets/vendor when an import map command processes the package's CSS references.


Affected software

Symfony

How to mitigate CVE-2026-135803

Install security update from vendor's website.

Symfony - update to 5.4.56

External References

Related Security Bulletins