Public vulnerability disclosure

CVE-2026-135803

Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base Directory

publishedCWE-22

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.

Technical severityUnscoredNo score in collected sources
Published2026-11-24Source updated 2026-11-24
Collected2026-11-241 attributed source

Fixes and workarounds

Fix

The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.

Source: CNA: Symfony

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
symfony/filesystem
Symfony
symfony/filesystem
https://packagist.org
≥ 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)
Other versions: unaffected
CNA: Symfony
symfony/symfony
Symfony
symfony/symfony
https://packagist.org
≥ 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)
Other versions: unaffected
CNA: Symfony

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

No CVSS assessment reported. An unscored record is not a low-severity determination.

Exploit evidence

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

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide