BaseIncomplete

CWE-1236Improper Neutralization of Formula Elements in a CSV File

Category: other

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.

Common consequences· 1

  • 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.

Potential mitigations· 3

  • [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.

References

  1. https://cwe.mitre.org/data/definitions/1236.html

(incoming)9

TypeTargetConfidenceTier
VulnerabilityCVE-2025-14229cve-2025-142290%live
VulnerabilityCVE-2025-4546cve-2025-45460%live
VulnerabilityCVE-2025-50572cve-2025-505720%live
VulnerabilityCVE-2025-54752cve-2025-547520%live
VulnerabilityCVE-2025-55745cve-2025-557450%live
VulnerabilityCVE-2025-56267cve-2025-562670%live
VulnerabilityCVE-2026-23873cve-2026-238730%live
VulnerabilityCVE-2026-31049cve-2026-310490%live
VulnerabilityCVE-2026-35157cve-2026-351570%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Neutralization of Special Elements in Data Query Logic
CWE
Improper Neutralization of Expression/Command Delimiters
CWE
Improper Neutralization of Value Delimiters
CWE
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CWE
Improper Neutralization of Special Elements Used in a Template Engine
CWE
Improper Neutralization of Line Delimiters
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.