Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/http-foundation
  4. ›
  5. CVE-2015-2309

CVE-2015-2309: Unsafe methods in the Request class

April 1, 2015

The Symfony\Component\HttpFoundation\Request class provides a mechanism that ensures it does not trust HTTP header values coming from a “non-trusted” client. Unfortunately, it assumes that the remote address is always a trusted client if at least one trusted proxy is involved in the request; this allows a man-in-the-middle attack between the latest trusted proxy and the web server. The following methods are impacted: getPort(), isSecure(), getHost() and getClientIps().

References

  • symfony.com/blog/cve-2015-2309-unsafe-methods-in-the-request-class

Code Behaviors & Features

Detect and mitigate CVE-2015-2309 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.27, all versions starting from 2.4.0-alpha before 2.5.11, all versions starting from 2.6.0-alpha before 2.6.6

Fixed versions

  • v2.3.27
  • v2.5.11
  • v2.6.6

Solution

Upgrade to versions v2.3.27, v2.5.11, v2.6.6 or above.

Source file

packagist/symfony/http-foundation/CVE-2015-2309.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.