High

Code injection in the way Symfony implements translation caching in FrameworkBundle

  • Disclosed: 30.05.2024
  • Updated: 11.10.2026 10:22

When investigating issue #11093, Jeremy Derussé 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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package symfony/framework-bundle >= 2.0.0, < 2.3.18, >= 2.4.0, < 2.4.8, >= 2.5.0, < 2.5.2 2.3.18, 2.4.8, 2.5.2
Composer package symfony/symfony >= 2.0.0, < 2.3.19, >= 2.4.0, < 2.4.9, >= 2.5.0, < 2.5.4 2.3.19, 2.4.9, 2.5.4

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-94
Platform
Composer
Package
symfony/framework-bundle, symfony/symfony
Disclosed
30.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-wfv7-5x33-v22h - CC BY 4.0

Vulnerability history: symfony/framework-bundle

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
11.2019 05.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 1

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 0
  4. 2022: 1
  5. 2023: 0
  6. 2024: 1
  7. 2025: 0
  8. 2026: 0
  1. Code injection in the way Symfony implements translation caching in FrameworkBundle this entry
    High · 7.5 CVE-2014-4931 >= 2.0.0, < 2.3.18, >= 2.4.0, < 2.4.8, >= 2.5.0, < 2.5.2 2.3.18, 2.4.8, 2.5.2
  2. High · 8.1 CVE-2022-23601 >= 5.3.14, < 5.3.15, >= 5.4.3, < 5.4.4, >= 6.0.3, < 6.0.4 5.3.15, 5.4.4, 6.0.4
  3. Medium · 5.4 CVE-2019-10909 >= 2.7.0, < 2.7.51, >= 2.8.0, < 2.8.50, >= 3.0.0, < 3.4.26, >= 4.0.0, < 4.1.12, >= 4.2.0, < 4.2.7 2.7.51, 2.8.50, 3.4.26, 4.1.12, 4.2.7

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.