> CVE-2021-41270 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2021-11-24 19:15
MODIFIED
2024-11-21 06:25
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
1.40%
Top 27.3%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> DESCRIPTION

Symfony/Serializer handles serializing and deserializing data structures for Symfony, a PHP framework for web and console applications and a set of reusable PHP components. Symfony versions 4.1.0 before 4.4.35 and versions 5.0.0 before 5.3.12 are vulnerable to CSV injection, also known as formula injection. In Symfony 4.1, maintainers added the opt-in `csv_escape_formulas` option in the `CsvEncoder`, to prefix all cells starting with `=`, `+`, `-` or `@` with a tab `\t`. Since then, OWASP added 2 chars in that list: Tab (0x09) and Carriage return (0x0D). This makes the previous prefix char (Tab `\t`) part of the vulnerable characters, and OWASP suggests using the single quote `'` for prefixing the value. Starting with versions 4.4.34 and 5.3.12, Symfony now follows the OWASP recommendations and uses the single quote `'` to prefix formulas and add the prefix to cells starting by `\t`, `\r` as well as `=`, `+`, `-` and `@`.

> AFFECTED_PRODUCTS

Fedoraproject - Fedora
Version: 34
Fedoraproject - Fedora
Version: 35
Sensiolabs - Symfony
>= 4.1.0 < 4.4.35
Sensiolabs - Symfony
>= 5.0.0 < 5.3.12

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-2xhg-w2g5-w95x MODERATE

CSV Injection in symfony/serializer

AFFECTED PACKAGES:
COMPOSER / symfony/symfony
>= 5.0.0, < 5.3.12
Fixed in: 5.3.12
COMPOSER / symfony/symfony
>= 4.1.0, < 4.4.35
Fixed in: 4.4.35
COMPOSER / symfony/serializer
>= 4.1.0, < 4.4.35
Fixed in: 4.4.35
COMPOSER / symfony/serializer
>= 5.0.0, < 5.3.12
Fixed in: 5.3.12

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

AFFECTED PACKAGES:
Unknown / Unknown
ALIASES:
BIT-symfony-2021-41270, GHSA-2xhg-w2g5-w95x

> HISTORIQUE DES MODIFICATIONS

Première apparition
24/11/2021 19:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:29
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME