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


- **Severity:** Critical 9.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 24 Nov 2026
- **Updated:** 25 Nov 2026
- **Also known as:** CLEANSTART-2026-FK43665, CLEANSTART-2026-SE78509, DEBIAN-CVE-2026-135803, GHSA-3gqv-8wv6-5qw7, GHSA-6prc-h956-hxjq, UBUNTU-CVE-2026-135803

## What is CVE-2026-135803?

CVE-2026-135803 is a critical vulnerability in symfony/filesystem, published on 24 Nov 2026. 

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

Weakness: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

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


## How do I fix CVE-2026-135803?

Upgrade to a fixed version.

## Is CVE-2026-135803 being exploited?

There is no known exploitation of CVE-2026-135803 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-135803 and fix it if it is affected.

What it is: CVE-2026-135803 is a critical vulnerability in symfony/filesystem, published on 24 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-135803 in the wild and no public exploit code.

Affected product: symfony/filesystem. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-135803/ (Markdown: https://insights.sbomify.com/CVE-2026-135803/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-135803
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-135803
- OSV: https://osv.dev/vulnerability/CVE-2026-135803

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-135803/
Summaries are generated and may contain mistakes; the official description above is the record.
