- What is CWE-95?
- The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
- What CVEs are caused by CWE-95?
- 125 recorded CVEs are attributed to CWE-95, including CVE-2025-24893, CVE-2024-36401, CVE-2023-7101. 3 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- Is CWE-95 part of the OWASP Top 10?
- CWE-95 maps to OWASP Top Ten 2007: Malicious File Execution (A3) in the OWASP security taxonomy.
- How do you prevent CWE-95?
- If possible, refactor your code so that it does not need to use eval() at all.
- How is CWE-95 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-95?
- Exploiting CWE-95 can lead to: Read Files or Directories, Read Application Data, Bypass Protection Mechanism, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands, Hide Activities.
- Is CWE-95 actively exploited?
- Yes. 3 CWE-95 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 125 recorded CVEs.