Symfonyにアクセス制限を回避される脆弱性、PHP手前の経路制御が対象
Summary
Symfonyのhttp-foundationで、/index.phpadminのようなURLによりPHPの手前で設定したパス制限を回避される脆弱性が公表されました。影響するのは5.4.50〜5.4.56、6.4.29〜6.4.50、7.3.7〜7.4.23、8.0.0〜8.1.11で、5.4.56、6.4.50、7.4.23、8.1.11に修正版があります。Symfony自身のアクセス制御は対象外ですが、nginxやApacheで/adminを制限している場合は、修正版への更新を急いで検討してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Symfonyのhttp-foundationで、/index.phpadminのようなURLによりPHPの手前で設定したパス制限を回避される脆弱性が公表されました。影響するのは5.4.50〜5.4.56、6.4.29〜6.4.50、7.3.7〜7.4.23、8.0.0〜8.1.11で、5.4.56、6.4.50、7.4.23、8.1.11に修正版があります。Symfony自身のアクセス制御は対象外ですが、nginxやApacheで/adminを制限している場合は、修正版への更新を急いで検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Symfonysymfony/http-foundation |
≥ 5.4.50, < 5.4.56→ 5.4.56 ≥ 6.4.29, < 6.4.50→ 6.4.50 ≥ 7.3.7, < 7.4.23→ 7.4.23 ≥ 8.0.0, < 8.1.11→ 8.1.11 |
5.4.56 6.4.50 7.4.23 8.1.11 |
| Symfonysymfony/symfony |
≥ 5.4.50, < 5.4.56→ 5.4.56 ≥ 6.4.29, < 6.4.50→ 6.4.50 ≥ 7.3.7, < 7.4.23→ 7.4.23 ≥ 8.0.0, < 8.1.11→ 8.1.11 |
5.4.56 6.4.50 7.4.23 8.1.11 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-135801 symfony Fix available
- Ubuntu UBUNTU-CVE-2026-135801 symfony No fixed version in this record
Original description The description as published by the source.
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 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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory symfony.com
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web packagist.org