CVE-2014-6072
Symfony Cross-Site Request Forgery vulnerability in the Web Profiler
Also known as GHSA-v35g-4rrw-h4fw
Mitigation
- Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).
- Upgrade symfony/web-profiler-bundle to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/symfony (>= 2.0.0, < 2.3.19)
- Projects that depend on Packagist package symfony/web-profiler-bundle (>= 2.0.0, < 2.3.19)
Vulnerability facts
- Affected
- symfony/symfony >= 2.0.0, < 2.3.19; symfony/web-profiler-bundle >= 2.0.0, < 2.3.19
- Fixed in
- 2.3.19, 2.4.9, 2.5.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- CWE
- CWE-94
- Modified
Description
All 2.0.X, 2.1.X, 2.2.X, 2.3.X, 2.4.X, and 2.5.X versions of the Symfony WebProfiler bundle are affected by this security issue. 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.0, 2.1, and 2.2 as they are not maintained anymore. ### Description The Symfony Web Profiler is a great development tool, but it should not be enabled on production servers. If it is enabled in production, it must be properly secured so that only authorized people have access to it. Developers must be very cautious about this as the Web Profiler gives many sensitive information about a Symfony project and any attackers can exploit many of them. Just to name a few sensitive information: user logins, user cookies, executed SQL statements, ... That being said, the import/export feature of the web profiler is exploitable even if the Web Profiler is secured as the form to import a profiler is not protected against CSRF attacks. Combined with the fact that profiles are imported as a PHP serialized string, it makes your application vulnerable to code injection. ### Resolution As the import/export feature of the Web Profiler is not that useful, and because PHP `serialize/unserialize` functions have a long history of vulnerabilities, I decided to remove this feature from the Web interface and move it as CLI commands. If you were relying on this feature, you now need to use the `profiler:import` and `profiler:export` Symfony commands provided by the WebProfiler bundle from the command line interface. Those commands are not enabled by default and must be activated explicitly. For Symfony 2.4+, you can import them in your `app/config.yml` configuration file: ``` import: - { resource: "%kernel.root_dir%/../vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/config/commands.xml" } ``` For Symfony 2.3, you can use the following snippet of code in `app/console`: ``` $kernel = new AppKernel($env, $debug); $application = new Application($kernel); if ($kernel->getContainer()->has('profiler')) { $profiler = $kernel->getContainer()->get('profiler'); $application->add(new ImportCommand($profiler)); $application->add(new ExportCommand($profiler)); } $application->run($input); ``` At this point, I want to reiterate that you should never enable the Symfony Web Profiler on your production servers as this is a development tool. And if you need to enable it, double-check that it is properly secured. The patch for this issue is available here: https://github.com/symfony/symfony/pull/11832
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/symfony | >= 2.0.0, < 2.3.19 | 2.3.19, 2.4.9, 2.5.4 | osv |
| Packagist symfony/web-profiler-bundle | >= 2.0.0, < 2.3.19 | 2.3.19, 2.4.9, 2.5.4 | osv |
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-2014-6072. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2014-6072.md Affected: symfony/symfony >= 2.0.0, < 2.3.19; symfony/web-profiler-bundle >= 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/symfony (Packagist), symfony/web-profiler-bundle (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
Patches
FAQ
Is CVE-2014-6072 being exploited?
There is no confirmed exploitation: CVE-2014-6072 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2014-6072?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2014-6072?
symfony/symfony >= 2.0.0, < 2.3.19; symfony/web-profiler-bundle >= 2.0.0, < 2.3.19.
Is there a fix for CVE-2014-6072?
Yes. Fixed in 2.3.19, 2.4.9, 2.5.4. Upgrade symfony/symfony to one of 2.3.19, 2.4.9, 2.5.4 (or later in the same release line). Upgrade symfony/web-profiler-bundle 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-6072?
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.