Skip to content
FlawDB
Sign in

CVE-2026-135803

CRITICAL 9.1EPSS 52%

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

Mitigation

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.77% chance of exploitation in 30 days (percentile 52, 2026-11-26)
CWE
CWE-22
Published
Modified

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

Package / productAffectedFixedSource
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

Technologies

References

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-26).

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
HIGH 8.3CVE-2026-134792

HttpClient Lets the Proxy Header of a Request Choose the Proxy of Outgoing Requests in HTTP Workers That Run Under the CLI SAPI

Symfony
EPSS 45%
HIGH 8.7CVE-2026-134791

Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process

Symfony
EPSS 45%
MEDIUM 5.3CVE-2026-134790

Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652

Symfony
EPSS 63%
MEDIUM 6.0CVE-2026-133762

Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in Production

Symfony
EPSS 49%
HIGH 8.7CVE-2026-133761

CsvEncoder Nests Rows Once per Key Separator of a Header, Letting a Small CSV Payload Crash PHP

Symfony
EPSS 45%
Sponsors