Inyección de código y comandos · CWE-98
Inclusión de archivos locales o remotos
La aplicación carga un archivo de código cuyo nombre controla el usuario, y el atacante hace que cargue y ejecute un archivo suyo o uno del servidor que no debía.
1.796 vulnerabilidades publicadas de este tipo, 5 de ellas explotadas activamente según CISA.
Cómo funciona
En PHP, include($_GET['pagina']) carga el archivo que diga el parámetro. El atacante puede pedir archivos del sistema, registros donde logró escribir código, o una URL externa si la configuración lo permite, y el servidor lo ejecuta.
Dónde aparece
Aplicaciones PHP y CMS, complementos y temas, sistemas que cargan módulos según un parámetro.
Cómo se corrige
- Elegir el archivo con una lista cerrada (por ejemplo, un mapa de nombres a rutas fijas).
- Desactivar allow_url_include en PHP.
- Actualizar el CMS, temas y complementos.
Qué evitar
- Quitar «../» o «http://» del parámetro como única defensa.
Explotadas de este tipo
- CVE-2026-111357Alta7.0 ExplotadaPrioridad urgenteEPSS 0,56 %30 de oct de 2026
Inclusión de archivos en Connect Secure
Ivanti Connect Secure 22.8R2.4 mishandles the manner in which the dsinvoked broker trusts DSCache configuration data, leading to privilege escalation to root, as exploited in the wild in October 2026.
- CVE-2026-87902Alta8.1 ExplotadaPrioridad urgenteEPSS 27 %25 de sept de 2026
Inclusión de archivos en WordPress
An unauthenticated attacker can make `get_page_template()` page-template resolution include a chosen readable local `.php` file outside the active theme directories. If relevant pre-conditions for both the server and the active theme are met, this can lead to RCE.
- CVE-2026-0770Crítica9.8 ExplotadaPrioridad urgenteEPSS 41 %21 de jul de 2026
Inclusión de archivos en Langflow
Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of the exec_globals parameter provided to the validate endpoint. The issue results from the inclusion of a resource from an untrusted control sphere. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27325.
- CVE-2025-68645Alta8.8 ExplotadaPrioridad urgenteEPSS 4,2 %22 de ene de 2026
Inclusión de archivos en zimbra collaboration suite
A Local File Inclusion (LFI) vulnerability exists in the Webmail Classic UI of Zimbra Collaboration (ZCS) 10.0 and 10.1 because of improper handling of user-supplied request parameters in the RestFilter servlet. An unauthenticated remote attacker can craft requests to the /h/rest endpoint to influence internal request dispatching, allowing inclusion of arbitrary files from the WebRoot directory.
- CVE-2025-32463Alta7.8 ExplotadaPrioridad urgenteEPSS 14 %29 de sept de 2025
Inclusión de archivos en Sudo
Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf from a user-controlled directory is used with the --chroot option.
Publicadas recientemente
- CVE-2026-130331Alta7.5Prioridad altaEPSS 1,5 %26 de nov de 2026
Inclusión de archivos en WP Statistics – Simple, privacy-friendly Google Analytics alternative
The WP Statistics – Simple, privacy-friendly Google Analytics alternative plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 14.16.19 via the 'tab' parameter parameter. This makes it possible for authenticated attackers, with subscriber-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included. The exploitability of this vulnerability depends on the Minimum Role to View Statistics setting; when set to a low-privilege role such as Subscriber (read capability), unauthenticated-equivalent access is effectively granted to any registered user, while the default Administrator setting limits exposure to higher-privileged accounts.
- CVE-2026-135151Alta7.5Prioridad altaEPSS 1,0 %26 de nov de 2026
Inclusión de archivos en Download Manager
The Download Manager plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.3.78 via the 'file[page_template]' parameter parameter. This makes it possible for authenticated attackers, with author-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included. The malicious page_template value is stored when an Author creates or edits a package post, and the inclusion is triggered on any subsequent page view of the package permalink, meaning the include() can be fired by unauthenticated visitors after the payload is planted.
- CVE-2026-133335Crítica9.2Prioridad urgenteEPSS 1,1 %25 de nov de 2026
Inclusión de archivos en VirtueMart extension for Joomla
Joomla Extension - virtuemart.net - Unauthenticated local file inclusion leading to remote code execution via controller fallback in VirtueMart extension 4.0.0-4.8.7 - The main controller of the component fell back to including a controller file derived from the request without filtering the name, allowing path traversal to arbitrary local PHP files. Depending on the server setup, for example an available pearcmd.php, this could be used to execute code. The issue has been exploited in the wild. Fixed in 4.8.8.
- CVE-2026-126045Crítica9.2Prioridad urgenteEPSS 0,64 %24 de nov de 2026
Inclusión de archivos en Joomla! CMS
Joomla! Core - [20261112] - Core - Local file inclusion through language parameter in Joomla 1.6.0-5.4.10, 6.0.0-6.2.0 - The language request parameter is not validated before it is used to build the path of included language files.
- CVE-2026-135802Alta8.1Prioridad altaEPSS 0,71 %24 de nov de 2026
Inclusión de archivos en symfony/http-foundation
When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. The base URL then kept everything before the script name, and the client chooses that part. A request URI starting with // or /\ made the base URL start with a host. With SCRIPT_NAME=/public/index.php, a request for //evil.example/public/index.php/login is routed to /login, with the base URL //evil.example/public/index.php and the base path //evil.example/public. The URLs generated for that page then point to evil.example: - links built with path() and the actions of forms, so a login form sends the credentials of the user to evil.example; - redirects to generated URLs, such as the ones of redirectToRoute(); - assets referenced with a relative path through asset(), so the page can load scripts from evil.example. The attacker has to make a user follow a crafted link, such as https://app.example//evil.example/public/index.php/login. framework.trusted_hosts does not help, since the host of the request is the real one. Applications are affected when their front controller is in a subdirectory and the web server sends it URIs that do not start with that directory. A .htaccess file at the root of the project that rewrites every URL to public/ does that, for instance. Applications are also affected when the web server sets SCRIPT_NAME to the path of the request. Some nginx configurations do that when they send every request to the front controller without fastcgi_split_path_info. php -S does it too, with a router script outside the document root. A request for /\evil.example/index.php then gets the base URL /\evil.example/index.php, which browsers read as a link to evil.example. The configurations recommended in the Symfony documentation are not affected. Request::getBaseUrl() now returns an empty base URL when the request URI starts with // or /\.
- CVE-2026-133781Alta7.3Prioridad altaEPSS 0,22 %24 de nov de 2026
Inclusión de archivos en @symfony/stimulus-bridge
The controllers.json loader of @symfony/stimulus-bridge loads the package.json file of each package listed in controllers.json with require(). Node resolves this path through the exports field of the package, which can map ./package.json to a script. require() then runs that script during the Webpack or Symfony Encore build. This is a build-time vulnerability: it doesn't affect browsers or end users. A malicious or compromised package listed in controllers.json can run code on the developer machine or the CI server. This works even when the package manager doesn't run install scripts. This code can read the files and environment variables of the build, like CI secrets, and change the built assets. The loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running.
- CVE-2026-104904Media6.5Prioridad mediaEPSS 0,53 %21 de nov de 2026
Inclusión de archivos en Shortcodes Ultimate – Content Elements
The Shortcodes Ultimate plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 7.9.1 This is due to su_get_current_url() interpolating the raw Host request header into the authority portion of a URL that is then passed to esc_url() — which by design preserves '[' and ']' inside the authority so IPv6 literal hosts remain valid — and the [su_qrcode] shortcode substituting that value into its data attribute (the documented %CURRENT_URL% token) before feeding it to do_shortcode(). This makes it possible for unauthenticated attackers to include arbitrary PHP files that reside within the active theme's root directory (bounded because '/' inside an attribute value terminates parse_url()'s host and is then percent-encoded and stripped), and — when the shipped-default 'Unsafe features' option remains on — to read arbitrary post meta of any post, on any front-end page that renders [su_qrcode data="%CURRENT_URL%"].
- CVE-2026-129840Alta7.5Prioridad altaEPSS 0,77 %20 de nov de 2026
Inclusión de archivos en ncs-zigbee (nRF Connect SDK Zigbee R23 add-on, GitHub repository nrfconnect/ncs-zigbee)
In the nrfconnect/ncs-zigbee repository, the GitHub Actions workflow .github/workflows/build_documentation.yml used the pull_request_target trigger while checking out and executing untrusted pull request code. This allowed a pull request from a fork to run attacker-controlled code in the base repository context with a write-scoped GITHUB_TOKEN (contents: write, pages: write, pull-requests: write), enabling remote code execution in CI, token exfiltration, and unauthorized modification of repository content and GitHub Pages. The workflow was disabled and then rewritten to remove the issue.