Skip to content
Laskyr

symfony/http-foundation security advisory

CVE-2026-135801: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name in symfony/http-foundation

CVE-2026-135801 is an authentication bypass vulnerability in the PHP package symfony/http-foundation, published 24 November 2026. It is fixed in 5.4.56, 6.4.50, 7.4.23 and 8.1.11, one per release line; earlier versions on each line are affected.

published 2026-11-24

Not scored yet

Fixed in symfony/http-foundation 5.4.56, 6.4.50, 7.4.23 and 8.1.11

This authentication bypass issue affects symfony/http-foundation in 4 release lines: >= 5.4.50, < 5.4.56; >= 6.4.29, < 6.4.50; >= 7.3.7, < 7.4.23; >= 8.0.0, < 8.1.11. Upgrade to the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11). The newest release, 8.2.0, is not affected.

Affected versions
>= 5.4.50, < 5.4.56
>= 6.4.29, < 6.4.50
>= 7.3.7, < 7.4.23
>= 8.0.0, < 8.1.11
Fixed in
5.4.56, 6.4.50, 7.4.23, 8.1.11
Newest release
8.2.0
Type
Authentication bypass
CWE-288, CWE-436
Exploited in the wild
Not on the CISA KEV list
checked 2026-11-29

Also affects

The same advisory covers another package in our list. Fix whichever one your project installs.

Is your symfony/http-foundation version affected?

Run composer show symfony/http-foundation in your project, then enter the version. We check it against this and every other known symfony/http-foundation advisory.

Who can exploit CVE-2026-135801

The record does not say what access is needed yet. Until it is scored, assume anyone who can reach your app can try it.

Your app is only exposed if it uses the affected part of symfony/http-foundation. The advisory below says which part that is. If you are not sure, upgrade anyway: it costs less than finding out.

Technical details

Weakness

Authentication bypass CWE-288CWE-436

A flaw in the login or identity check lets someone be treated as logged in, or as another user, without valid credentials.

An attacker may gain access to accounts, potentially including administrators.

General description of this issue type. The advisory below covers this bug.

How to fix CVE-2026-135801 in symfony/http-foundation

  1. Find the installed version: composer show symfony/http-foundation. If you never required it yourself, composer why symfony/http-foundation shows which package pulls it in.
  2. Update it: composer update symfony/http-foundation --with-all-dependencies. You need the fixed version for your release line (5.4.56, 6.4.50, 7.4.23 and 8.1.11).
  3. If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example "symfony/http-foundation": "^8.1.11" if you can take that version), or upgrade the package that requires it.
  4. Run composer audit. It reads the same advisory data and should no longer list CVE-2026-135801.
  5. Commit composer.lock and deploy it. On the server, run composer install --no-dev from the lock file, not composer update.

If you cannot upgrade yet

General hardening for authentication bypass issues while the upgrade waits. None of it replaces the fix.

Is your project exposed to CVE-2026-135801?

Check the one package here, or check everything your project installs at once.

  1. Check symfony/http-foundation Enter your installed version and compare it with every known symfony/http-foundation advisory. Check my version
  2. Check your whole composer.lock The free checker compares every locked package with the same advisory data composer audit uses. Check composer.lock

The CVE-2026-135801 advisory

Since the fix for CVE-2025-64500, Request::getPathInfo() strips the script name from the start of the URL. It does so even when the script name is only the start of a longer path segment. With SCRIPT_NAME set to /index.php, a request to /index.phpadmin gets the path info /admin and is routed like /admin. Encoded spellings such as /index%2Ephpadmin or /%69ndex.phpadmin work too. Before that fix, the path info was admin, which no route matched. Rules enforced by Symfony are not affected: access_control and firewalls read the same path info as the router. Rules enforced in front of PHP are. The nginx configuration of the Symfony documentation and the .htaccess file of symfony/apache-pack make /index.php/admin unreachable, but they pass /index.phpadmin to the front controller. So a location /admin block in nginx, a <Location /admin> section in Apache, or a CDN or WAF rule on /admin can be bypassed. The script name is now stripped only when it is followed by /, ? or the end of the URL. A request to /index.phpadmin gets the path info /index.phpadmin.

Description from the CVE record, via the NVD entry for CVE-2026-135801. Advisory title: “CVE-2026-135801: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name”.

References

Other symfony/http-foundation advisories

Related

Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.

Ask about a fix

Where this data comes from

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.