GHSA-hx53-jchx-cr52: Symfony2 improper IP based access control
5.9
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/30/2024
Updated
5/30/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| symfony/symfony | composer | >= 2.0.0, < 2.0.19 | 2.0.19 |
| symfony/symfony | composer | >= 2.1.0, < 2.1.4 | 2.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using trustProxyData() which automatically trusts the immediate proxy (REMOTE_ADDR) without validation. When combined with getClientIp(), this allows attackers to spoof X-Forwarded-For headers if the application isn't behind a properly configured trusted proxy. The security patches replace trustProxyData() with setTrustedProxies() requiring explicit proxy IPs, confirming these functions' role in the vulnerability.