# CVE-2014-5245: Symfony allows direct access of ESI URLs behind a trusted proxy

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-200
- **Aliases:** GHSA-wvjv-p5rr-mmqm
- **Published:** 2024-05-30T00:46:52.000Z
- **Modified:** 2024-05-30T04:26:51.101Z

## Who should check

- Projects that depend on Packagist package symfony/http-kernel (\>= 2.0.0, \< 2.3.19)
- Projects that depend on Packagist package symfony/symfony (\>= 2.0.0, \< 2.3.19)

## Description

All 2.2.X, 2.3.X, 2.4.X, and 2.5.X versions of the Symfony HttpKernel component are affected by this security issue. Your application is vulnerable only if the ESI feature is enabled and there is a proxy in front of the web application.

This issue has been fixed in Symfony 2.3.19, 2.4.9, and 2.5.4. Note that no fixes are provided for Symfony 2.2 as it is not maintained anymore.

Description
When you enable the ESI feature and when you are using a proxy like Varnish that you configured as a trusted proxy, the \`FragmentHandler\` considered requests to render fragments as coming from a trusted source, even if the client was requesting them directly. Symfony can not distinguish between ESI requests done on behalf of the client by Varnish and faked fragment requests coming directly from the client.

To mitigate this issue, and for not-supported Symfony versions, you can use the following workaround in your Varnish configuration (\`/\_fragment\` being the URL path prefix configured under the \`fragment\` setting of the framework bundle configuration):

 Copy
sub vcl\_recv {
    if (req.restarts == 0 && req.url ~ "^/\_fragment") {
        error 400;
    }
}
Resolution
We do not rely on trusted IPs anymore when validating a fragment request as all fragment URLs are now signed.

The patch for this issue is available here: https://github.com/symfony/symfony/pull/11831

## Affected and fixed versions

- Packagist `symfony/http-kernel`: affected \>= 2.0.0, \< 2.3.19; fixed 2.3.19, 2.4.9, 2.5.4 (osv)
- Packagist `symfony/symfony`: affected \>= 2.0.0, \< 2.3.19; fixed 2.3.19, 2.4.9, 2.5.4 (osv)

## Mitigation

- Upgrade symfony/http-kernel to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).
- Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2014-5245. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2014-5245.md
Affected: symfony/http-kernel >= 2.0.0, < 2.3.19; symfony/symfony >= 2.0.0, < 2.3.19
Fixed in: 2.3.19, 2.4.9, 2.5.4

Steps:
1. Search this machine and project for symfony/http-kernel (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.
```

## FAQ

### Is CVE-2014-5245 being exploited?

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

### How serious is CVE-2014-5245?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2014-5245?

symfony/http-kernel \>= 2.0.0, \< 2.3.19; symfony/symfony \>= 2.0.0, \< 2.3.19.

### Is there a fix for CVE-2014-5245?

Yes. Fixed in 2.3.19, 2.4.9, 2.5.4. Upgrade symfony/http-kernel to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line). Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2014-5245?

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.

## References

- patch: <https://github.com/symfony/symfony/pull/11831>
- patch: <https://github.com/symfony/symfony/commit/654b1f281e09dd96ffbbd3da815411700423ecf5>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2014-5245.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2014-5245.yaml>
- other: <https://symfony.com/cve-2014-5245>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-wvjv-p5rr-mmqm> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2014-5245> · JSON: <https://flawdb.com/api/v1/entries/CVE-2014-5245>
