Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2025-68161: TLS hostname verification bypass in Apache Log4j Core Socket Appender

Published Dec 18, 2025 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days3 mentions · peak 2 in a dayToday
CVSS6.3Medium · v4
EPSS0.79%53rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2025-68161CWE-297 · Improper Validation of Certificate…

CVE-2025-68161 is a TLS hostname-verification vulnerability in the Socket Appender of Apache Log4j Core versions 2.0-beta9 through 2.25.2. The appender fails to verify that the peer certificate matches the intended log receiver's hostname, even when hostname verification is explicitly enabled through the verifyHostName configuration attribute or log4j2.sslVerifyHostName system property. An attacker able to intercept or redirect the connection and present a certificate issued by a trusted certificate authority can impersonate the log receiver and intercept or redirect log traffic. The initial fix in version 2.25.3 corrected the system-property configuration path but left the configuration-attribute path unresolved; that remaining issue is tracked as CVE-2026-34477.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise the confidentiality and integrity of log communications by allowing a man-in-the-middle attacker to impersonate the intended TLS log receiver. Log data may be disclosed to an unauthorized recipient, and interception or redirection can undermine the integrity of downstream logging. The vulnerability does not establish arbitrary code execution or a direct availability impact.

Mitigation

If you can’t patch tonight, do this now.

Configure the Socket Appender to use a private or restricted trust root, limiting trusted certificate authorities to those necessary for the intended logging infrastructure. This reduces the set of certificates an attacker could use but does not correct hostname verification. Merely enabling hostname verification on affected versions is insufficient.

Remediation

Patch, then assume compromise.

Upgrade Apache Log4j Core to version 2.25.4 or later, or install the applicable vendor security update for products bundling the library. Version 2.25.3 introduced the fix for CVE-2025-68161 but corrected hostname verification only when enabled through the log4j2.sslVerifyHostName system property. Version 2.25.4 also corrects the remaining verifyHostName configuration-attribute issue tracked as CVE-2026-34477. Explicitly enable hostname verification in the corrected configuration.

Public exploits

Exploits

No validated public exploits yet. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
Every candidate exploit was rejected by Mallory's analysis.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationLog4japplication
FAQ

Frequently asked questions

Is CVE-2025-68161 exploited in the wild?
As of Nov 20, 2026, Mallory has no reports of CVE-2025-68161 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2025-68161?
Yes. As of Nov 20, 2026, Mallory has reports of a public exploit for CVE-2025-68161.
Is there a patch for CVE-2025-68161?
Upgrade Apache Log4j Core to version 2.25.4 or later, or install the applicable vendor security update for products bundling the library. Version 2.25.3 introduced the fix for CVE-2025-68161 but corrected hostname verification only when enabled through the log4j2.sslVerifyHostName system property.
What products are affected by CVE-2025-68161?
Apache Software Foundation Log4j.
How severe is CVE-2025-68161?
CVE-2025-68161 has a CVSS v4 score of 6.3 (Medium) and an EPSS score of 0.79% (53rd percentile) as of Nov 20, 2026.
Activity feed

Recent activity

65 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Nov 3, 2026AlmaLinux 9.2 [TuxCare] Security Update: log4j / log4j-jcl / l... | Tenable®An earlier Apache Log4j TLS hostname-verification vulnerability whose fix covered the log4j2.sslVerifyHostName system property but omitted the XML configuration attribute. That incomplete remediation is the background for CVE-2026-34477.Read more ↗tenable nessus pluginsNews · Nov 3, 2026AlmaLinux 9.2 [TuxCare] Security Update: log4j / log4j-jcl / l... | Tenable®A TLS hostname-verification flaw in Apache Log4j Core's Socket Appender can allow a man-in-the-middle attacker to intercept or redirect log traffic. Exploitation requires control over the network path and a server certificate issued by a certificate authority trusted by the appender. The advisory covers affected Log4j packages on AlmaLinux 9.2. Nessus identifies exposure using self-reported version information rather than testing exploitation. The reported CVSS v3 base score is 4.8 and CVSS v4 base score is 6.3.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: org.apache.logging.log4j:log4j-core: security update to ... | Tenable®An earlier Apache Log4j Core hostname-verification vulnerability. Its fix addressed verification enabled through the log4j2.sslVerifyHostName system property but failed to address the verifyHostName XML configuration attribute. That remaining issue is identified separately as CVE-2026-34477.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: org.apache.logging.log4j:log4j-core: security update to ... | Tenable®A TLS hostname-verification flaw in Apache Log4j Core's Socket Appender can allow a man-in-the-middle attacker to intercept or redirect log traffic. Exploitation requires the attacker to intercept or redirect traffic between the client and log receiver and present a certificate issued by a trusted certification authority. Apache Log4j Core 2.25.3 fixes the issue; using a private or restricted trust root is an alternative mitigation. The reference reports available exploits but does not report exploitation in the wild.Read more ↗
+8 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity28Community discussion across Reddit, Mastodon, and other social sources.