CVE-2014-4931
Code injection in the way Symfony implements translation caching in FrameworkBundle
Also known as GHSA-wfv7-5x33-v22h
Mitigation
- Upgrade symfony/framework-bundle to one of 2.3.18, 2.4.8, 2.5.2 (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).
Who should check
- Projects that depend on Packagist package symfony/framework-bundle (>= 2.0.0, < 2.3.18)
- Projects that depend on Packagist package symfony/symfony (>= 2.0.0, < 2.3.19)
Vulnerability facts
- Affected
- symfony/framework-bundle >= 2.0.0, < 2.3.18; symfony/symfony >= 2.0.0, < 2.3.19
- Fixed in
- 2.3.18, 2.4.8, 2.5.2, 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
When investigating issue [#11093](https://github.com/symfony/symfony/issues/11093), [Jeremy Derussé](https://connect.sensiolabs.com/profile/jderusse) found a serious code injection issue in the way Symfony implements translation caching in FrameworkBundle. - Your Symfony application is vulnerable if you meet the following conditions: - You are using the Symfony translation system from FrameworkBundle (so basically if you are using Symfony full-stack -- you are not affected if you are using the Translation component with Silex for instance); You don't sanitize locales coming from a URL (any route with a _locale argument for instance): When vulnerable, an attacker can submit a non-valid locale value that can contain some PHP code that will be executed by Symfony. That's because the locale value is dumped into a PHP file generated in the cache without being sanitized first.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/framework-bundle | >= 2.0.0, < 2.3.18 | 2.3.18, 2.4.8, 2.5.2 | osv |
| Packagist symfony/symfony | >= 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-4931. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2014-4931.md Affected: symfony/framework-bundle >= 2.0.0, < 2.3.18; symfony/symfony >= 2.0.0, < 2.3.19 Fixed in: 2.3.18, 2.4.8, 2.5.2, 2.3.19, 2.4.9, 2.5.4 Steps: 1. Search this machine and project for symfony/framework-bundle (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
Other
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/framework-bundle/CVE-2014-4931.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2014-4931.yaml
- https://symfony.com/blog/security-releases-cve-2014-4931-symfony-2-3-18-2-4-8-and-2-5-2-released
FAQ
Is CVE-2014-4931 being exploited?
There is no confirmed exploitation: CVE-2014-4931 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2014-4931?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2014-4931?
symfony/framework-bundle >= 2.0.0, < 2.3.18; symfony/symfony >= 2.0.0, < 2.3.19.
Is there a fix for CVE-2014-4931?
Yes. Fixed in 2.3.18, 2.4.8, 2.5.2, 2.3.19, 2.4.9, 2.5.4. Upgrade symfony/framework-bundle to one of 2.3.18, 2.4.8, 2.5.2 (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-4931?
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.