# CVE-2025-68161: Apache Log4j Core: Missing TLS hostname verification in Socket appender

- Severity: Medium 6.3 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-18T20:47:49.123Z
- Modified: 2026-09-10T03:50:32.126Z
- Also known as: GHSA-vc5p-v9hr-52mj
- Weaknesses: CWE-295, CWE-297
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- org.apache.logging.log4j:log4j-core: from 2.0-beta9 before 2.25.3; from 3.0.0-alpha1 up to 3.0.0-beta3
- org.apache.logging.log4j:log4j-core (Maven): from 2.0-beta9 before 2.25.3
- apache log4j: from 2.0.1 before 2.25.3; 2.0

## Every score

- apache: 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`
- GitHub: CVSS:4.0 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`
- NVD: 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`

## References

- <https://logging.apache.org/security.html#CVE-2025-68161> (exploit, vendor-advisory, web)
- <https://github.com/apache/logging-log4j2/pull/4002> (issue-tracking, patch, web)
- <https://logging.apache.org/cyclonedx/vdr.xml> (vendor-advisory, web)
- <https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.sslVerifyHostName> (product, related, web)
- <https://logging.apache.org/log4j/2.x/manual/appenders/network.html#SslConfiguration-attr-verifyHostName> (product, related, web)
- <https://lists.apache.org/thread/xr33kyxq3sl67lwb61ggvm1fzc8k7dvx> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2025/12/18/1> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2026/01/msg00015.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68161> (advisory)
- <https://github.com/apache/logging-log4j2/commit/3b93748497e1adbbd027fda8a5e7268ec5d0d578> (web)
- <https://github.com/apache/logging-log4j2> (web)

## Sources

- CVE List: [CVE-2025-68161](https://www.cve.org/CVERecord?id=CVE-2025-68161), CVE Terms of Use, modified 2026-04-10
- GitHub Advisory Database: [GHSA-vc5p-v9hr-52mj](https://github.com/advisories/GHSA-vc5p-v9hr-52mj), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-68161](https://nvd.nist.gov/vuln/detail/CVE-2025-68161), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-68161 · Whole record: https://cve.day/CVE-2025-68161.json · Rebuilt by cve.day 2026-11-25T22:59:09.716Z
