CVE-2023-46734: Symfony potential Cross-site Scripting vulnerabilities in CodeExtension filters

Published Nov 10, 2023
·
Updated

Description

Some Twig filters in CodeExtension use "issafe=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.

Other sources

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 issafe=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.

MITRE

Affected Software

17 affected componentsFixes available
composer/symfony/symfony>=6.0.0<6.3.8
6.3.8
composer/symfony/symfony>=5.0.0<5.4.31
5.4.31
composer/symfony/symfony>=2.0.0<4.4.51
4.4.51
composer/symfony/twig-bridge>=6.0.0<6.3.8
6.3.8
composer/symfony/twig-bridge>=5.0.0<5.4.31
5.4.31
composer/symfony/twig-bridge>=2.0.0<4.4.51
4.4.51
debian/symfony
4.4.19+dfsg-2+deb11u65.4.23+dfsg-1+deb12u46.4.18+dfsg-1
SensioLabs Symfony>=2.0.0<4.4.51
SensioLabs Symfony>=5.0.0<5.4.31
SensioLabs Symfony>=6.0.0<6.3.8
SensioLabs Twig>=2.0.0<4.4.51
SensioLabs Twig>=5.0.0<5.4.31
SensioLabs Twig>=6.0.0<6.3.8
Debian Debian Linux=10.0
Symfony Twig-bridge>=2.0.0<4.4.51
Symfony Twig-bridge>=5.0.0<5.4.31
Symfony Twig-bridge>=6.0.0<6.3.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 6.3.8
  2. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 5.4.31
  3. Upgrade

    Upgrade composer/symfony/symfony to a version that resolves this vulnerability.

    Fixed in 4.4.51
  4. Upgrade

    Upgrade composer/symfony/twig-bridge to a version that resolves this vulnerability.

    Fixed in 6.3.8
  5. Upgrade

    Upgrade composer/symfony/twig-bridge to a version that resolves this vulnerability.

    Fixed in 5.4.31
  6. Upgrade

    Upgrade composer/symfony/twig-bridge to a version that resolves this vulnerability.

    Fixed in 4.4.51
  7. Upgrade

    Upgrade debian/symfony to a version that resolves this vulnerability.

    Fixed in 4.4.19+dfsg-2+deb11u6Fixed in 5.4.23+dfsg-1+deb12u4Fixed in 6.4.18+dfsg-1
  8. Upgrade

    Upgrade CodeExtension (Symfony Twig filters with is_safe=html) to a version that resolves this vulnerability.

    Fixed in 4.4.51
  9. Upgrade

    Upgrade CodeExtension (Symfony Twig filters with is_safe=html) to a version that resolves this vulnerability.

    Fixed in 5.4.31
  10. Upgrade

    Upgrade CodeExtension (Symfony Twig filters with is_safe=html) to a version that resolves this vulnerability.

    Fixed in 6.3.8

Event History

Nov 10, 2023
CVE Published
via MITRE·05:49 PM
Data Sourced
via MITRE·05:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 12, 2023
Advisory Published
03:52 PM
Feb 18, 2025
Data Sourced
via Ubuntu·08:23 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·08:23 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-46734?

The severity of CVE-2023-46734 is medium.

2

What is the description of CVE-2023-46734?

CVE-2023-46734 is a vulnerability in Symphony CodeExtension filters that allows potential cross-site scripting (XSS) attacks.

3

How can the potential cross-site scripting (XSS) vulnerabilities in Symphony CodeExtension filters be exploited?

The potential cross-site scripting (XSS) vulnerabilities in Symphony CodeExtension filters can be exploited by injecting malicious code into user input fields that are not properly sanitized.

4

What is the recommended remedy for CVE-2023-46734?

To remediate CVE-2023-46734, update Symphony to version 6.3.8 or later or version 5.4.31 or later.

5

Where can I find more information about CVE-2023-46734?

You can find more information about CVE-2023-46734 in the following references: [reference 1](https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3), [reference 2](https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54), [reference 3](https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203