Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.53, 6.4.41, 7.4.13, and 8.0.13, UrlGenerator::doGenerate() used strtr() dot-segment encoding that skipped every other chained ../ or ./ segment, allowing attacker-controlled route parameters to generate URLs that collapse to a different path under RFC 3986 normalization. This issue is fixed in versions 5.4.53, 6.4.41, 7.4.13, and 8.0.13.
Published: 2026-07-14
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Symfony’s UrlGenerator::doGenerate() performs dot‑segment encoding with an incorrect strtr() routine that skips every other chained '../' or './' segment. As a result, attacker‑controlled route parameters can generate URLs that, after RFC 3986 normalization, collapse to a path that differs from the intended one. This flaw is associated with CWE‑172 (Relative Path Traversal) and CWE‑601 (URL Redirection to Untrusted Site). It does not provide arbitrary code execution.

Affected Systems

Symfony’s Routing component and the core framework are affected. Vulnerable versions are prior to 5.4.53 for Symfony 5, prior to 6.4.41 for Symfony 6, prior to 7.4.13 for Symfony 7, and prior to 8.0.13 for Symfony 8. All earlier releases before those patch versions remain vulnerable.

Risk and Exploitability

The CVSS score of 5.1 positions this vulnerability in the medium severity range. The EPSS score of less than 1% suggests a low probability of exploitation. This vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker could exploit the flaw by crafting a URL that includes repeated dot‑segments such that UrlGenerator produces a path that resolves to an unintended resource. The likely attack vector is remote via HTTP requests.

Generated by OpenCVE AI on August 1, 2026 at 09:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Symfony and the Routing component to the fixed releases 5.4.53, 6.4.41, 7.4.13, or 8.0.13.
  • Validate or sanitize route parameters before passing them to UrlGenerator, stripping or rejecting any sequences that could form chained "../" or "./" segments.
  • Configure strict host and path checks on redirects or generated URLs to prevent navigation to unintended internal or external resources.

Generated by OpenCVE AI on August 1, 2026 at 09:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6312-1 symfony security update
Debian DSA Debian DSA DSA-6317-1 symfony security update
Github GHSA Github GHSA GHSA-h5x3-xfc9-m39h Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization
History

Wed, 15 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 14 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.53, 6.4.41, 7.4.13, and 8.0.13, UrlGenerator::doGenerate() used strtr() dot-segment encoding that skipped every other chained ../ or ./ segment, allowing attacker-controlled route parameters to generate URLs that collapse to a different path under RFC 3986 normalization. This issue is fixed in versions 5.4.53, 6.4.41, 7.4.13, and 8.0.13.
Title Symfony: UrlGenerator Dot-Segment Encoding Skips Every Other Chained `../` or `./` → Generated URL Collapses Off-Route Under RFC 3986 Normalization
Weaknesses CWE-172
CWE-601
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T13:27:22.254Z

Reserved: 2026-05-22T20:18:20.365Z

Link: CVE-2026-48784

cve-icon Vulnrichment

Updated: 2026-07-15T13:23:18.829Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T09:30:03Z

Weaknesses
  • CWE-172

    Encoding Error

  • CWE-601

    URL Redirection to Untrusted Site ('Open Redirect')