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

Status: published. Published: 2026-11-24. Updated: 2026-11-24.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Symfony) — https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1

## Affected products and versions

- Symfony / symfony/filesystem (symfony/filesystem): ≥ 5.4.0; < 5.4.56 (affected, semver); ≥ 6.0.0; < 6.4.50 (affected, semver); ≥ 7.0.0; < 7.4.23 (affected, semver); ≥ 8.0.0; < 8.1.11 (affected, semver). Source: CNA: Symfony
- Symfony / symfony/symfony (symfony/symfony): ≥ 5.4.0; < 5.4.56 (affected, semver); ≥ 6.0.0; < 6.4.50 (affected, semver); ≥ 7.0.0; < 7.4.23 (affected, semver); ≥ 8.0.0; < 8.1.11 (affected, semver). Source: CNA: Symfony

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-22

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://symfony.com/cve-2026-135803 (CNA: Symfony; vendor-advisory)

- https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq (CNA: Symfony; vendor-advisory)

- https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1 (CNA: Symfony; patch)

## Provenance

- CNA: Symfony: https://www.cve.org/CVERecord?id=CVE-2026-135803; retrieved 2026-11-24; source updated 2026-11-24

Revision: 3fecfecc08218bee41ee3b9fd0ff155d83568c1faedd4f3637eeaf568e78dd1d

Canonical: https://y2.dev/cve/CVE-2026-135803

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.