Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass

Description

Description

The Request class improperly interprets some PATH_INFO in a way that leads to representing some URLs with a path that doesn't start with a /. This can allow bypassing some access control rules that are built with this /-prefix assumption.

Resolution

The Request class now ensures that URL paths always start with a /.

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

Credits

We would like to thank Andrew Atkinson for discovering the issue, Chris Smith for reporting it and Nicolas Grekas for providing the fix.

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2025-11-12 21:50:37 UTC
Updated
2025-11-15 03:13:32 UTC
GitHub reviewed
2025-11-12 21:50:37 UTC
NVD published
2025-11-12

EPSS Score

Score Percentile
1.84% 83.00%

CVSS Scores

Base score Version Severity Vector
7.3 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.

Identifiers

CWEs

CWE id Name
CWE-647 Use of Non-Canonical URL Paths for Authorization Decisions

Credits

  • cs278 (reporter)
  • nicolas-grekas (remediation_developer)

Affected packages (6)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
composer symfony/http-foundation < 5.4.50 5.4.50
composer symfony/http-foundation >= 6.0.0, < 6.4.29 6.4.29
composer symfony/http-foundation >= 7.0.0, < 7.3.7 7.3.7
composer symfony/symfony >= 2.0.0, < 5.4.50 5.4.50
composer symfony/symfony >= 6.0.0, < 6.4.29 6.4.29
composer symfony/symfony >= 7.0.0, < 7.3.7 7.3.7

References

cvelogic Threat Intelligence