cve.bz

CVE-2021-41270

6.5 mediumEPSS 1.4%Fix available

Medium (6.5). EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in symfony/serializer 4.4.35, 5.3.12.

On this page
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 `@`.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1236 Improper Neutralization of Formula Elements in a CSV File
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-41270 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41270?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41270?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41270 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sensiolabs:symfonyfrom 4.1.0 before 4.4.35
sensiolabs:symfonyfrom 5.0.0 before 5.3.12
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2xhg-w2g5-w95xPackagistsymfony/serializer>=5.0.0 <5.3.125.3.12
GHSA-2xhg-w2g5-w95xPackagistsymfony/serializer>=4.1.0 <4.4.354.4.35
GHSA-2xhg-w2g5-w95xPackagistsymfony/symfony>=4.1.0 <4.4.354.4.35
GHSA-2xhg-w2g5-w95xPackagistsymfony/symfony>=5.0.0 <5.3.125.3.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14symfony4.4.19+dfsg-3DEBIAN-CVE-2021-41270
UbuntuPro:18.04:LTSsymfony3.4.6+dfsg-1ubuntu0.1+esm2USN-5290-1
UbuntuPro:20.04:LTSsymfony4.3.8+dfsg-1ubuntu1+esm1UBUNTU-CVE-2021-41270 USN-5290-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

References

Check your stackJSON