CVE-2024-38475criticalbajo ataqueCWE-116

CVE-2024-38475: fallo crítico en Apache HTTP Server

Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

Publicada el · Actualizada el

Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.

100Vexday Risk Score

Corrige ahora. Ella está bajo explotación confirmada por CISA y tiene exploit funcional público.

ssvc Actcvss 9.1epss 100%
de la publicación al arma48 días
Publicada en NVD1 jul
1ª PoC+48d
CISA KEV+304d
Lo que declaran los fabricantes (VEX)

Declaraciones oficiales de los fabricantes en formato CSAF/VEX: si su producto está afectado, ya corregido o descartado — y por qué. Es afirmación del fabricante, no juicio de Vexday.

Corregido
19 productos (749 componentes)
Red Hat Enterprise Linux AppStream (v. 8) · Red Hat Enterprise Linux AppStream E4S (v.8.6) · Red Hat Enterprise Linux AppStream EUS (v.8.8) · Red Hat Enterprise Linux AppStream (v. 9) · Red Hat Enterprise Linux AppStream EUS (v.9.2) · y otros 14
No afectado
2 productos (18 componentes) — porque el código vulnerable no está presente en el producto
Red Hat Enterprise Linux 10 · Red Hat Enterprise Linux 6
Acción exigida por CISAplazo federal: 2025-05-22

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

En resumen

El módulo mod_rewrite del Apache HTTP Server no escapa correctamente las URLs reescritas cuando la primera parte de una regla utiliza variables o referencias anteriores, permitiendo a atacantes acceder a archivos que no deberían estar disponibles públicamente. Esto puede resultar en ejecución de código malicioso o exposición del código fuente.

Detalle técnico

Una falla en el escape de salida (CWE-116) del mod_rewrite en Apache 2.4.59 y anteriores permite eludir restricciones de acceso cuando las reglas de sustitución comienzan con variables o backreferences en contexto de servidor. Un atacante puede enviar solicitudes que coincidan con el patrón de reescrita para acceder a ubicaciones arbitrarias del sistema de archivos, resultando en ejecución remota de código o divulgación de información.

Resumen generado y traducido por IA a partir de la descripción oficial.

El análisis completo de esta CVE está disponible en portugués →

Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected.  Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
⚠ Recursos públicos, para evaluar la exposición de sistemas que controlas o estás autorizado a probar. Prueba solo con autorización.