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
Priority
No score, medium severity
how it is computed
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

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

Sources

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