
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68161 is a TLS hostname verification bypass vulnerability in the Socket Appender component of Apache Log4j Core. Affecting versions 2.0-beta9 through 2.25.2, the flaw causes the Socket Appender to skip hostname verification of peer TLS certificates even when the verifyHostName configuration attribute or log4j2.sslVerifyHostName system property is explicitly set to true. This enables man-in-the-middle (MitM) attacks against log traffic. The vulnerability was disclosed on December 18, 2025, and was discovered by Samuli Leinonen (oss-security). It carries a CVSS v3.1 base score of 4.8 (Medium) and a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory).
The root cause is classified under CWE-297 (Improper Validation of Certificate with Host Mismatch) and CWE-295 (Improper Certificate Validation). The bug resides in the SSLSocketManager class within log4j-core, where the hostname verification logic was not correctly implemented — the verifyHostName flag was accepted as configuration but never enforced during TLS handshake (GitHub PR #4002). Exploitation requires two preconditions: the attacker must be positioned to intercept or redirect network traffic between the Log4j client and the log receiver, and must possess a server certificate issued by a CA trusted by the Socket Appender's trust store (or the default Java trust store). The fix, merged December 15, 2025, corrects hostname verification in SslSocketManager and adds SNI hostname validation (GitHub PR #4002, oss-security).
A successful exploit allows an unauthenticated network-adjacent attacker to intercept or redirect log messages transmitted via the Socket Appender over TLS, compromising the confidentiality and integrity of log data. Sensitive information present in log streams — such as authentication tokens, session identifiers, application errors, or business data — could be exposed or tampered with. Availability is not directly impacted, but log integrity loss could hinder incident detection and response. The vulnerability affects a broad ecosystem of downstream products including IBM Db2, IBM App Connect Enterprise, IBM Cloud Pak for Business Automation, Oracle GoldenGate, Splunk AppDynamics agents, and SAP S/4HANA (IBM Advisory, Oracle CPU Jan 2026).
There is no evidence of active in-the-wild exploitation at this time, and no weaponized exploit kits have been identified. The Apache security page for CVE-2025-68161 serves as the primary public reference, and no standalone PoC exploit code has been published beyond the fix itself (Apache Security). The EPSS score is approximately 0.028% (0.000280), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement for network positioning and a valid CA-trusted certificate, making opportunistic mass exploitation unlikely.
openssl s_server or a custom proxy) that presents the trusted certificate. Because Log4j does not verify the hostname, the TLS handshake will succeed even though the certificate's CN/SAN does not match the intended log receiver's hostname.verifyHostName=true in Log4j Socket Appender configuration combined with a Log4j Core version prior to 2.25.3, indicating the setting is silently ignored.Primary remediation: Upgrade Apache Log4j Core to version 2.25.3 or later, which correctly enforces TLS hostname verification in the Socket Appender (Apache Security, GitHub PR #4002).
Alternative workaround: Configure the Socket Appender to use a private or restricted trust root (custom trust store containing only the specific CA for your log receiver), which limits the set of certificates an attacker could present to impersonate the log server (oss-security).
Vendor patches: Multiple downstream vendors have released updates — Oracle addressed this in the January 2026 and April 2026 Critical Patch Updates (Oracle CPU Jan 2026, Oracle CPU Apr 2026); IBM has issued advisories for Db2, App Connect Enterprise, Cloud Pak for Business Automation, and other products (IBM Advisory); Splunk addressed it in AppDynamics agents in March 2026 (Splunk Advisory).
The vulnerability received moderate attention in the security community, largely due to the high-profile nature of the Log4j library following the Log4Shell incident. Security researchers on Mastodon and Bluesky noted the irony of a new Log4j TLS flaw given the library's history (infosec.exchange). Security news outlets including SecurityOnline, GBHackers, and CyberSecurityNews covered the disclosure, emphasizing that the flaw silently ignores a security configuration that administrators believe is active. The Apache project characterized the severity as "moderate" and released the fix promptly. HeroDevs published a blog noting that Log4j 2.17.x users on older branches remain affected and highlighted the availability of Never-Ending Support (NES) for those unable to upgrade (HeroDevs Blog).
Fix availability across major Linux distributions and their releases.
bionic (esm-apps)
apache-log4j2
devel
apache-log4j2
focal (esm-apps)
apache-log4j2
jammy
apache-log4j2
jammy (esm-apps)
apache-log4j2
noble
apache-log4j2
noble (esm-apps)
apache-log4j2
resolute
apache-log4j2
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."