CVE-2026-119443
XXE en OTP
En resumen
Un atacante con acceso al equipo podría dejar el servicio sin funcionar sin que nadie haga nada.
Cómo se ataca
- Se puede atacar con acceso al equipo (una sesión local o un archivo que la víctima abra).
- No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
- No necesita usuario ni contraseña.
- No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.
Qué puede lograr el atacante
- Dejar el servicio o el equipo sin funcionar.
Cómo corregirla
- Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
- Aplique la actualización o la mitigación que indica el fabricante.
- Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
Recomendaciones para este tipo de fallo
- Desactivar DTD y entidades externas en el lector de XML; en muchas bibliotecas es una sola opción.
- Usar JSON cuando no haga falta XML.
- Mantener actualizadas las bibliotecas de XML.
A qué afecta
Erlang · OTP
1.3.7; 17.0; 84adefa331c4159d432d22840663c38f155cd4c1
Qué es: Entidades externas de XML (XXE)
El programa procesa XML con las entidades externas activadas, y un documento malicioso le hace leer archivos del servidor, hacer peticiones internas o agotar su memoria.
XML permite declarar «entidades» que apuntan a un archivo o a una URL. Si el lector de XML las resuelve, un atacante envía un documento que pide, por ejemplo, file:///etc/passwd y la aplicación devuelve su contenido. Una variante con entidades anidadas («mil millones de risas») consume toda la memoria.
Guía completa: dónde aparece, cómo se corrige y qué evitarDescripción oficial (en inglés)
Improper Restriction of XML External Entity Reference vulnerability in xmerl_scan in Erlang OTP xmerl allows an attacker to exhaust the memory of the Erlang VM via an XML document that names an external DTD. With default options, xmerl_scan:string/1,2 and xmerl_scan:file/1,2 fetch and parse the external DTD named in a <!DOCTYPE root SYSTEM "..."> declaration. fetch_DTD/2 in lib/xmerl/src/xmerl_scan.erl passes every system identifier to the default fetch function, which maps file: and absolute URIs to local paths, and int_file_decl/3 then reads the whole file with file:read_file/1. This happens whether or not validation is enabled, and the allow_entities option, which is false by default since OTP 27, only governs <!ENTITY> declarations and does not stop the fetch. A document naming file:///dev/zero makes the node read without bound until the operating system kills it for lack of memory, and the parse never returns. This issue affects OTP from OTP 17.0 before OTP 27.3.4.20, OTP 28.5.0.9, and OTP 29.1.3, corresponding to xmerl from 1.3.7 before 2.1.3.4, 2.1.9.1, and 2.2.1. Whether OTP before OTP 17.0, corresponding to xmerl before 1.3.7, is affected is unknown.