{"schemaVersion":3,"id":"CVE-2021-41270","aliases":["UBUNTU-CVE-2021-41270","DEBIAN-CVE-2021-41270"],"status":"published","duplicateOf":null,"title":null,"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 `@`.","dates":{"published":"2021-11-24T19:05:11.000Z","modified":"2024-08-04T03:08:31.658Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.014,"percentile":0.72112,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.014},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01355,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01355,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01355,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.014,"percentile":0.72112}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.014,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.014,"percentile":0.72112}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1236","name":"Improper Neutralization of Formula Elements in a CSV File","description":"The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1236.html"}],"affected":[{"vendor":"debian","product":"symfony","name":"symfony","label":"symfony","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/symfony","purlType":"deb","versions":[{"text":"< 4.4.19+dfsg-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.4.19+dfsg-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"symfony","name":"symfony","label":"symfony","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/symfony","purlType":"deb","versions":[{"text":"< 4.3.8+dfsg-1ubuntu1+esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.3.8+dfsg-1ubuntu1+esm1","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"sensiolabs","product":"symfony","name":"symfony","label":"symfony","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1.0, < 4.4.35","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.3.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.0, < 4.4.35 | ≥ 5.0.0, < 5.3.12","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"symfony","label":"Symfony","category":"framework"}},"hubHref":"/vendor/sensiolabs/symfony"},{"vendor":"symfony","product":"symfony","name":"symfony","label":"symfony","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1.0, < 4.4.35","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.3.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.0, < 4.4.35 | ≥ 5.0.0, < 5.3.12","eol":null,"hubHref":"/vendor/symfony/symfony"}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/symfony/symfony/pull/44243","label":"github.com/symfony/symfony/pull/44243","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/symfony/symfony/releases/tag/v5.3.12","label":"github.com/symfony/symfony/releases/tag/v5.3.12","hostname":"github.com","tags":["X Refsource MISC","REPORT","Release Notes","Third Party Advisory"]},{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-2xhg-w2g5-w95x","label":"github.com/symfony/symfony/security/advisories/GHSA-2xhg-w2g5-w95x","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/symfony/symfony/commit/3da6f2d45e7536ccb2a26f52fbaf340917e208a8","label":"github.com/symfony/symfony/commit/3da6f2d45e7536ccb2a26f52fbaf340917e208a8","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QSREFD2TJT5LWKM6S4MD3W26NQQ5WJUP/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3BPT4SF6SIXFMZARDWED5T32J7JEH3EP/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://ubuntu.com/security/CVE-2021-41270","label":"ubuntu.com/security/CVE-2021-41270","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5290-1","label":"ubuntu.com/security/notices/USN-5290-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-41270","label":"www.cve.org/CVERecord?id=CVE-2021-41270","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-41270","label":"security-tracker.debian.org/tracker/CVE-2021-41270","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-5290-1"],"duplicates":[],"related":["USN-5290-1"]},"timeline":[{"kind":"published","date":"2021-11-24T19:05:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T03:08:31.658Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:00:11.514Z","stale":false,"partial":false}}