Feed
4.8MEDIUM

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%
Priority
38/100 medium
how it is computed
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

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

Sources

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