Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/routing
  4. ›
  5. CVE-2026-48784

CVE-2026-48784: Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization

June 15, 2026

Symfony\Component\Routing\Generator\UrlGenerator::doGenerate() percent-encodes . and .. path segments so that the generated URL still resolves to the originating route after RFC 3986 §5.2.4 dot-segment removal (which strict RFC-3986 consumers — routers, reverse proxies, HTTP clients — perform before percent-decoding).

The encoding was implemented as strtr($url, ['/../' => '/%2E%2E/', '/./' => '/%2E/']) plus a trailing-segment fixup. strtr advances past the trailing / of each match, so the next dot-segment in a chained sequence was left unescaped:

InputOutput (before fix)Expected
/../../..//%2E%2E/../%2E%2E//%2E%2E/%2E%2E/%2E%2E/
/foo/../../../bar/foo/%2E%2E/../%2E%2E/bar/foo/%2E%2E/%2E%2E/%2E%2E/bar

When a route exposes a parameter constrained by a permissive requirement (.+, .*, or similar) that accepts dots and slashes, attacker-controlled chained .. or . segments produce a generated URL that, under strict RFC 3986 normalization, collapses to a different path than the originating route. The Twig path() / url() helpers and any server-side use of UrlGenerator are affected. Same class of route round-trip integrity issue as CVE-2026-45065.

Note: WHATWG-conformant browsers treat %2E/%2E%2E as dot-segments during URL parsing, so the encoding never protected browser-side traversal. The defense exists for RFC-3986-conformant consumers; restoring it for chained segments closes the gap there.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2026-48784.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-48784.yaml
  • github.com/advisories/GHSA-h5x3-xfc9-m39h
  • github.com/symfony/symfony/commit/4b63c3a3f7af04ecd79c89a594b0b02a01990b1d
  • github.com/symfony/symfony/security/advisories/GHSA-h5x3-xfc9-m39h
  • nvd.nist.gov/vuln/detail/CVE-2026-48784
  • symfony.com/cve-2026-48784

Code Behaviors & Features

Detect and mitigate CVE-2026-48784 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.4.53, all versions starting from 6.0.0 before 6.4.41, all versions starting from 7.0.0 before 7.4.13, all versions starting from 8.0.0 before 8.0.13

Fixed versions

  • 5.4.53
  • 6.4.41
  • 7.4.13
  • 8.0.13

Solution

Upgrade to versions 5.4.53, 6.4.41, 7.4.13, 8.0.13 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-172: Encoding Error
  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

packagist/symfony/routing/CVE-2026-48784.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:31 +0000.