CVE-2019-18889: Remote Code Injection in Symfony Cache

symfony/cache Updated 02 Oct 2025

Summary

02/12/2019
Yes i
Critical
9.8

CVE-2019-18889: Symfony Unsafe Cache Serialization Could Enable RCE. Affects symfony/cache across 3 version ranges.

>= 3.1.0, < 3.4.35 >= 4.0.0, < 4.2.12 >= 4.3.0, < 4.3.8

Fixed in 3.4.35, 4.2.12 or 4.3.8, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2019-18889 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Symfony Cache is a component of the Symfony framework that provides a flexible and efficient way to store and retrieve data. It offers various cache adapters to support different storage systems. However, versions 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7 of Symfony Cache are vulnerable to remote code injection.

Vulnerability Detail

The vulnerability arises from the serialization of certain cache adapter interfaces. An attacker can exploit this by injecting malicious code during the deserialization process, leading to remote code execution. The impact of this vulnerability is critical, as it allows an attacker to execute arbitrary code on the affected system.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.1.0, < 3.4.35 3.4.35
    composer require symfony/cache:3.4.35
  • >= 4.0.0, < 4.2.12 4.2.12
    composer require symfony/cache:4.2.12
  • >= 4.3.0, < 4.3.8 4.3.8
    composer require symfony/cache:4.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to apply the recommended fixes as soon as possible.

Conclusion

In conclusion, the vulnerability in Symfony Cache allows for remote code injection, which can have severe consequences. It is essential to upgrade to the fixed versions of Symfony Cache to mitigate this vulnerability. For further assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for symfony/cache →

Share this vulnerability

FAQ

Symfony Cache is a component of the Symfony framework that provides a flexible and efficient way to store and retrieve data.

Versions 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7 of Symfony Cache are affected.

The impact of this vulnerability is critical, as it allows an attacker to execute arbitrary code on the affected system.

To fix this vulnerability, it is recommended to upgrade to the fixed versions of Symfony Cache.

There is no known workaround for this vulnerability. It is crucial to apply the recommended fixes as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for symfony/cache.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.1.0, < 3.4.35 3.4.35
    composer require symfony/cache:3.4.35
  • >= 4.0.0, < 4.2.12 4.2.12
    composer require symfony/cache:4.2.12
  • >= 4.3.0, < 4.3.8 4.3.8
    composer require symfony/cache:4.3.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback