Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-95 (动态执行代码中指令转义处理不恰当(Eval注入)) — Vulnerability Class 172

172 vulnerabilities classified as CWE-95 (动态执行代码中指令转义处理不恰当(Eval注入)). AI Chinese analysis included.

CWE-95 represents a critical code injection vulnerability where software fails to properly sanitize user-supplied input before passing it to a dynamic evaluation function, such as JavaScript’s eval(). Attackers typically exploit this weakness by injecting malicious code snippets into the input stream, which the application then executes with the privileges of the running process. This can lead to complete system compromise, data exfiltration, or unauthorized administrative actions. To mitigate this risk, developers must strictly avoid using dynamic code execution functions whenever possible, opting instead for safer alternatives like JSON parsing or predefined function mappings. When dynamic evaluation is unavoidable, rigorous input validation and strict whitelisting of allowed characters are essential to ensure that only safe, expected data structures are processed, thereby neutralizing potential injection vectors before they reach the interpreter.

MITRE CWE Description
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").
Common Consequences (5)
Confidentiality Read Files or Directories, Read Application Data
The injected code could access restricted data / files.
Access Control Bypass Protection Mechanism
In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Access Control Gain Privileges or Assume Identity
Injected code can access resources that the attacker is directly prevented from accessing.
Integrity, Confidentiality, Availability, Other Execute Unauthorized Code or Commands
Code injection attacks can lead to loss of data integrity in nearly all cases as the control-plane data injected is always incidental to data recall or writing. Additionally, code injection can often result in the execution of arbitrary code or at least modify what code can be executed.
Non-Repudiation Hide Activities
Often the actions performed by injected control code are unlogged.
Mitigations (4)
Architecture and Design, Implementation If possible, refactor your code so that it does not need to use eval() at all.
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180, CWE-181). Make sure that your application does not inadvertently decode the same input twice (CWE-174). Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked. Use libraries such as the OWASP ESAPI Canonicalizat…
Implementation For Python programs, it is frequently encouraged to use the ast.literal_eval() function instead of eval, since it is intentionally designed to avoid executing code. However, an adversary could still cause excessive memory or stack consumption via deeply nested structures [REF-1372], so the python documentation discourages use of ast.literal_eval() on untrusted data [REF-1373].
Effectiveness: Discouraged Common Practice
Examples (2)
edit-config.pl: This CGI script is used to modify settings in a configuration file.
use CGI qw(:standard); sub config_file_add_key { my ($fname, $key, $arg) = @_; # code to add a field/key to a file goes here } sub config_file_set_key { my ($fname, $key, $arg) = @_; # code to set key to a particular file goes here } sub config_file_delete_key { my ($fname, $key, $arg) = @_; # code to delete key from a particular file goes here } sub handleConfigAction { my ($fname, $action) = @_; my $key = param('key'); my $val = param('val'); # this is super-efficient code, especially if you have to invoke # any one of dozens of different functions! my $code = "config_file_$action_key(\$fnam
Bad · Perl
add_key(",","); system("/bin/ls");
Attack
This simple python3 script asks a user to supply a comma-separated list of numbers as input and adds them together.
def main(): sum = 0 try: numbers = eval(input("Enter a comma-separated list of numbers: ")) except SyntaxError: print("Error: invalid input") return for num in numbers: sum = sum + num print(f"Sum of {numbers} = {sum}") main()
Bad · Python
__import__('subprocess').getoutput('rm -r *')
Attack
CVE ID Title CVSS Severity Published
CVE-2026-111687 WeRSS (we-mp-rss) through 1.5.3 RCE via template Parameter in /rss Endpoint — we-mp-rss 9.8 Critical 2026-10-16
CVE-2026-111391 SGLang 0.5.10 through 0.5.22 Code Injection via Debug Dumper Filter — sglang 8.1 High 2026-10-16
CVE-2026-111237 Ultralytics FastSAM AutoBackend Model Loading autobackend.py session.get_modelmeta.custom_metadata_map eval injection — FastSAM 5.3 Medium 2026-10-16
CVE-2026-111212 ImprintLab Medical-SAM-Adapter AutoBackend Model Loading autobackend.py session.get_modelmeta.custom_metadata_map eval injection — Medical-SAM-Adapter 4.8 Medium 2026-10-16
CVE-2026-86002 Dokku: Host Command Execution via eval of Unsanitized Docker Options in DOCKER_ARGS — dokku 9.0 Critical 2026-10-14
CVE-2026-65141 NVIDIA Isaac Lab 评估注入漏洞 — Isaac Lab 7.8 High 2026-10-13
CVE-2026-63350 Siemens Trace文件解析漏洞,导致浏览器端JS执行 — SIMATIC Drive Controller CPU 1504D TF 9.6 Critical 2026-10-13
CVE-2026-65954 PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey() — PHPCSUtils 8.6 High 2026-10-12
CVE-2026-108263 Astron Agent: Unsandboxed code-node leads to cross-tenant RCE — astron-agent 9.9 Critical 2026-10-09
CVE-2026-85486 Brocade ASCG <3.5.0 任意代码执行漏洞 — Brocade Active Support Connectivity Gateway 8.6 High 2026-10-08
CVE-2026-105315 django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection — django-haystack 4.7 Medium 2026-10-05
CVE-2026-69662 Toptech TMS7 and TopHAT Eval Injection — TMS7 3.7 Low 2026-09-29
CVE-2024-42002 Unsafe use of eval() method in ros2 topic hz tool — Robot Operating System 2 (ROS 2) 8.4 High 2026-09-28
CVE-2026-101861 Langflow Code Execution via eval() in Component Input Schema — langflow 4.1 Medium 2026-09-28
CVE-2026-100741 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in hMailServer — hMailServer 9.8 Critical 2026-09-27
CVE-2026-100842 MONAI through 1.6.0 _get_fake_spatial_shape eval() Sandbox Bypass via Attribute Chains — MONAI 7.0 High 2026-09-27
CVE-2026-100840 MONAI through 1.6.0 Remote Code Execution via bundle configuration — MONAI 7.8 High 2026-09-27
CVE-2026-57149 plone.app.portlets Vulnerable to Remote Code Execution via TALES Injection — plone.app.portlets 9.9 Critical 2026-09-22
CVE-2026-76974 Information Disclosure vulnerability in SAP Fiori Launchpad — SAP Fiori Launchpad 5.3 Medium 2026-09-22
CVE-2025-53837 org.xwiki.rendering:xwiki-rendering-xml has an Eval Injection issue — xwiki-rendering 9.9 Critical 2026-09-18
CVE-2026-45579 DIRAC: RCE in RequestManager due to eval on untrusted input — DIRAC 9.9 Critical 2026-09-15
CVE-2026-19780 Koha Eval Code Injection Remote Code Execution Vulnerability — Koha - - 2026-09-15
CVE-2026-82789 Contec CONPROSYS HMI System 代码注入漏洞 — CONPROSYS HMI System(CHS) 8.8 High 2026-09-14
CVE-2026-80351 Apache Camel K: Camel K Tenant repositories reach Maven execution inside operator pod — Apache Camel K - - 2026-09-10
CVE-2026-78550 Improper Input Handling in Okta Access Gateway Management Console Exception Handler — Okta Access Gateway 6.6 Medium 2026-09-08
CVE-2026-48273 ColdFusion | Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (CWE-95) — ColdFusion 2025 9.9 Critical 2026-09-08
CVE-2026-76190 ColdFusion | Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (CWE-95) — ColdFusion 2025 8.6 High 2026-09-08
CVE-2026-79678 Freeipa: idm: freeipa: idp-add eval() reachable before authorization check allows environment disclosure and denial of service — Red Hat Enterprise Linux 10 8.1 High 2026-09-07
CVE-2026-85165 n8n before 2.36.2 Expression Sandbox Bypass via SpreadElement — n8n 7.2 High 2026-09-03
CVE-2026-65643 WebPros cPanel 代码注入漏洞 — cPanel 8.7 High 2026-09-01

Vulnerabilities classified as CWE-95 (动态执行代码中指令转义处理不恰当(Eval注入)) represent 172 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.