CVE-2025-68161: Apache Log4j Core: Missing TLS hostname verification in Socket appender
Vulnerability summary
CVE-2025-68161 is a medium (CVSS 6.3) vulnerability in apache software foundation apache log4j core. EPSS estimates a 0.77% chance of exploitation in the next 30 days, higher than 55.5% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 18Timeline
- 18-12-2025PublishedVulnerability first disclosed.
- 10-04-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
9 scores · 7 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N
- OSV · MavenEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N
- NVDNIST6.3MediumCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- NVDNIST4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.77%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.77% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (logging.apache.org)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-297Improper Validation of Certificate with Host MismatchThe product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.
- CWE-295Improper Certificate ValidationThe product does not validate, or incorrectly validates, a certificate.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard183 products
- airflow-3< 3.2.0-r0
- airflow-3-bitnami-compatAll versions (No fix recorded)
- akhq< 0.27.0-r1
- apache-activemq-6.1< 6.1.8-r3
- apache-activemq-artemis< 2.44.0-r2
Wolfi15 products
- airflow-3< 3.2.0-r0
- airflow-3-bitnami-compatAll versions (No fix recorded)
- akhq< 0.27.0-r1
- apache-activemq-artemis< 2.44.0-r2
- apache-activemq-artemis-compat< 2.44.0-r2
Apache1 product
- log4j≥ 2.0.1, < 2.25.3 | 2.0 | 2.0:beta9 | 2.0:rc1 | 2.0:rc1-rc1 | 2.0:rc2
Apache software foundation1 product
- apache log4j core≥ 2.0-beta9, < 2.25.3 | ≥ 3.0.0-alpha1, ≤ 3.0.0-beta3
4 vendors · 200 products · Showing 200 of 242
References
19 links- lists.apache.org/thread/xr33kyxq3sl67lwb61ggvm1fzc8k7dvxVendor AdvisoryREPORTAdvisoryWEBMailing List