Inyección de código y comandos · CWE-94
Inyección de código
El programa evalúa como código algo que viene del usuario (eval, plantillas, expresiones), y el atacante ejecuta su propio código dentro de la aplicación.
8.684 vulnerabilidades publicadas de este tipo, 101 de ellas explotadas activamente según CISA.
Cómo funciona
Funciones como eval(), motores de plantillas (Jinja, Twig, Freemarker, Velocity) o lenguajes de expresiones (OGNL, SpEL, EL) interpretan texto como código. Si un dato del usuario llega ahí, el atacante ejecuta instrucciones con los permisos de la aplicación, lo que casi siempre termina en control del servidor.
Dónde aparece
Aplicaciones Java (Struts, Spring, Confluence), PHP, Python y Node.js; motores de plantillas; herramientas de automatización.
Cómo se corrige
- No evaluar texto del usuario como código ni como plantilla; pasarlo siempre como dato a una plantilla fija.
- Usar el modo seguro (sandbox) del motor de plantillas o de expresiones si existe.
- Aplicar los parches del fabricante: muchas de estas fallas están en frameworks.
Qué evitar
- eval(), new Function(), exec() de Python o render_template_string con datos del usuario.
Explotadas de este tipo
- CVE-2026-90436Crítica9.8 ExplotadaPrioridad urgenteEPSS 2,7 %18 de nov de 2026
Inyección de código en Apache Axis 1.x (EOL)
** UNSUPPORTED WHEN ASSIGNED ** Deserialization of an inbound SOAP fault in Apache Axis 1.x allows unauthenticated remote class instantiation. When a SOAP <Fault> carries a <detail><exceptionName> element, Axis loads the named class and, if a String <data> element is also present, instantiates it through its String constructor before checking that it is an AxisFault. Loading alone runs the class's static initializer. With a suitable class on the application's classpath this leads to remote code execution. The fault is parsed while the engine resolves the target service, before any per-service handler chain runs, so authentication handlers configured on a service do not protect against it. This affects all Apache Axis 1.x versions through 1.4. As Axis 1 has been EOL we recommend you migrate to a different SOAP engine, such as Apache Axis 2/Java. Alternatively you could use a build of Axis with the patch from https://github.com/apache/axis-axis1-java/commit/41f3b4e8d04e310ca81f86b92630ab2c11d608bd applied. The Apache Axis project does not expect to create an Axis 1.x release fixing this problem.
- CVE-2026-90817Crítica9.8 ExplotadaPrioridad urgenteEPSS 19 %18 de nov de 2026
Inyección de código en REDCap
An unauthenticated Remote Code Execution vulnerability was found in the survey passthrough routing and Data Import processing logic, in which a malicious user could potentially exploit it by manipulating HTTP requests to access an unintended controller route from a public survey context and by supplying a crafted file-path/stream parameter during import handling. If successfully exploited, this could allow the attacker to remotely execute arbitrary code on the REDCap server. The attacker does not have to be authenticated in order to exploit this, but exploitation requires knowledge of a valid public survey hash. This vulnerability exists in REDCap 13.3.0 and higher.
- CVE-2026-40217Alta8.8 ExplotadaPrioridad urgenteEPSS 21 %18 de nov de 2026
Inyección de código en LiteLLM
LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.
- CVE-2026-115731Crítica9.9 ExplotadaPrioridad urgenteEPSS 13 %17 de nov de 2026
Inyección de código en Puppet Enterprise
Deserialization of untrusted data in the report-processing code of Puppet, as used by Puppet Server, in the affected releases, allows a client that holds any CA-signed agent certificate to execute arbitrary code on the Puppet Server as its service user by submitting a report containing a crafted rich-data type via PUT request. Where the certificate authority autosigns requests without strong verification, an unauthenticated network attacker can obtain such a certificate.
- CVE-2026-0322Alta7.2 ExplotadaPrioridad urgenteEPSS 2,0 %14 de oct de 2026
Inyección de código en PAN-OS
A remote code execution (RCE) vulnerability in the management interface of Palo Alto Networks PAN-OS® software enables an authenticated attacker with network access to execute arbitrary code with root privileges on the firewall. The security risk posed by this issue is minimized by restricting access to the management interface to only trusted internal IP addresses according to our recommended best practice deployment guidelines https://live.paloaltonetworks.com/t5/community-blogs/tips-amp-tricks-how-to-secure-the-management-access-of-your-palo/ba-p/464431 . This issue is applicable to PAN-OS software on PA-Series and VM-Series firewalls and on Panorama (virtual and M-Series). Cloud NGFW and Prisma® Access are not impacted by this vulnerability.
- CVE-2026-65660Alta8.8 ExplotadaPrioridad urgenteEPSS 2,5 %25 de sept de 2026
Inyección de código en Microsoft SharePoint Enterprise Server 2016
Improper control of generation of code ('code injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.
Publicadas recientemente
- CVE-2026-123757Alta7.4Prioridad alta27 de nov de 2026
Inyección de código en Authoritative
An attacker can send a notify request that causes the root zone to be added as a secondary domain to be added to the bind backend, but causes said backend to update its configuration to an invalid one, leading to the backend no longer able to run on the next restart, requiring manual operation to fix it. The general case of this problem was addressed by SA-2026-05, but the root zone was not handled correctly. This is now fixed.
- CVE-2026-134963Crítica9.9Prioridad alta27 de nov de 2026
Inyección de código en WPMasterToolKit
Improper Control of Generation of Code ('Code Injection') vulnerability in Webdeclic WPMasterToolKit wpmastertoolkit allows Code Injection.This issue affects WPMasterToolKit: from n/a through 2.26.1.
- CVE-2026-77682Sin calificarPrioridad bajaEPSS 0,32 %27 de nov de 2026
Inyección de código en Epiphany
A code injection vulnerability exists in Epiphany when the user invokes form autofill from the context menu on a page containing a malicious HTML form. In embed/web-process-extension/resources/js/ephy_autofill.js, getSelector() builds a CSS selector by directly interpolating an element's id attribute: path.unshift(`#${el.id}`); When the user selects an autofill entry, the browser process in embed/ephy-web-view.c previously constructed JavaScript using sprintf with the selector embedded in single quotes: EphyAutofill.fill(PAGE_ID, 'SELECTOR', FILL_CHOICE); Because SELECTOR comes from attacker-controlled page content and is not escaped, a crafted id such as a'); PAYLOAD; var _=(' breaks out of the string literal and executes arbitrary JavaScript when the script is evaluated. The injected code runs in Epiphany's private autofill script world, which hosts EphyAutofill credential APIs and password manager save/request handlers. The reporter demonstrated a proof of concept that injects credentials into another domain and uses Ephy.permissionsManager to enumerate domains with special permissions. Full exfiltration of all saved passwords was not demonstrated but may be possible given the privileges of this context. Exploitation requires the victim to visit a malicious page, right-click on a form field, and choose an Autofill context menu item. This is a deliberate user action but does not require installing software or entering credentials manually. Affected versions: Epiphany >= 47.beta. Fixed upstream in epiphany 50.6 and 49.9 via merge request !2147, which replaces sprintf-based script evaluation with a WebKit user message and jsc_value_object_invoke_method() passing the selector as a typed string argument. Upstream report: https://gitlab.gnome.org/GNOME/epiphany/-/issues/2921
- CVE-2026-106125Crítica9.8Prioridad urgenteEPSS 1,2 %27 de nov de 2026
Inyección de código en Sneeit Framework
The Sneeit Framework plugin for WordPress is vulnerable to Remote Code Execution in versions up to, and including, 8.7 via the 'callback' parameter of the sneeit_compact_menu_mega_content AJAX action. The handler sneeit_compact_menu_mega_content_callback() is registered on the wp_ajax_nopriv_ hook and passes the attacker-supplied 'callback' value directly into call_user_func() after only a function_exists() check, with the single argument also attacker-controlled via a JSON-decoded 'args' parameter. There is no authentication, no capability check, no nonce, and no allow-list of callable functions. This makes it possible for unauthenticated attackers to execute arbitrary existing PHP/WordPress functions with controlled arguments.
- CVE-2026-137667Media4.3Prioridad mediaEPSS 0,41 %27 de nov de 2026
Inyección de código en ONNXMLTools
A vulnerability was detected in ONNX ONNXMLTools up to 1.16.0. This affects the function get_set_node of the file onnxmltools/utils/visualize.py of the component Model Visualization. The manipulation results in cross site scripting. The attack can be executed remotely. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.
- CVE-2026-135379Media6.5Prioridad mediaEPSS 0,49 %27 de nov de 2026
Inyección de código en LXD
Improper control of code generation and project restriction enforcement in container configuration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to execute arbitrary commands as root on the host, crash the daemon, and alter shared bridge DHCP assignments via image-supplied LXC configuration, concurrent rename races during updates, and unvalidated syscall or hardware address settings.
- CVE-2026-137506Alta7.8Prioridad altaEPSS 0,28 %26 de nov de 2026
Inyección de código en ezdxf
ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the user running them.
- CVE-2026-120353Sin calificarPrioridad bajaEPSS 0,38 %26 de nov de 2026
Inyección de código en Apache Airflow Standard provider
The Apache Airflow TaskFlow decorators @task.bash, @task.sql, @task.analytics, @task.kubernetes_cmd and the common.ai decorators (@task.llm, @task.agent, @task.llm_sql, @task.llm_branch, @task.llm_file_analysis, @task.llm_schema_compare) rendered Jinja templates a second time after the task runner had already rendered them, so any value copied into env, op_args, op_kwargs or the returned prompt, command or SQL was evaluated as a template on the worker. An attacker who can only trigger a Dag run (for example a user with trigger permission supplying run conf), or who controls text that a Dag passes into one of these decorators as an argument or prompt (for example a ticket or a downloaded document), could run arbitrary commands on the worker and read connection passwords and Variables, in any deployment that uses an affected decorator in a Dag that passes such input through env, parameters or prompt. Users are recommended to upgrade apache-airflow-providers-standard to 1.22.0, apache-airflow-providers-cncf-kubernetes to 11.0.0, apache-airflow-providers-common-sql to 3.0.0 and apache-airflow-providers-common-ai to 1.2.0 or later.