Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2015-2309

MEDIUM

Symfony has unsafe methods in the Request class

Also known as GHSA-p684-f7fh-jv2j

Mitigation

  • Upgrade symfony/http-foundation to one of 2.3.27, 2.5.11, 2.6.6 (or later in the same release line).
  • Upgrade symfony/symfony to one of 2.3.27, 2.5.11, 2.6.6 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package symfony/http-foundation (>= 2.0.0, < 2.3.27)
  • Projects that depend on Packagist package symfony/symfony (>= 2.0.0, < 2.3.27)

Vulnerability facts

Affected
symfony/http-foundation >= 2.0.0, < 2.3.27; symfony/symfony >= 2.0.0, < 2.3.27
Fixed in
2.3.27, 2.5.11, 2.6.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
CWE
CWE-20
Published
Modified

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](https://github.com/symfony/symfony/pull/14166).

Affected and fixed versions

Package / productAffectedFixedSource
Packagist symfony/http-foundation>= 2.0.0, < 2.3.272.3.27, 2.5.11, 2.6.6osv
Packagist symfony/symfony>= 2.0.0, < 2.3.272.3.27, 2.5.11, 2.6.6osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2015-2309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2015-2309.md
Affected: symfony/http-foundation >= 2.0.0, < 2.3.27; symfony/symfony >= 2.0.0, < 2.3.27
Fixed in: 2.3.27, 2.5.11, 2.6.6

Steps:
1. Search this machine and project for symfony/http-foundation (Packagist), symfony/symfony (Packagist): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2015-2309 being exploited?

There is no confirmed exploitation: CVE-2015-2309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is CVE-2015-2309?

It has no CVSS score yet. Unknown.

Which versions are affected by CVE-2015-2309?

symfony/http-foundation >= 2.0.0, < 2.3.27; symfony/symfony >= 2.0.0, < 2.3.27.

Is there a fix for CVE-2015-2309?

Yes. Fixed in 2.3.27, 2.5.11, 2.6.6. Upgrade symfony/http-foundation to one of 2.3.27, 2.5.11, 2.6.6 (or later in the same release line). Upgrade symfony/symfony to one of 2.3.27, 2.5.11, 2.6.6 (or later in the same release line).

How do I check if I'm affected by CVE-2015-2309?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors