Skip to main content

About CWE-95

Injected code may read restricted files or data, bypass authentication logic, reach otherwise protected resources and run arbitrary code. Actions taken this way are often not logged.

MITRE name
Improper Neutralization of Directives in Dynamically Evaluated Code
Abstraction
Variant: linked to a certain type of product, typically a specific language or technology
Status
Incomplete

Also Known As

  • Eval Injection

Mitigations

  • Refactor the code so that eval or equivalent dynamic evaluation is not needed.
  • Validate input against a strict allowlist of acceptable values.
  • Decode and canonicalize input before validating it, and avoid decoding twice.
  • Do not treat safer parsing helpers as a fix for untrusted data; the Python documentation discourages ast.literal_eval() on untrusted input.

Detection
Automated static analysis (SAST) is rated highly effective for tracing input into evaluation calls.

CWE-95 in the KEV Catalog

as of 2026-11-23
All KEV statistics→
  • 4 CISA KEV entries name Eval Injection (CWE-95) in their CVE record, tied for 58th among the 196 weaknesses named in the catalog.
  • CISA added 2 CWE-95 entries to the KEV catalog in 2024, 1 in 2025, and 1 so far in 2026.

Related Attack Patterns

1 CAPEC patterns
CAPEC-35Leverage Executable Code in Non-Executable FilesDetailed · Severity Very High · Likelihood High

CWE-95 Vulnerabilities

8 CVEs
CVECVSS
CVE-2026-33017KEV
Langflow has Unauthenticated Remote Code Execution via Public Flow Build Endpoint
9.3
CVE-2025-24893KEV
Remote code execution as guest via SolrSearchMacros request in xwiki
9.8
CVE-2024-36401KEV
Remote Code Execution (RCE) vulnerability in evaluating property name expressions in Geoserver
9.8
CVE-2023-7101KEV
Arbitrary Code Execution (ACE) Vulnerability
7.8
CVE-2026-0769
Langflow eval_custom_component_code Eval Injection Remote Code Execution Vulnerability
9.8
CVE-2026-61511
vBulletin < 6.2.2 Eval Injection RCE via vb5/template/runtime.php
9.3
CVE-2026-1470
Authenticated users can bypass the Expression sandbox mechanism to achieve full remote code execution on n8n’s main node.
9.9
CVE-2026-22666
Dolibarr ERP/CRM < 23.0.2 Authenticated RCE via dol_eval_standard()
8.6

Frequently Asked Questions

What is CWE-95?→

CWE-95 is eval injection: input reaches a dynamic evaluation function without neutralization of code syntax.

How does CWE-95 relate to CWE-94?→

CWE-95 is a Variant under code injection that focuses on dynamic evaluation calls. CWE-94 is the broader Base entry.

How many exploited vulnerabilities are classified as CWE-95?→

This database lists 8 CVE records mapped to CWE-95 by their CVE Numbering Authority. 4 of them are in the CISA Known Exploited Vulnerabilities catalog. Examples include CVE-2026-33017, CVE-2025-24893, CVE-2024-36401.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.