CVE-2023-46734
JSON

6.1medium

Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters

Severity
6.1medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.73% (higher than 50% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q847-2q57-wmr3BIT-SYMFONY-2023-46734

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

Product or packageVersionsReported by
symfony symfony>= 2.0.0, < 4.4.51, >= 5.0.0, < 5.4.31, >= 6.0.0, < 6.3.8CVE List
symfony/twig-bridge (Packagist)from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8GitHub Advisory Database
symfony/symfony (Packagist)from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8GitHub Advisory Database
debian debian_linux10.0NVD
sensiolabs symfonyfrom 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8NVD
symfony twig-bridgefrom 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8NVD
symfony (Bitnami)from 2.0.0 before 4.4.51, from 5.0.0 before 5.4.31, from 6.0.0 before 6.3.8Bitnami Vulnerability Database

All scores

GitHub_M6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Description

Some Twig filters in CodeExtension use "is_safe=html" but don't actually ensure their input is safe.

Resolution

Symfony now escapes the output of the affected filters.

The patch for this issue is available here for branch 4.4.

Credits

We would like to thank Pierre Rudloff for reporting the issue and to Nicolas Grekas for providing the fix.

NVD (es)

Symfony es un framework PHP para aplicaciones web y de consola y un conjunto de componentes PHP reutilizables. A partir de las versiones 2.0.0, 5.0.0 y 6.0.0 y anteriores a las versiones 4.4.51, 5.4.31 y 6.3.8, algunos filtros Twig en CodeExtension usan `is_safe=html` pero en realidad no garantizan su la entrada es segura. A partir de las versiones 4.4.51, 5.4.31 y 6.3.8, Symfony ahora escapa a la salida de los filtros afectados.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-46734 changed 2025-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-q847-2q57-wmr3 changed 2026-09-10CC-BY-4.0
NVDCVE-2023-46734 changed 2026-07-29Public domain
Bitnami Vulnerability DatabaseBIT-SYMFONY-2023-46734 changed 2024-03-06Apache-2.0