Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Starting in versions 2.0.0, 5.0.0, and 6.0.0 and prior to versions 4.4.51, 5.4.31, and 6.3.8, some Twig filters in CodeExtension use `is_safe=html` but don't actually ensure their input is safe. As of versions 4.4.51, 5.4.31, and 6.3.8, Symfony now escapes the output of the affected filters.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| symfony | symfony | >= 2.0.0, < 4.4.51, >= 5.0.0, < 5.4.31, >= 6.0.0, < 6.3.8 | — |
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 | 5.4.31+dfsg-1 | — |
| Debian 13 | symfony | 5.4.31+dfsg-1 | — |
| Debian 12 | symfony | 5.4.23+dfsg-1+deb12u1 | — |
| Debian 10 | symfony | 3.4.22+dfsg-2+deb10u3 | DLA-3664-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | symfony | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | symfony | 6.4.5+dfsg-3ubuntu3+esm1 | USN-7272-1 |
| Ubuntu Pro 22.04 LTS | symfony | 5.4.4+dfsg-1ubuntu8+esm1 | USN-7272-1 |
| Ubuntu Pro 20.04 LTS | symfony | 4.3.8+dfsg-1ubuntu1+esm2 | USN-7272-1 |
| Ubuntu Pro 18.04 LTS | symfony | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/symfony | >= 2.0.0, < 4.4.51 | 4.4.51 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/symfony | >= 5.0.0, < 5.4.31 | 5.4.31 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/symfony | >= 6.0.0, < 6.3.8 | 6.3.8 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | >= 2.0.0, < 4.4.51 | 4.4.51 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | >= 5.0.0, < 5.4.31 | 5.4.31 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | >= 6.0.0, < 6.3.8 | 6.3.8 | GHSA-q847-2q57-wmr3 |
Advisories 2
- USN-7272-1 symfony vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3664-1 symfony - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3
- https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54
- https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c
- https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html