The short version
- Affected:
symfony/filesystemandsymfony/symfonyversions >=5.4.0 <5.4.56, >=6 <6.4.50, >=7 <7.4.23 and >=8 <8.1.11 (Symfony advisory). Laravel itself does not require this package, so a Laravel app is affected only if another dependency pulls it in. - Fixed in: Symfony Filesystem 5.4.56, 6.4.50, 7.4.23 and 8.1.11, released 4 and 5 November 2026 (7.4.23 release, 8.1.11 release). The 25 November releases 5.4.57, 6.4.51, 7.4.24 and 8.1.12 also contain it.
- Severity: Symfony says High. CISA's ADP enrichment gives CVSS 3.1 9.1 Critical (CVE record). NVD is still Awaiting Analysis (NVD).
- Exploited: not known. CISA's SSVC entry on 25 November says Exploitation none, and the CVE is not in KEV (CVE record).
- Do now: run
composer show --locked symfony/filesystemin every PHP repository and update anything below the fixed version for its branch.
1. What CVE-2026-135803 is
Symfony\Component\Filesystem\Path is a set of static helpers for path strings: canonicalize(), join(), makeAbsolute(), makeRelative(), isBasePath() and others (Filesystem docs). Code uses them to resolve .. segments and to check that a path still sits under an allowed directory. Most of them call Path::split() first to separate the root from the rest.
Until the fix, split() took everything before the first :// as the root without checking that it was a URI scheme, so .. segments inside that prefix were never resolved. PHP only recognises a scheme at the very start of a string. The advisory's example is /base/../x://../secret.txt: PHP opens the local file /secret.txt, while Path::isBasePath('/base', ...) returns true (Symfony advisory). An application that validates a user-built path this way and then opens it can be made to read or write outside the directory it meant to allow.
The second route is AssetMapper. On Symfony 6.4 and later it uses Path::join() to decide where to store files that a remote JavaScript package references from its CSS, so a malicious or compromised package can make php bin/console importmap:require or importmap:install write a file of its choice outside assets/vendor, including under public/ (Symfony advisory).
The fix, commit 9441dd5 by Nicolas Grekas dated 30 October 2026, replaces every :// check in Path.php with PHP's own rule for stream wrappers: a scheme is two or more letters, digits, +, - or . followed by :// at the start of the path. Anything else is an ordinary segment and the .. after it is resolved (fix commit). Real schemes such as phar:// and compress.zlib:// keep working. The CWE is CWE-22.
2. Impact: who is exposed and how badly
Exposure depends on how your code uses Path. The 9.1 score from CISA assumes a network-reachable endpoint that takes a path from an unauthenticated user, validates it with isBasePath() or canonicalize(), and opens it. An attacker then reads or overwrites files as the PHP user, which in most deployments includes .env, configuration and anything under the web root. Symfony itself calls the vulnerability High and gives no vector (GitHub advisory).
The AssetMapper case is a supply-chain risk, not a remote one. The attacker must get a crafted CSS file into a package you install with importmap:require or re-download with importmap:install. The payoff is a file written into the project, for example a PHP file under public/, which is code execution on the next request to it.
| Branch | Affected | Fixed | Notes |
|---|---|---|---|
| 5.4 (LTS, security fixes only) | 5.4.0 to 5.4.55 | 5.4.56, 4 Nov 2026 | 5.4.57 of 25 Nov 2026 also fixed (release) |
| 6.4 (LTS) | 6.4.0 to 6.4.49 | 6.4.50, 4 Nov 2026 | 6.4.51 of 25 Nov 2026 is the last bug-fix release of 6.4; security releases continue until Nov 2027 (release) |
| 7.4 (LTS) | 7.4.0 to 7.4.22 | 7.4.23, 4 Nov 2026 | 7.4.24 of 25 Nov 2026 also fixed (release) |
| 8.1 | 8.1.0 to 8.1.10 | 8.1.11, 5 Nov 2026 | 8.1.12 of 25 Nov 2026 also fixed (release) |
| 6.0 to 6.3, 7.0 to 7.3, 8.0 | all | none | unmaintained branches; move to 6.4, 7.4 or 8.1 (releases) |
| 8.2 | pre-release only | fix forward-ported | no stable 8.2 yet; 8.2.0-RC1 dated 25 Nov 2026 |
Debian trixie symfony | 6.4.50+dfsg-0+deb13u1 | version already at the fixed release (package tracker) | |
Debian bookworm symfony | 5.4.53+dfsg-0+deb12u1 | not yet | tracker status is still "check" (security tracker) |
Ubuntu symfony | all releases "Needs evaluation" | not yet | priority Medium (Ubuntu) |
Not affected: versions below 5.4.0, which the CVE record marks as unaffected. Also not affected: applications that never pass untrusted input through Path and do not use AssetMapper with remote packages. They carry the bug but have no trigger. Laravel's framework package does not require symfony/filesystem in either its 12.x or 13.x composer.json (laravel/framework 12.x, 13.x), so a Laravel application is affected only when another package depends on it and your own code or that package uses Path.
3. How to check if you are affected
- Read the locked version in every PHP repository. Composer's
showcommand prints the installed package, and--lockedreadscomposer.lockinstead ofvendor/(Composer CLI). Compare against 5.4.56, 6.4.50, 7.4.23 or 8.1.11 for your branch. An error that the package is not found means you do not have it.
composer show --locked symfony/filesystem
composer show --locked symfony/symfony
- Ask Composer's audit. Packagist carries this advisory as PKSA-455j-x2ky-s2n8, so
composer auditreports CVE-2026-135803 when the lock file is in range (Packagist advisory feed). This is the quickest check across a monorepo or CI.
composer audit --locked
composer audit --locked --format=json
- Find out why it is installed. If
symfony/filesystemis not in your ownrequire,whyshows which package pulls it in. That tells you whether a plaincomposer update symfony/filesystemwill work or whether a parent package's constraint blocks it (Composer CLI).
composer why symfony/filesystem
- Look for the dangerous usage. Search your code and vendor packages for
Path::isBasePath,Path::canonicalize,Path::join,Path::makeAbsoluteandPath::makeRelativewhere any argument can come from a request. Also check whether the project uses AssetMapper: animportmap.phpfile and anassets/vendor/directory mean remote packages are installed withimportmap:require(AssetMapper docs).
grep -rn --include='*.php' -E 'Path::(isBasePath|canonicalize|join|makeAbsolute|makeRelative)\(' src/ app/ vendor/ 2>/dev/null
ls importmap.php assets/vendor 2>/dev/null
- Container images. The version is recorded in
vendor/composer/installed.jsoninside the image. Replace the image name and the application path for your build.
docker run --rm --entrypoint sh <image> -c "grep -A2 '\"name\": \"symfony/filesystem\"' /var/www/html/vendor/composer/installed.json"
- Kubernetes and AWS ECS. List the images each workload runs, then run step 5 against each distinct image. PHP Lambda functions ship
vendor/in the deployment package or a layer, so check the artifact you upload.
kubectl get pods -A -o jsonpath='{range .items[*]}{.spec.containers[*].image}{"\n"}{end}' | sort -u
aws ecs describe-task-definition --task-definition <family> --query 'taskDefinition.containerDefinitions[*].image'
- Distribution packages. Debian and Ubuntu ship a
symfonysource package; the table above gives their versions. On a host, check the binary package.
dpkg -l 'php-symfony-filesystem' 2>/dev/null | tail -1
4. How to fix it
- Pick the target. The lowest fixed version for your branch is 5.4.56, 6.4.50, 7.4.23 or 8.1.11 (Symfony advisory). The current Symfony patch releases, 5.4.57, 6.4.51, 7.4.24 and 8.1.12, fix a further set of CVEs from 25 November 2026, so go straight to them (7.4.24 release). Note that the
symfony/filesystempackage itself has no 5.4.57 or 6.4.51 tag on Packagist because the component did not change in those releases; on the 5.4 and 6.4 branches, 5.4.56 and 6.4.50 remain the latest package versions (Packagist). If you are on 6.0 to 6.3, 7.0 to 7.3 or 8.0, there is no fixed release in your branch; move to 6.4, 7.4 or 8.1.
- Update the package. Running
updateon one package with--with-dependenciesalso moves its own dependencies, but not other root requirements (Composer CLI). Run it with--dry-runfirst. These commands changecomposer.lockandvendor/.
composer update symfony/filesystem --with-dependencies --dry-run
composer update symfony/filesystem --with-dependencies
If a parent package's constraint blocks the update, composer why symfony/filesystem names it. Projects on symfony/symfony update that package instead, and projects that pin a Symfony version in extra.symfony.require must raise the pin first.
- Confirm the lock file. Re-run
composer show --locked symfony/filesystemandcomposer audit --locked; the audit must no longer list CVE-2026-135803.
- Rebuild and redeploy. The fix is live once the new
vendor/is in the running container, host or Lambda package. Rebuild the image, roll the Deployment or ECS service, and re-run check step 5 against the image you deployed. If OPcache runs withvalidate_timestampsoff, restart PHP-FPM so the oldPath.phpis not served from cache.
- AssetMapper users. After updating, check
public/and the project root for files you did not put there, then re-runphp bin/console importmap:installon a clean checkout.
- Debian and Ubuntu packages. Debian trixie's
symfonypackage is already 6.4.50. Bookworm and Ubuntu have no fixed package as of 26 November 2026; watch the trackers linked above or install Symfony through Composer.
5. If you cannot patch today
Symfony publishes no workaround; the advisory's only remedy is the upgrade (Symfony advisory). The generic cuts below follow from the shape of the bug and are not vendor guidance:
- Reject any user-supplied path that contains
://before it reachesPath. A legitimate local path never has one. This is an application change you must test yourself. - Do not run
importmap:requireorimportmap:installagainst new or updated remote packages until you have upgraded. - Restrict endpoints that accept file paths to authenticated users and trusted networks.
None of these fix the code. Every caller stays wrong until the package moves.
6. How to tell if you were already hit
Nothing is published. The advisory, the CVE record and Brandefense's write-up give no indicators of compromise, no log signature and no report of attacks; Brandefense notes two dark-web mentions that do not establish exploitation and the CVE's absence from KEV on 24 November (Brandefense).
Two things follow from how the bug works. In access logs, a request whose path parameter contains :// after a directory name is the shape an attack must take. On disk, the advisory's AssetMapper example writes into a directory named x: under public/, so a directory whose name ends in a colon outside assets/vendor is worth a look. If you find either, assume credentials were read from .env or the environment and used from elsewhere, and rotate anything the PHP process could read.
7. How autonomous DevOps handles a bug like this
Check steps 1 and 6 above are inventory questions: which repositories pin symfony/filesystem below 5.4.56, 6.4.50, 7.4.23 or 8.1.11, and which ECS task definitions run the images built from them. Compass, Beamreach's open-source operations agent for AWS, keeps that map current from Composer lockfiles and task definitions, with whether each workload faces the internet, so the answer is a lookup rather than a sweep (Compass). PHP is on its default product list, Composer packages are matched through OSV, and the CVE scores 9.1, above its 7.0 threshold, so a matching finding opens a fix without a click.
Whether that fix is a change its patch pull requests can make depends on how the package arrived. When symfony/filesystem or symfony/symfony is a direct dependency, the fix is a version bump, and the pull request runs the repository's CI, the image build where a Dockerfile changed, and an optional canary on a staging copy comparing health checks, 5xx rate and p95 latency with before (patching docs). Compass never merges. When the package is transitive, the usual case for a Laravel application, Compass does not move it; the finding waits in an inbox for a person to run the composer update above.
Check step 4, finding Path calls that take request input, is a code review Compass does not do. It is AWS only, not Kubernetes clusters as such, and the Debian and Ubuntu trackers it follows have not yet classified this CVE.
For the window before the fix is deployed, a honeytoken fits this bug well. The first thing a path traversal reads is .env and the credentials around it, so a decoy AWS key planted in the task's environment, as a Terraform pull request, trips the moment an attacker uses it, and the policy-gated response restarts the ECS task with a snapshot and an audit entry. That does not fix the vulnerability and catches only an attacker who touches the decoy. Compass is not a WAF and does not block the request that carries the traversal. Our PHP2Shell incident in October 2026 was contained that way in under two minutes (write-up).
8. Sources
- Symfony advisory: https://symfony.com/cve-2026-135803
- GitHub advisory GHSA-6prc-h956-hxjq: https://github.com/symfony/symfony/security/advisories/GHSA-6prc-h956-hxjq
- Fix commit 9441dd5: https://github.com/symfony/symfony/commit/9441dd5f05e78ad898317083828c1acebff586a1
- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-135803
- CVE record JSON: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/135xxx/CVE-2026-135803.json
- NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2026-135803
- OSV entry: https://osv.dev/vulnerability/CVE-2026-135803
- Packagist security advisory feed for symfony/filesystem: https://packagist.org/api/security-advisories/?packages[]=symfony/filesystem
- Symfony 5.4.56 release: https://symfony.com/blog/symfony-5-4-56-released
- Symfony 6.4.50 release: https://symfony.com/blog/symfony-6-4-50-released
- Symfony 7.4.23 release: https://symfony.com/blog/symfony-7-4-23-released
- Symfony 8.1.11 release: https://symfony.com/blog/symfony-8-1-11-released
- Symfony 7.4.24 release: https://symfony.com/blog/symfony-7-4-24-released
- Symfony 6.4.51 release: https://symfony.com/blog/symfony-6-4-51-released
- Symfony releases and maintenance: https://symfony.com/releases
- Symfony Filesystem component, Path utilities: https://symfony.com/doc/current/components/filesystem.html#path-manipulation-utilities
- Symfony AssetMapper, third-party packages: https://symfony.com/doc/current/frontend/asset_mapper.html#importing-3rd-party-javascript-packages
- Composer CLI reference: https://getcomposer.org/doc/03-cli.md
- Packagist, symfony/filesystem releases: https://repo.packagist.org/p2/symfony/filesystem.json
- laravel/framework 12.x composer.json: https://raw.githubusercontent.com/laravel/framework/12.x/composer.json
- laravel/framework 13.x composer.json: https://raw.githubusercontent.com/laravel/framework/13.x/composer.json
- Debian security tracker: https://security-tracker.debian.org/tracker/CVE-2026-135803
- Debian package tracker, symfony: https://tracker.debian.org/pkg/symfony
- Ubuntu security tracker: https://ubuntu.com/security/CVE-2026-135803
- Brandefense, 25 November 2026: https://brandefense.io/knowledge-hub/vulnerabilities/cve-2026-135803/
- Compass patching docs: https://github.com/beamreach-ai/compass/blob/main/docs/patching.md
- PHP2Shell contained in two minutes: https://beamreach.ai/docs/php2shell-contained-in-two-minutes.html
9. FAQ
Is my Symfony application affected by CVE-2026-135803?
If composer show --locked symfony/filesystem prints a version from 5.4.0 up to 5.4.55, 6.0.0 up to 6.4.49, 7.0.0 up to 7.4.22 or 8.0.0 up to 8.1.10, the vulnerable code is installed. Whether it is reachable depends on your code: an attacker needs an endpoint that passes user input through a Path method and then opens the file, or a developer who installs a malicious remote package with AssetMapper.
Does CVE-2026-135803 affect Laravel?
Not through the framework itself. Laravel's laravel/framework package requires Symfony's console, error-handler, finder, http-foundation, http-kernel, mailer, mime, process, routing, uid and var-dumper components plus polyfills, not symfony/filesystem, which it only lists as a suggestion. A Laravel project can still have the package through another dependency; composer why symfony/filesystem shows which one. If no code passes request data to Path, there is no known trigger.
Which Symfony version fixes CVE-2026-135803?
Symfony Filesystem 5.4.56, 6.4.50, 7.4.23 and 8.1.11, published 4 and 5 November 2026. The Symfony patch releases of 25 November 2026, 5.4.57, 6.4.51, 7.4.24 and 8.1.12, include the fix and close a separate batch of CVEs, so target those today; the symfony/filesystem package has no 5.4.57 or 6.4.51 tag of its own, so on those branches 5.4.56 and 6.4.50 are the versions Composer will install. Branches 6.0 to 6.3, 7.0 to 7.3 and 8.0 have no fixed release.
Is CVE-2026-135803 being exploited?
Not as far as anyone has reported by 26 November 2026. CISA's SSVC assessment on 25 November records Exploitation none, the CVE is not in the Known Exploited Vulnerabilities catalogue, and Symfony's advisory says nothing about attacks. The advisory came out on 4 November, twenty days before the CVE record, so the fix has been available for three weeks.
Is there a workaround for the Symfony Path traversal?
No vendor workaround exists. Until you upgrade, rejecting any user-supplied path that contains :// removes the request-handling trigger, and not installing new remote packages with importmap:require removes the AssetMapper case. Both are your own changes to test, not Symfony guidance.
Last checked: 26 November 2026. Written from the vendor advisory and the CVE record, linked below. Confirm against the vendor advisory before acting.
Related: CVE Watch: all pages · How to protect against *2Shell vulnerabilities · Automated patching compared · AWS canary credentials
Beamreach