Feed
–MEDIUM
GHSA-vfm6-r2gc-pwwwSymfony2 security issue when the trust proxy mode is enabled
A medium-severity vulnerability, without a CVSS score in our data. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- –
- not in our data
- Fix
- Named by a source
- Advisory published 30 May 2024
Reference
None of the "Needs attention" rules apply right now.
No EPSS score: unknown · Severity medium, no CVSS score in our data (+17)
Immediate actions
- symfony/http-foundation (Packagist): upgrade to 2.0.19 / 2.1.4 or later on your release line.
- symfony/symfony (Packagist): upgrade to 2.0.19 / 2.1.4 or later on your release line.
- Commit / pull request: https://github.com/symfony/http-foundation/commit/5cde5229fc71a19cef2a0a933a18e08e43252f34
- Commit / pull request: https://github.com/symfony/http-foundation/commit/795ac45c188ee2a729db4513e9dfd30b16a0ed35
- Commit / pull request: https://github.com/symfony/symfony/commit/9ce892cf4395e73b136e9b5cd1fae9e91995c93b
- Commit / pull request: https://github.com/symfony/symfony/commit/e5536f0fe10421da7ebbe0071343e94d039dfb97
Who should check
symfony/http-foundation (Packagist) pkg:composer/symfony/http-foundation
- Affected>= 2.0.0, < 2.0.19Fixed in2.0.19OSV (GHSA-vfm6-r2gc-pwww)
- Affected>= 2.1.0, < 2.1.4Fixed in2.1.4OSV (GHSA-vfm6-r2gc-pwww)
symfony/symfony (Packagist) pkg:composer/symfony/symfony
- Affected>= 2.0.0, < 2.0.19Fixed in2.0.19OSV (GHSA-vfm6-r2gc-pwww)
- Affected>= 2.1.0, < 2.1.4Fixed in2.1.4OSV (GHSA-vfm6-r2gc-pwww)
Confirmed facts
- Severity
- MEDIUM (no CVSS score in our data)
Unknowns
- No CVSS score in our data. That says nothing about how bad it is, nor that none is published.
- No EPSS score in our data.
Advisory text
Quoted from the source advisory (untrusted)An application is vulnerable if it uses the client IP address as returned by the Request::getClientIp() method for sensitive decisions like IP based access control. To fix this security issue, the following changes have been made to all versions of Symfony2: A new Request::setTrustedProxies() method has been introduced and should be used intead of Request::trustProxyData() to enable the trust proxy mode. It takes an array of trusted proxy IP addresses as its argument: ``` // before (probably in your front controller script) Request::trustProxyData(); // after Request::setTrustedProxies(array('1.1.1.1')); // 1.1.1.1 being the IP address of a trusted reverse proxy ``` The Request::trustProxyData() method has been deprecated (when used, it automatically trusts the latest proxy in the chain -- which is the current remote address): ``` Request::trustProxyData(); // is equivalent to Request::setTrustedProxies(array($request->server->get('REMOTE_ADDR'))); ``` We encourage all Symfony2 users to upgrade as soon as possible. It you don't want to upgrade to the latest version yet, you can also apply the following patches: - [Patch](https://github.com/symfony/symfony/compare/fc89d6b...9ce892c.patch) for Symfony 2.0.19 - [Patch](https://github.com/symfony/symfony/compare/922c201...e5536f0.patch) for Symfony 2.1.4
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- commit / pull requesthttps://github.com/symfony/http-foundation/commit/5cde5229fc71a19cef2a0a933a18e08e43252f34
- commit / pull requesthttps://github.com/symfony/http-foundation/commit/795ac45c188ee2a729db4513e9dfd30b16a0ed35
- commit / pull requesthttps://github.com/symfony/symfony/commit/9ce892cf4395e73b136e9b5cd1fae9e91995c93b
- commit / pull requesthttps://github.com/symfony/symfony/commit/e5536f0fe10421da7ebbe0071343e94d039dfb97
- otherhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/2012-11-29.yaml
- otherhttps://symfony.com/blog/security-release-symfony-2-0-19-and-2-1-4
Sources
- GHSA-vfm6-r2gc-pwww (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 8 min ago · osv 8 min ago · nvd 37 min ago · epss 68 min ago · JSON · ask via MCP: explain_vulnerability