# CVE-2026-135803: Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.77% (percentile 52, 2026-11-28)
- **CWE:** CWE-22
- **Published:** 2026-11-24T08:55:16.948Z
- **Modified:** 2026-11-25T20:18:38.343Z

## Who should check

- Anyone running symfony/filesystem \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11
- Anyone running symfony/symfony \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11

## 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.

## Affected and fixed versions

- symfony/filesystem: \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)
- symfony/symfony: \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11 (cvelist)

## Technologies

Symfony

## Mitigation

- Upgrade symfony/filesystem to 8.1.11 or later.
- Upgrade symfony/symfony to 8.1.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-135803. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-135803.md
Affected: symfony/filesystem >= 5.4.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11; symfony/symfony >= 5.4.0, < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11
Fixed in: 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

Steps:
1. Search this machine and project for symfony/filesystem, symfony/symfony: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-135803 being exploited?

There is no confirmed exploitation: CVE-2026-135803 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.77% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-135803?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-135803?

symfony/filesystem \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11; symfony/symfony \>= 5.4.0, \< 5.4.56; \>= 6.0.0, \< 6.4.50; \>= 7.0.0, \< 7.4.23; \>= 8.0.0, \< 8.1.11.

### Is there a fix for CVE-2026-135803?

Yes. Fixed in 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. Upgrade symfony/filesystem to 8.1.11 or later. Upgrade symfony/symfony to 8.1.11 or later.

### How do I check if I'm affected by CVE-2026-135803?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://symfony.com/cve-2026-135803>
- vendor: <https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq>
- patch: <https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-135803>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-135803> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-135803>
