Skip to content
OpenAdvisories
Medium · 6.1 CVE-2023-46734 BIT-symfony-2023-46734EUVD-2023-3016GHSA-q847-2q57-wmr3

Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters

Published Nov 10, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References