- What is CWE-1236?
- 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.
- What CVEs are caused by CWE-1236?
- 173 recorded CVEs are attributed to CWE-1236, including CVE-2026-35157, CVE-2026-31049, CVE-2025-56267.
- How do you prevent CWE-1236?
- 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).
- How is CWE-1236 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-1236?
- Exploiting CWE-1236 can lead to: Read Application Data, Execute Unauthorized Code or Commands.
- Is CWE-1236 actively exploited?
- 173 recorded CVEs are caused by CWE-1236; none are currently in CISA's KEV catalog of actively exploited flaws.