Vulnerability · Published Nov 10, 2023 · Assigned by GitHub_M
CVE-2023-46734Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters
Medium 6.1
In plain English
A medium-severity cross-site scripting in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | symfony | 5.4.23+dfsg-1+deb12u1 | DEBIAN-CVE-2023-46734 |
| Debian:13 | symfony | 5.4.31+dfsg-1 | DEBIAN-CVE-2023-46734 |
| Debian:14 | symfony | 5.4.31+dfsg-1 | DEBIAN-CVE-2023-46734 |
| Packagist | symfony/symfony | 5.4.31 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/symfony | 4.4.51 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/symfony | 6.3.8 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | 4.4.51 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | 6.3.8 | GHSA-q847-2q57-wmr3 |
| Packagist | symfony/twig-bridge | 5.4.31 | GHSA-q847-2q57-wmr3 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3 x_refsource_CONFIRM
- https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54 x_refsource_MISC
- https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html