cve.bz

CVE-2025-68161 apache log4j: Improper Certificate Validation

6.3 mediumExploit referenceEPSS 0.8%Fix available

Medium (6.3) in apache log4j. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.logging.log4j:log4j-core 2.25.3.

On this page
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 https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName configuration attribute or the log4j2.sslVerifyHostName https://logging.apache.org/log4j/2.x/manual/systemproperties.html#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.

Severity

CVSS 4.0

6.3 medium
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

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-295 Improper Certificate Validation
CWE-297 Improper Validation of Certificate with Host Mismatch
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-68161 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68161?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68161?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68161 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Log4j Corefrom 2.0-beta9 before 2.25.3
Apache Software Foundation Apache Log4j Corefrom 3.0.0-alpha1 through 3.0.0-beta3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vc5p-v9hr-52mjMavenorg.apache.logging.log4j:log4j-core>=2.0-beta9 <2.25.32.25.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11apache-log4j22.17.1-1~deb11u2DLA-4444-1
Debian12, 13, 14apache-log4j2no fix listedDEBIAN-CVE-2025-68161
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 5 moreapache-log4j2no fix listedUBUNTU-CVE-2025-68161
SUSELinux Enterprise Module for Basesystem 15 SP7log4j2.20.0-150200.4.30.1SUSE-SU-2026:0254-1
openSUSELeap 15.6log4j2.20.0-150200.4.30.1SUSE-SU-2026:0254-1
openSUSELeap 16.0coredns1.14.0-bp160.1.1openSUSE-SU-2026:20099-1
openSUSETumbleweedlog4j2.20.0-1.1openSUSE-SU-2026:10009-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat products utilizing Apache Log4j Core versions 2.0-beta9 through 2.25.2 with the Socket Appender configured for TLS. The flaw allows a man-in-the-middle attacker to intercept or redirect log traffic due to missing TLS hostname verification, provided the attacker can intercept network traffic and present a trusted certificate.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftlog4j-coreFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-operator-bundleFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-proxy-rhel9Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch-rhel9-operatorFix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-curator5-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis-preview/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Fix deferred
Red Hat AMQ Broker 7log4j-coreFix deferred
Red Hat AMQ Clientslog4j-coreFix deferred
Red Hat build of Apache Camel for Spring Boot 4log4j-coreFix deferred
Red Hat build of Apache Camel - HawtIO 4log4j-coreFix deferred
Red Hat build of Apicurio Registry 2log4j-coreFix deferred
Red Hat build of Apicurio Registry 3log4j-coreFix deferred
Red Hat build of OptaPlanner 8log4j-coreFix deferred
Red Hat Ceph Storage 6cephFix deferred
Red Hat Ceph Storage 7cephFix deferred
Red Hat Ceph Storage 8cephFix deferred
Red Hat Data Grid 8log4j-coreFix deferred
40 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68161.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON