CVE-2021-41270: medium-severity vulnerability in symfony
CSV Injection in Symfony
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Symfony's CSV encoder could be tricked into creating malicious spreadsheet files that execute formulas when opened in Excel or similar applications. This happens because special characters weren't properly escaped, allowing attackers to inject code that runs automatically.
CSV injection vulnerability in Symfony's CsvEncoder affects versions 4.1.0-4.4.34 and 5.0.0-5.3.11. The encoder's `csv_escape_formulas` option failed to properly prefix cells starting with tab (0x09), carriage return (0x0D), =, +, -, or @ characters per OWASP guidelines, enabling formula injection when deserialized CSV data is exported and opened in spreadsheet applications. Fixed in versions 4.4.35 and 5.3.12 by adopting single quote prefixing for all dangerous characters.
In the same product, most dangerous first.