Description
An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. The VarExport component incorrectly escapes strings, allowing some specially crafted ones to escalate to execution of arbitrary PHP code. This is related to symfony/var-exporter.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | symfony | 4.3.8+dfsg-1 | — |
| Debian 13 | symfony | 4.3.8+dfsg-1 | — |
| Debian 12 | symfony | 4.3.8+dfsg-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/symfony | >= 4.2.0, < 4.2.12 | 4.2.12 | GHSA-w4rc-rx25-8m86 |
| Packagist | symfony/symfony | >= 4.3.0, < 4.3.8 | 4.3.8 | GHSA-w4rc-rx25-8m86 |
| Packagist | symfony/var-exporter | >= 4.2.0, < 4.2.12 | 4.2.12 | GHSA-w4rc-rx25-8m86 |
| Packagist | symfony/var-exporter | >= 4.3.0, < 4.3.8 | 4.3.8 | GHSA-w4rc-rx25-8m86 |