CVE-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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 5.4.31+dfsg-1 |
| sid | Fixed | 5.4.31+dfsg-1 |
| forky | Fixed | 5.4.31+dfsg-1 |
| bullseye | Fixed | 4.4.19+dfsg-2+deb11u4 |
| bookworm | Fixed | 5.4.23+dfsg-1+deb12u1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/twig-bridge | >=2.0.0,<4.4.51 | 4.4.51 |
| Packagist | symfony/twig-bridge | >=5.0.0,<5.4.31 | 5.4.31 |
| Packagist | symfony/twig-bridge | >=6.0.0,<6.3.8 | 6.3.8 |
| Packagist | symfony/symfony | >=2.0.0,<4.4.51 | 4.4.51 |
| Packagist | symfony/symfony | >=5.0.0,<5.4.31 | 5.4.31 |
| Packagist | symfony/symfony | >=6.0.0,<6.3.8 | 6.3.8 |
References
- https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3
- https://nvd.nist.gov/vuln/detail/CVE-2023-46734
- https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54
- https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2023-46734.yaml
- https://github.com/symfony/symfony
- https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html
- https://symfony.com/cve-2023-46734
- https://security-tracker.debian.org/tracker/CVE-2023-46734
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.