Descrizione
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.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.2, EPSS 0.7% (percentile 49).
Versioni da aggiornare
- Symfony symfony/http-foundation: vulnerabili le versioni dalla
5.4.50precedenti alla5.4.56→ aggiornare alla5.4.56o successiva. - Symfony symfony/http-foundation: vulnerabili le versioni dalla
6.4.29precedenti alla6.4.50→ aggiornare alla6.4.50o successiva. - Symfony symfony/http-foundation: vulnerabili le versioni dalla
7.3.7precedenti alla7.4.23→ aggiornare alla7.4.23o successiva. - Symfony symfony/http-foundation: vulnerabili le versioni dalla
8.0.0precedenti alla8.1.11→ aggiornare alla8.1.11o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
5.4.50precedenti alla5.4.56→ aggiornare alla5.4.56o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
6.4.29precedenti alla6.4.50→ aggiornare alla6.4.50o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
7.3.7precedenti alla7.4.23→ aggiornare alla7.4.23o successiva. - Symfony symfony/symfony: vulnerabili le versioni dalla
8.0.0precedenti alla8.1.11→ aggiornare alla8.1.11o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Non esporre l'interfaccia di gestione su Internet: consentire l'accesso solo da reti fidate e verificare la presenza di account, sessioni o chiavi non autorizzate.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Symfony | symfony/http-foundation | ≥ 5.4.50 < 5.4.56 | 5.4.56 |
| Symfony | symfony/http-foundation | ≥ 6.4.29 < 6.4.50 | 6.4.50 |
| Symfony | symfony/http-foundation | ≥ 7.3.7 < 7.4.23 | 7.4.23 |
| Symfony | symfony/http-foundation | ≥ 8.0.0 < 8.1.11 | 8.1.11 |
| Symfony | symfony/symfony | ≥ 5.4.50 < 5.4.56 | 5.4.56 |
| Symfony | symfony/symfony | ≥ 6.4.29 < 6.4.50 | 6.4.50 |
| Symfony | symfony/symfony | ≥ 7.3.7 < 7.4.23 | 7.4.23 |
| Symfony | symfony/symfony | ≥ 8.0.0 < 8.1.11 | 8.1.11 |