Symfony 4.2.0 to 4.2.11 and 4.3.0 to 4.3.7 versions of the Symfony VarExporter component are affected by this security issue.
The issue has been fixed in Symfony 4.2.12 and 4.3.8.
Description
Some strings were not properly escaped when being dumped by the VarExporter component. The VarExporter is notably used by the Symfony Cache Component PhpFilesAdapter and PhpArrayAdapter adapters.
Resolution
The escaping logic has been fixed to work for any strings.
The patch for this issue is available here for branch 4.2.
Credits
I would like to thank Seung Woo Yuk (xtac) for reporting & Nicolas Grekas for identifying & fixing the issue.
Have found a security issue in Symfony? Send the details to
security [at] symfony.com and don't
disclose it publicly until we can provide a fix for it.
As with any Open-Source project, contributing
code or documentation is the most common way to help, but we also have a wide range of
sponsoring opportunities.