CVE-2021-41270
Symfony/Serializer handles serializing and deserializing data structur ...
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed 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
| Release | Package | Fixed in |
|---|---|---|
| symfony | 4.4.19+dfsg-3 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04-ESM | symfony | 4.3.8+dfsg-1ubuntu1+esm1 |
References
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/serializer/CVE-2021-41270.yaml
- github.com https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-41270.yaml
- github.com https://github.com/symfony/symfony
- github.com https://github.com/symfony/symfony/commit/3da6f2d45e7536ccb2a26f52fbaf340917e208a8
- github.com https://github.com/symfony/symfony/commit/3da6f2d45e7536ccb2a26f52fbaf340917e208a8 (v4.4.35)
- github.com https://github.com/symfony/symfony/pull/44243
- github.com https://github.com/symfony/symfony/releases/tag/v5.3.12
- github.com https://github.com/symfony/symfony/security/advisories/GHSA-2xhg-w2g5-w95x
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BPT4SF6SIXFMZARDWED5T32J7JEH3EP
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BPT4SF6SIXFMZARDWED5T32J7JEH3EP/
Show all 18 references
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QSREFD2TJT5LWKM6S4MD3W26NQQ5WJUP
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QSREFD2TJT5LWKM6S4MD3W26NQQ5WJUP/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3BPT4SF6SIXFMZARDWED5T32J7JEH3EP
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QSREFD2TJT5LWKM6S4MD3W26NQQ5WJUP
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-41270
- symfony.com https://symfony.com/cve-2021-41270
- ubuntu.com https://ubuntu.com/security/notices/USN-5290-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-41270
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.