Media

Apache Log4j does not verify the TLS hostname in its Socket Appender

  • Publicada: 18.12.2025
  • Actualizado: 11.10.2026 13:20

The Socket Appender in Apache Log4j Core versions 2.0-beta9 through 2.25.2 does not perform TLS hostname verification of the peer certificate, even when the verifyHostName configuration attribute or the log4j2.sslVerifyHostName system property is set to true.

This issue may allow a man-in-the-middle attacker to intercept or redirect log traffic under the following conditions:

  • The attacker is able to intercept or redirect network traffic between the client and the log receiver.
  • The attacker can present a server certificate issued by a certification authority trusted by the Socket Appender’s configured trust store (or by the default Java trust store if no custom trust store is configured).

Users are advised to upgrade to Apache Log4j Core version 2.25.3, which addresses this issue.

As an alternative mitigation, the Socket Appender may be configured to use a private or restricted trust root to limit the set of trusted certificates.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Java / Kotlin (Maven) org.apache.logging.log4j:log4j-core >= 2.0-beta9, < 2.25.3 2.25.3

Referencias

Puntuación CVSS -
Vector CVSS
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N
Debilidad (CWE)
CWE-297
Plataforma
Java / Kotlin (Maven)
Paquete
org.apache.logging.log4j:log4j-core
Publicada
18.12.2025
Actualizado
11.10.2026 13:20

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-vc5p-v9hr-52mj - CC BY 4.0

Historial de vulnerabilidades: org.apache.logging.log4j:log4j-core

Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (11) en el archivo
Entradas en total
11
Primera → última
01.2020 04.2026
Sin corrección
0
Explotada en ataques
2

Distribución por gravedad

  • Crítica 3
  • Alta 2
  • Media 5
  • Baja 1

Divulgaciones por año

  1. 2020: 2
  2. 2021: 3
  3. 2022: 1
  4. 2023: 1
  5. 2024: 0
  6. 2025: 1
  7. 2026: 3
Gravedad:
  1. Apache Log4j does not verify the TLS hostname in its Socket Appender esta entrada
    Media CVE-2025-68161 >= 2.0-beta9, < 2.25.3 2.25.3
  2. Alta · 7.5 CVE-2023-26464 >= 1.0.4, < 2.0 2.0
  3. Alta · 8.6 CVE-2021-45105 >= 2.4.0, < 2.12.3, >= 2.13.0, < 2.17.0, < 2.3.1 2.12.3, 2.17.0, 2.3.1
  4. Crítica · 9.0 Explotada en ataques CVE-2021-45046 >= 2.13.0, < 2.16.0, >= 2.4.0, < 2.12.2, < 2.3.1 2.16.0, 2.12.2, 2.3.1
  5. Crítica · 10.0 Explotada en ataques CVE-2021-44228 >= 2.13.0, < 2.15.0, >= 2.0-beta9, < 2.3.1, >= 2.4, < 2.12.2 2.15.0, 2.3.1, 2.12.2
  6. Crítica · 9.8 CVE-2017-5645 >= 2.0, < 2.8.2 2.8.2

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.