Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2021-41270

Symfony/Serializer handles serializing and deserializing data structur ...

Overview

Published
24 Nov 2021
Modified
17 Jun 2026
Medium CVE
2 Registry packages
1 OS packages
3 Linux distributions
Yes Fix available

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 @.

Source: OX vulnerability database

Severity

6.5 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

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

Weakness: CWE-1236

Affected packages · 2

Packages affected by CVE-2021-41270
EcosystemPackageVulnerableFixed in
Composer (PHP) symfony/serializer >=5.0.0, <5.3.12>=4.1.0, <4.4.35>=5.2.0, <5.3.0>=5.3.0, <5.3.12>=4.1.0, <4.2.0+5 more 5.3.124.4.35
Composer (PHP) symfony/symfony >=4.1.0, <4.4.35>=5.0.0, <5.3.12>=4.4.0, <4.4.35>=5.0.0, <5.1.0>=5.1.0, <5.2.0+5 more 4.4.355.3.12

Open a package to see all its vulnerabilities.

Operating systems · 6 fixes

debian 4 releases · 1 package

fixed 4
symfony
debian fixes for CVE-2021-41270
ReleasePackageFixed in
11 symfony 4.4.19+dfsg-2+deb11u1
12 symfony 4.4.19+dfsg-3
13 symfony 4.4.19+dfsg-3
14 symfony 4.4.19+dfsg-3

echo 1 release · 1 package

fixed 1
symfony
echo fixes for CVE-2021-41270
ReleasePackageFixed in
symfony 4.4.19+dfsg-3

ubuntu 1 release · 1 package

fixed 1
symfony
ubuntu fixes for CVE-2021-41270
ReleasePackageFixed in
20.04-ESM symfony 4.3.8+dfsg-1ubuntu1+esm1

References

Show all 18 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.