PT-2026-44134 · Symfony · Symfony
CVE-2026-45065
·
Published
2026-05-21
·
Updated
2026-07-14
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Symfony versions prior to 5.4.25
Description
The
UrlGenerator class, used by Twig path() and url() helpers, fails to properly anchor regular expressions when validating path parameters that use alternations. The validation pattern is constructed as '#^'.$req.'$#', which causes the ^ and $ anchors to apply only to the first and last alternatives. This allows values containing any of the middle alternatives to be accepted as valid. For example, a value like /evil.com could satisfy a requirement containing vi, resulting in the generation of a protocol-relative URL that redirects the browser to an external site.Recommendations
Update to version 5.4.25 or later.
Exploit
Fix
Open Redirect
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Symfony