NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-50345: Symfony vulnerable to open redirect via browser-sanitized URLs

lowCVSS 4.0 2.3 · 3.1 3.1GHSA-mrqx-rp3w-jpjp

Description The Request class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the Request class to redirect users to another domain. Resolution The Request::create methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/ The patch for this issue is available here for branch 5.4.

Published Nov 6, 2024 · Updated Nov 3, 2025

Affected packages

symfony/http-foundation

Ecosystem
Composer (PHP)
Affected
< 5.4.46
Fixed in
5.4.46
Check
composer show symfony/http-foundation

symfony/http-foundation

Ecosystem
Composer (PHP)
Affected
>= 6.0.0, < 6.4.14
Fixed in
6.4.14
Check
composer show symfony/http-foundation

symfony/http-foundation

Ecosystem
Composer (PHP)
Affected
>= 7.0.0, < 7.1.7
Fixed in
7.1.7
Check
composer show symfony/http-foundation

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Description

The Request class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the Request class to redirect users to another domain.

Resolution

The Request::create methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/

The patch for this issue is available here for branch 5.4.

Credits

We would like to thank Sam Mush - IPASSLab && ZGC Lab for reporting the issue and Nicolas Grekas for providing the fix.

Credited to nicolas-grekas, zer0yu.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries