Skip to content

CVE-2026-34477 Apache Log4j Core: verifyHostName attribute silently ignored in TLS configuration, allowing hostname verification bypass

MediumCVSS 6.3 EPSS 0.57%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

The fix for CVE-2025-68161 https://logging.apache.org/security.html#CVE-2025-68161 was incomplete: it addressed hostname verification only when enabled via the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName system property, but not when configured through the verifyHostName https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName attribute of the <Ssl> element.

Although the verifyHostName configuration attribute was introduced in Log4j Core 2.12.0, it was silently ignored in all versions through 2.25.3, leaving TLS connections vulnerable to interception regardless of the configured value.

A network-based attacker may be able to perform a man-in-the-middle attack when all of the following conditions are met:

  • An SMTP, Socket, or Syslog appender is in use.
  • TLS is configured via a nested <Ssl> element.
  • The attacker can present a certificate issued by a CA trusted by the appender's configured trust store, or by the default Java trust store if none is configured.
    This issue does not affect users of the HTTP appender, which uses a separate verifyHostname https://logging.apache.org/log4j/2.x/manual/appenders/network.html#HttpAppender-attr-verifyHostName attribute that was not subject to this bug and verifies host names by default.

Users are advised to upgrade to Apache Log4j Core 2.25.4, which corrects this issue.

Upgrade path

53 packages: 3 fixed, 50 with no fix yet.

PackageAffectedFixed inStatus
redhat/bazel7(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/bazel8(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat amq_broker 7) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat amq_streams 2) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat amq_streams 3) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat apache_camel_hawtio 4) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat apicurio_registry 3) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat camel_spring_boot 4) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jboss_data_grid 8) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jboss_enterprise_application_platform 7) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jboss_enterprise_application_platform 8) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jboss_enterprise_web_server 6) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jboss_fuse 7) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat jbosseapxp) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat optaplanner el6) All versions No fix listed No fix yet
redhat/log4j-core(Red Hat service_registry 2) All versions No fix listed No fix yet
redhat/log4j-core-test(Red Hat jboss_data_grid 8) All versions No fix listed No fix yet
redhat/log4j-core-test(Red Hat jboss_enterprise_application_platform 8) All versions No fix listed No fix yet
redhat/log4j-core-test(Red Hat jbosseapxp) All versions No fix listed No fix yet
redhat/log4j:2/log4j(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/offline-knowledge-portal/rhokp-rhel9:1779996999(Red Hat offline_knowledge_portal 1.2 el9) All versions No fix listed No fix yet
redhat/pki-core:10.6/resteasy(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/pki-deps:10.6/resteasy(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
redhat/redhat-user-workloads/bootc-cuda-aws-3-3(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/redhat-user-workloads/bootc-cuda-azure-3-3(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/redhat-user-workloads/bootc-cuda-gcp-3-3(Red Hat enterprise_linux_ai 3) All versions No fix listed No fix yet
redhat/redhat-user-workloads/rhaiis-cuda-ubi9-3-2-2(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/redhat-user-workloads/rhaiis-cuda-ubi9-3-3(Red Hat ai_inference_server 3) All versions No fix listed No fix yet
redhat/redhat-user-workloads/rhokp-core-encrypted(Red Hat offline_knowledge_portal 1) All versions No fix listed No fix yet
redhat/resteasy(Red Hat enterprise_linux 9) All versions No fix listed No fix yet

… and 23 more packages.

Affected products

ProductAffected versionsFixed in
apache log4j(Maven) >= 2.12.0, < 2.25.4 2.25.4
apache log4j(Maven) >= 3.0.0-alpha1, <= 3.0.0-beta3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) >= 2.12.0, < 2.25.4 2.25.4
org.apache.logging.log4j/log4j-core(Maven) = 2.12.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.12.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.12.2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.12.3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.12.4 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.13.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.13.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.13.2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.13.3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.14.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.14.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.15.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.16.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.17.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.17.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.17.2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.18.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.19.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.20.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.21.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.21.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.22.0 No fix listed
Show 74 more
ProductAffected versionsFixed in
org.apache.logging.log4j/log4j-core(Maven) = 2.22.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.23.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.23.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.24.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.24.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.24.2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.24.3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.25.0 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.25.1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.25.2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 2.25.3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) >= 3.0.0-alpha1, <= 3.0.0-beta3 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 3.0.0-alpha1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 3.0.0-beta1 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 3.0.0-beta2 No fix listed
org.apache.logging.log4j/log4j-core(Maven) = 3.0.0-beta3 No fix listed
redhat/offline-knowledge-portal/rhokp-rhel9:1779996999(Red Hat:offline_knowledge_portal:1.2::el9) All versions No fix listed
redhat/redhat-user-workloads/rhaiis-cuda-ubi9-3-2-2(Red Hat:ai_inference_server:3) All versions No fix listed
redhat/redhat-user-workloads/rhaiis-cuda-ubi9-3-3(Red Hat:ai_inference_server:3) All versions No fix listed
redhat/log4j-core(Red Hat:amq_broker:7) All versions No fix listed
redhat/log4j-core(Red Hat:camel_spring_boot:4) All versions No fix listed
redhat/log4j-core(Red Hat:apache_camel_hawtio:4) All versions No fix listed
redhat/log4j-core(Red Hat:service_registry:2) All versions No fix listed
redhat/log4j-core(Red Hat:apicurio_registry:3) All versions No fix listed
redhat/log4j-core(Red Hat:optaplanner:::el6) All versions No fix listed
redhat/log4j-core(Red Hat:jboss_data_grid:8) All versions No fix listed
redhat/log4j-core-test(Red Hat:jboss_data_grid:8) All versions No fix listed
redhat/log4j:2/log4j(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/pki-core:10.6/resteasy(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/pki-deps:10.6/resteasy(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/log4j(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/resteasy(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/bazel7(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/bazel8(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/redhat-user-workloads/bootc-cuda-aws-3-3(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/redhat-user-workloads/bootc-cuda-azure-3-3(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/redhat-user-workloads/bootc-cuda-gcp-3-3(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) All versions No fix listed
redhat/log4j-core(Red Hat:jboss_fuse:7) All versions No fix listed
redhat/log4j-core(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/log4j-core(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/log4j-core-test(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/log4j-core(Red Hat:jbosseapxp) All versions No fix listed
redhat/log4j-core-test(Red Hat:jbosseapxp) All versions No fix listed
redhat/log4j-core(Red Hat:jboss_enterprise_web_server:6) All versions No fix listed
redhat/redhat-user-workloads/rhokp-core-encrypted(Red Hat:offline_knowledge_portal:1) All versions No fix listed
redhat/rhoai/odh-modelmesh-rhel8(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-modelmesh-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-vllm-cuda-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-vllm-gaudi-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-datascience-cpu-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-cuda-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-tensorflow-rocm-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-workbench-jupyter-trustyai-cpu-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/log4j-core(Red Hat:amq_streams:2) All versions No fix listed
redhat/log4j-core(Red Hat:amq_streams:3) All versions No fix listed
ubuntu/apache-log4j2(Ubuntu:22.04) All versions No fix listed
ubuntu/apache-log4j2(Ubuntu:24.04) All versions No fix listed
ubuntu/apache-log4j2(Ubuntu:26.04) All versions No fix listed
ubuntu/apache-log4j2(Ubuntu:26.10) All versions No fix listed
apache log4j >= 2.12.0, < 2.25.4 2.25.4
apache log4j = 3.0.0-alpha1 No fix listed
apache log4j = 3.0.0-alpha1_rc1 No fix listed
apache log4j = 3.0.0-alpha1_rc2 No fix listed
apache log4j = 3.0.0-beta1 No fix listed
apache log4j = 3.0.0-beta2 No fix listed
apache log4j = 3.0.0-beta3 No fix listed

References