cvelo
P3 · MediumCVSS 5.3EPSS 0.8%

UrlGenerator Can Still Generate URLs to Another Host: Incomplete Fix for CVE-2026-45065

  • CVE-2026-133746
  • EUVD-2026-135235

Description

The fix for CVE-2026-45065 (GHSA-72xp-p242-47p9) anchored the requirements that UrlGenerator checks parameter values against. That check doesn't run when framework.router.strict_requirements is null, which the routing recipe sets in the prod environment. There, a first placeholder whose value starts with / still gives a protocol-relative URL, as in the original report: path('blog_rss', {_locale: '/evil.com'}) => //evil.com/blog/rss.xml Requirements that accept /, like .+, give such URLs in every environment. Applications are exposed when untrusted values reach these parameters, for example when they pass the query string of the request to path() or url(). A route that uses RedirectController::redirectAction() with keepQueryParams: true does the same, when the target route has a placeholder that the redirecting route doesn't define. UrlGenerator now encodes the leading // of a URL that has no scheme and host as /%2F. It also rejects parameters that add %2E or %2E%2E segments to the path, which browsers resolve like . and ... These checks apply whatever strict_requirements is set to. When strict_requirements is false or null, the generator logs an error and returns an empty string instead of throwing.

Text from the CVE.org record.

Recommendation

  • Symfony symfony/routing

    • If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
    • If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
    • If you run a version from 6.0.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
    • If you run a version before 5.4.57update to 5.4.57 or later
  • Symfony symfony/symfony

    • If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
    • If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
    • If you run a version from 6.0.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
    • If you run a version before 5.4.57update to 5.4.57 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Symfony symfony/routing

    Affected versionsFixed in
    from 8.0.0 to before 8.1.128.1.12
    from 7.0.0 to before 7.4.247.4.24
    from 6.0.0 to before 6.4.516.4.51
    before 5.4.575.4.57
  • Symfony symfony/symfony

    Affected versionsFixed in
    from 8.0.0 to before 8.1.128.1.12
    from 7.0.0 to before 7.4.247.4.24
    from 6.0.0 to before 6.4.516.4.51
    before 5.4.575.4.57

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.