CVE-2025-68161Apache Log4j does not verify the TLS hostname in its Socket Appender
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.8% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.8%
- percentile 53%
- Fix
- Named by a source
- CVE published 18 Dec 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.8% (+1) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- org.apache.logging.log4j:log4j-core (Maven): upgrade to 2.25.3 or later on your release line.
- Patch: https://github.com/apache/logging-log4j2/pull/4002
- Commit / pull request: https://github.com/apache/logging-log4j2/commit/3b93748497e1adbbd027fda8a5e7268ec5d0d578
- Advisory: https://logging.apache.org/cyclonedx/vdr.xml
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-68161
Who should check
org.apache.logging.log4j:log4j-core (Maven) pkg:maven/org.apache.logging.log4j/log4j-core
- Affected>= 2.0-beta9, < 2.25.3Fixed in2.25.3OSV (GHSA-vc5p-v9hr-52mj)
apache log4j product:apache/log4j
- Affected>= 2.0-beta9, < 2.25.3Affected range ends before2.25.3as published by CNA (CVE List)
- Affected>= 3.0.0-alpha1, <= 3.0.0-beta3Last known affected3.0.0-beta3as published by CNA (CVE List)
- Affected>= 2.0.1, < 2.25.3Affected range ends before2.25.3as published by CPE data (via the NVD API)
- Affected2.0Fixed innot namedas published by CPE data (via the NVD API)
- Affected2.0-beta9Fixed innot namedas published by CPE data (via the NVD API)
- Affected2.0-rc1Fixed innot namedas published by CPE data (via the NVD API)
- Affected2.0-rc1-rc1Fixed innot namedas published by CPE data (via the NVD API)
- Affected2.0-rc2Fixed innot namedas published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 4.8 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-297, CWE-295
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 18 Dec 2025Published
References
- patchhttps://github.com/apache/logging-log4j2/pull/4002
- otherhttps://lists.apache.org/thread/xr33kyxq3sl67lwb61ggvm1fzc8k7dvx
- advisoryhttps://logging.apache.org/cyclonedx/vdr.xml
- otherhttps://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName
- otherhttps://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName
- exploithttps://logging.apache.org/security.html#CVE-2025-68161
- otherhttp://www.openwall.com/lists/oss-security/2025/12/18/1
- otherhttps://lists.debian.org/debian-lts-announce/2026/01/msg00015.html
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-68161
- commit / pull requesthttps://github.com/apache/logging-log4j2/commit/3b93748497e1adbbd027fda8a5e7268ec5d0d578
- otherhttps://github.com/apache/logging-log4j2
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-68161 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-vc5p-v9hr-52mj (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 41 min ago · osv 41 min ago · nvd 40 min ago · epss 40 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-vc5p-v9hr-52mj