Advisory

GHSA-wfv7-5x33-v22h

Also known as: CVE-2014-4931

Summary

Code injection in the way Symfony implements translation caching in FrameworkBundle

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-05-30 00:21 UTC
Modified
2024-05-30 00:41 UTC

Affected packages and fixes

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.18 (ecosystem)

Fixed versions

2.3.18

Fix

The export has no generic command for this ecosystem.

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.4.8 (ecosystem)

Fixed versions

2.4.8

Fix

The export has no generic command for this ecosystem.

symfony/framework-bundle

Packagist · All systems

Affected

  • introduced 2.5.0, fixed 2.5.2 (ecosystem)

Fixed versions

2.5.2

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.3.19 (ecosystem)

Fixed versions

2.3.19

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.4.9 (ecosystem)

Fixed versions

2.4.9

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 2.5.0, fixed 2.5.4 (ecosystem)

Fixed versions

2.5.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences