CVE-2015-2309
[Unsafe methods in the Request class]
Overview
Description
All 2.0.X, 2.1.X, 2.2.X, 2.3.X, 2.4.X, 2.5.X, and 2.6.X versions of the Symfony HttpFoundation component are affected by this security issue.
This issue has been fixed in Symfony 2.3.27, 2.5.11, and 2.6.6. Note that no fixes are provided for Symfony 2.0, 2.1, 2.2, and 2.4 as they are not maintained anymore.
Description
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(), and getHost(), and getClientIps().
Resolution
All impacted methods now check that the remote address is trusted, which fixes the issue.
The patch for this issue is available here.
Source: OX vulnerability database
Severity
5.3 · MEDIUM
CVSS 3.1 base score, scored by GitHub.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Composer (PHP) | symfony/http-foundation | >=2.0.0, <2.3.27>=2.4.0, <2.5.11>=2.6.0, <2.6.6>=2.0.0, <2.1.0>=2.1.0, <2.2.0+4 more | 2.3.272.5.112.6.6 |
| Composer (PHP) | symfony/symfony | >=2.0.0, <2.3.27>=2.4.0, <2.5.11>=2.6.0, <2.6.6>=2.5.0, <2.5.11>=2.0.0, <2.1.0+4 more | 2.3.272.5.112.6.6 |
Open a package to see all its vulnerabilities.
Operating systems · 5 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | symfony | 2.3.21+dfsg-4 |
| 12 | symfony | 2.3.21+dfsg-4 |
| 13 | symfony | 2.3.21+dfsg-4 |
| 14 | symfony | 2.3.21+dfsg-4 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| symfony | 2.3.21+dfsg-4 |
References
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2015-2309.yaml
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-2309.yaml
- github.com https://github.com/symfony/symfony/commit/6c73f0ce9302a0091bbfbb96f317e400ce16ef84
- github.com https://github.com/symfony/symfony/pull/14166
- symfony.com https://symfony.com/cve-2015-2309
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.