1. CVE archive
  2. Vulnerability types
  3. CWE-1236
CWE-1236 · #109 most frequent type in the archive

Improper Neutralization of Formula Elements in a CSV File

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.

Part of: CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component

330CVEs of this type in the archive
62critical (CVSS ≥ 9)
180high severity (7–8.9)
Dec 3, 2026latest published

What it is

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.

Impact on systems

ScopeImpact
Confidentiality Read Application Data, Execute Unauthorized Code or Commands
Attackers can populate data fields which, when saved to a CSV file, may attempt information exfiltration or other malicious activity when automatically executed by the spreadsheet software. Note that current versions of Excel warn users of untrusted content.

How to prevent it

Implementation When generating CSV output, ensure that formula-sensitive metacharacters are effectively escaped or removed from all data before storage in the resultant CSV. Risky characters include '=' (equal), '+' (plus), '-' (minus), and '@' (at).
Implementation If a field starts with a formula character, prepend it with a ' (single apostrophe), which prevents Excel from executing the formula.
Architecture and Design Certain implementations of spreadsheet software might disallow formulas from executing if the file is untrusted, or if the file is not authored by the current user.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-1236 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
201819
201925
202037
202128
202244
202355
202425
202536
202661

All CWE-1236 CVEs

330 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.