All vulnerabilities

Packagist · Servers and applications

CVE-2026-135803

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

Severity
High
Published
4 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
5.4.56, 6.4.50, 7.4.23, 8.1.11
Exploit chance
0.2% in the next 30 daysHigher than 10% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)
Also known as
GHSA-6prc-h956-hxjq
Sources
CVE Program, Project advisories (GitHub)

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.

From symfony/symfony's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
SymfonyServers and applications · github:symfony/symfony
  • From 5.4.0 before 5.4.56
  • From 6 before 6.4.50
  • From 7 before 7.4.23
  • From 8 before 8.1.11
symfony/filesystemPackagist · osv:Packagist:symfony/filesystem
  • From 5.4.0 before 5.4.56
  • From 6.0.0 before 6.4.50
  • From 7.0.0 before 7.4.23
  • From 8.0.0 before 8.1.11
SymfonyPackagist · osv:Packagist:symfony/symfony
  • From 5.4.0 before 5.4.56
  • From 6.0.0 before 6.4.50
  • From 7.0.0 before 7.4.23
  • From 8.0.0 before 8.1.11

About Symfony

PHP web application framework for MVC applications

From Wikidata, CC0 1.0.
Developers who used it in the past year
4%Stack Overflow Developer Survey 2025, 2025
Monthly downloads (Packagist)
315,437Packagist, 22 Nov 2026
Total downloads (Packagist)
88,509,675Packagist, 22 Nov 2026
GitHub stars
31,457GitHub, 22 Nov 2026
Forks
9,960GitHub, 22 Nov 2026
Latest release
v8.2.0-BETA2GitHub, 22 Nov 2026
Released
13 Nov 2026GitHub
Developer
SensioLabsWikidata
License
MIT LicenseWikidata
Written in
PHPWikidata
First released
22 Oct 2005Wikidata
First published on GitHub
4 Jan 2010GitHub

Release lines

ReleaseLatestSecurity fixes
8.18.1.11Until 31 Jan 2027
8.08.0.16Ended 31 Jul 2026
7.4 (LTS)LTS7.4.23Until 30 Nov 2029
7.37.3.11Ended 31 Jan 2026
7.27.2.9Ended 31 Jul 2025
7.17.1.11Ended 31 Jan 2025

From endoflife.date.

About symfony/filesystem

Monthly downloads (Packagist)
31,332,127Packagist, 24 Nov 2026
Total downloads (Packagist)
812,088,994Packagist, 24 Nov 2026

This is the only vulnerability in symfony/filesystem in our list.

References