Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted path containing fake scheme
-
DeliveryPath::isBasePath/canonicalize treats prefix as root
-
ExploitLeading '..' left unresolved, check passes
-
ExecutionApplication opens resolved real path
-
ImpactRead or write file outside base directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an application that passes attacker-influenced path strings to Symfony\Component\Filesystem\Path methods - specifically isBasePath(), canonicalize(), join(), makeAbsolute() or makeRelative() - and then opens the resulting path; the attacker must craft input containing a non-scheme prefix immediately before '://' (e.g. 'x://') with '..' segments before it, which pre-fix versions treat as an unresolved root. The condition is the vulnerable API-usage pattern, not a special product setting. For the AssetMapper vector (Symfony 6.4+), the prerequisites are concrete: the AssetMapper/importmap feature in use, and an operator running importmap:require or importmap:install against a malicious or compromised remote package whose CSS references a traversal url() - this is bounded by requiring operator action and supply-chain compromise rather than being purely remote and unattended. Limiting factors: affected only if the consuming application both validates-then-opens with these methods, or uses AssetMapper with untrusted packages; affected versions are symfony/filesystem and symfony/symfony 5.4.0-5.4.55, 6.0.0-6.4.49, 7.0.0-7.4.22, and 8.0.0-8.1.10. |
| Impact | This is a genuine high-severity path-traversal (CWE-22) issue, but its real-world priority depends heavily on how the Symfony Filesystem Path API is consumed rather than on the raw 9.1 CVSS. The CVSS vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:N) describes the worst case: an application that builds a path from untrusted input, validates it with Path::isBasePath() or Path::canonicalize(), and then opens it - such an app can be made to read or write outside the intended directory with no authentication. The vuln.today Decision label is act_now, which should drive urgency. However, the signals are mixed: EPSS is only 0.20% (10th percentile) and the issue is NOT in CISA KEV, indicating no evidence of widespread or active exploitation - consistent with a library flaw whose exploitability is gated by downstream usage patterns rather than a universally reachable endpoint. No public exploit code is referenced. The most concretely demonstrated vector (AssetMapper importmap:require/importmap:install writing a file outside assets/vendor via a crafted CSS url()) is not truly remote-unauthenticated in practice: it requires a developer/operator to run an importmap command against a malicious or compromised package, i.e. a supply-chain precondition and local operator action. So the headline CVSS reflects the library's abstract capability, while the practically demonstrated attack paths require either an application that misuses the API on remote input, or operator action against an untrusted package. Treat as act_now for patching (low effort, broad dependency), but the low EPSS/no-KEV signals argue this is a prudent-priority update rather than an in-progress mass-exploitation emergency. |
| Exploit ScenarioDerived | An application takes a user-supplied path, confirms it stays within a safe base directory using Path::isBasePath('/base', input) or Path::canonicalize(), then opens the result; an attacker submits '/base/../../etc/x://../passwd', which the flawed scheme detection treats as having a root of 'x://', leaving the leading '..' unresolved, so the check passes while PHP opens /etc/passwd. In the Symfony 6.4+ AssetMapper path, a malicious or compromised remote package can embed CSS like url(../../../../../public/x://shell.php) so that importmap:require or importmap:install writes a file (e.g. public/x:/shell.php) outside assets/vendor. No public exploit code is referenced, though the advisory provides a fully worked trigger and test cases. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 25, 2026
Path traversal in Symfony's Filesystem Path component lets strings such as /base/../x://../secret.txt survive isBasePath(), canonicalize(), join(), makeAbsolute() and makeRelative() uncanonicalized, because everything before the first '://' is treated as a path root even when it is not a URI scheme - while PHP itself sees only a plain local path and resolves it to /secret.txt. An application that validates an attacker-influenced path with these methods and then opens the result can be driven to read or write outside the intended directory, and on Symfony 6.4+ the AssetMapper importmap workflow builds CSS-referenced file paths with Path::join(), so a malicious or compromised remote package can make importmap:require or importmap:install write outside assets/vendor. Affected releases are symfony/filesystem and symfony/symfony 5.4.0-5.4.55, 6.0.0-6.4.49, 7.0.0-7.4.22 and 8.0.0-8.1.10, fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11; the vendor score is 9.1 but real exposure hinges on the consuming application's API usage rather than being purely remote and unattended (our assessment therefore rates AC:H), no public exploit code was identified at time of analysis, EPSS is 0.20% (10th percentile) and there is no KEV listing, yet the availability of fixed releases keeps this at an act_now decision.
Earlier versions of this analysis (1)
Path traversal in the Symfony Filesystem Path helper (5.4.x before 5.4.56, 6.x before 6.4.50, 7.x before 7.4.23, 8.x before 8.1.11) lets a path carrying a fake '://' prefix survive base-directory validation: Path::split() treats everything before the first '://' as a root without checking that the prefix is a real URI scheme, so any preceding '..' segments are never resolved and isBasePath() can report that a path outside the base is contained. Applications that check user-supplied paths with isBasePath() or canonicalize() and then read or write them can be steered outside the intended directory; the vendor-confirmed concrete condition is AssetMapper on Symfony 6.4 and later, where running importmap:require or importmap:install against a malicious or compromised remote package whose CSS url() contains the payload causes Path::join() to write a file of the attacker's choosing outside assets/vendor. The assessed vector is network-reachable and unauthenticated but requires user interaction, and the flaw is not reachable in a default install without an application or import workflow feeding untrusted paths into these helpers; no public exploit code was identified at time of analysis, and no KEV or EPSS signal is present in the available data.
RemediationAI
Upgrade symfony/filesystem and symfony/symfony to 5.4.56, 6.4.50, 7.4.23 or 8.1.11 respectively (composer require symfony/filesystem:^6.4.50 or the matching branch constraint, then update the lock file and redeploy so the patched Path class replaces the vendored copy); the upstream change is commit 9441dd5f05e78ad898317083828c1acebff586a1, described in GHSA-6prc-h956-hxjq and https://symfony.com/cve-2026-135803. Because the vulnerability only manifests when application code validates-then-opens attacker-influenced paths through these methods, a temporary compensating control is to stop feeding untrusted strings into isBasePath()/canonicalize()/join()/makeAbsolute()/makeRelative() and instead reject any input containing '://' or resolving outside the base before I/O, or to re-verify the resolved target with realpath() plus a str_starts_with() base check - with the trade-off that blocking '://' breaks legitimate stream-wrapper and URI use, and realpath() only works for existing files so it does not protect write targets that do not yet exist. For AssetMapper deployments on 6.4+, avoid running importmap:require or importmap:install against untrusted or unvetted remote packages until patched (pinning and reviewing package CSS mitigates the supply-chain half of the vector but does not fix the underlying Path logic), and run those commands with a filesystem user whose write access is confined to the project directory. The site decision signal is act_now with vendor patches published for every affected branch, so upgrading is the complete fix; no public exploit code was identified at time of analysis.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Symfony\Component\Filesystem\Path implements path canonicalization for local paths and PHP stream-wrapper URIs. Pre-fix, its private split() helper - used by canonicalize(), join(), makeAbsolute(), makeRelative(), isAbsolute(), getRoot() and, transitively, isBasePath() - located a root with a plain strpos($path, '://') and took everything up to and including that separator as the scheme, then stopped resolving '..' segments in the remainder. PHP only recognizes a scheme at the very start of a string and only when a stream wrapper with that name exists, so a value like '/base/../x://../secret.txt' is an ordinary local path to '/secret.txt' for fopen()/file_get_contents(), but Symfony classified it as rooted at 'x://' and returned true from isBasePath('/base', ...). The result is a validator/consumer disagreement - classic CWE-22 - where the check is satisfied by a string that the filesystem layer resolves somewhere else entirely. The root cause class is path canonicalization mismatch, not a memory-safety or injection bug: any '..' segment placed before a non-scheme '://' prefix escapes resolution. The fix (commit 9441dd5f05e78ad898317083828c1acebff586a1) replaces the strpos scans in getRoot(), isAbsolute(), makeAbsolute(), makeRelative() and split() with preg_match('{^[a-zA-Z0-9+.-]{2,}://}'), matching PHP's stream-wrapper naming rules (at least two characters from letters, digits, '+', '-' and '.'), so single-letter prefixes and prefixes containing path separators or '..' are treated as regular segments and the traversal is resolved; phar://, file://, vfs://, s3:// and compress.zlib:// continue to be handled as roots. On Symfony 6.4 and later the AssetMapper component compounds this: it joins a remote package's CSS url() references onto the vendor assets directory with Path::join(), so a CSS entry such as url(../../../../../public/x://shell.php) resolves to public/x:/shell.php and is written outside assets/vendor during importmap:require or importmap:install.
Know when Symfony gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable path traversal, but exploitation depends on the consuming application using the validate-then-open pattern on attacker input - an attacker-uncontrolled precondition - so AC:H; read and write both possible (C:H/I:H), no availability impact.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
Lifecycle Timeline
3DescriptionCVE.org
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 POC Analysis
CWE-22.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical path traversal vulnerability in Symfony's Filesystem Path component (CVE-2026-135803) allows attackers to bypass validation and read or write files outside intended directories, affecting applications using Symfony 5.4 through 8.1. This poses a significant risk to data confidentiality and integrity, particularly for businesses relying on Symfony for web applications or the AssetMapper workflow, where a compromised remote package could write malicious files outside the assets/vendor directory.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1
In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le
Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C
Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten
Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke
Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev
An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s
An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner
EUVD-2026-133736
GHSA-3gqv-8wv6-5qw7
NVD
CVE.org
EPSS
VulDB
Exploit-DB