---
id: CVE-2023-46734
title: >-
  Symfony is a PHP framework for web and console applications and a set of
  reusable PHP components
summary: >-
  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_sa…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: sensiolabs
product: symfony
affected:
  - debian_linux = 10.0
  - 'symfony >= 2.0.0, < 4.4.51'
  - 'symfony >= 5.0.0, < 5.4.31'
  - 'symfony >= 6.0.0, < 6.3.8'
  - 'twig-bridge >= 2.0.0, < 4.4.51'
  - 'twig-bridge >= 5.0.0, < 5.4.31'
  - 'twig-bridge >= 6.0.0, < 6.3.8'
patched:
  - symfony 6.3.8
  - twig-bridge 6.3.8
published: '2023-11-10'
updated: '2026-07-29'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-46734'
references:
  - url: >-
      https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54
    label: security-advisories@github.com
  - url: >-
      https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c
    label: security-advisories@github.com
  - url: 'https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3'
    label: security-advisories@github.com
  - url: 'https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html'
    label: security-advisories@github.com
  - url: >-
      https://github.com/symfony/symfony/commit/5d095d5feb1322b16450284a04d6bb48d1198f54
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/symfony/symfony/commit/9da9a145ce57e4585031ad4bee37c497353eec7c
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://github.com/symfony/symfony/security/advisories/GHSA-q847-2q57-wmr3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2023/11/msg00019.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00688
epssPercentile: 0.50602
ingestedAt: '2026-07-29T18:49:21.390Z'
---

## Overview

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

- `debian_linux = 10.0`
- `symfony >= 2.0.0, < 4.4.51`
- `symfony >= 5.0.0, < 5.4.31`
- `symfony >= 6.0.0, < 6.3.8`
- `twig-bridge >= 2.0.0, < 4.4.51`
- `twig-bridge >= 5.0.0, < 5.4.31`
- `twig-bridge >= 6.0.0, < 6.3.8`

## Remediation

Upgrade past the affected range:

- `symfony 6.3.8`
- `twig-bridge 6.3.8`
