LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2021-45046: Apache Log4j2 Deserialization of Untrusted Data Vulnerability

RBRecent Breaches Vulnerability Intelligence·May 1, 2023
Critical⚠ Actively exploited (CISA KEV)Ransomware-linked
Critical
Severity
Active
CISA KEV
Yes
Ransomware use
May 22, 2023
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-45046 to its Known Exploited Vulnerabilities catalog on May 1, 2023, with a federal patch deadline of May 22, 2023 — meaning attackers are actively using it. If you run the affected software, patch it immediately. Ransomware crews are known to exploit this flaw.

Apache Log4j2 contains a deserialization of untrusted data vulnerability due to the incomplete fix of CVE-2021-44228, where the Thread Context Lookup Pattern is vulnerable to remote code execution in…

CVE-2021-45046 is a vulnerability in Apache Log4j2 that allows remote code execution under certain non-default configurations. It stems from an incomplete fix for the earlier Log4Shell issue (CVE-2021-44228) and involves the Thread Context Lookup Pattern. Because Log4j2 is widely embedded in Java applications, servers, and enterprise software, successful exploitation can give an attacker control of the host. This vulnerability has been used by ransomware operators, making prompt action essential for IT and security teams.

Defenders should treat any system running Log4j2 as potentially exposed until they confirm the configuration and apply the vendor-recommended update. Specifics of affected releases and exact configuration triggers must be verified against the Apache Log4j security advisory.

How it works

The underlying weakness is classified as CWE-917 and described as a deserialization of untrusted data flaw. In Log4j2, the Thread Context Lookup Pattern can process attacker-controlled data in ways that were not fully blocked by the prior remediation. When the library is configured in certain non-default modes, an attacker who can influence log messages or thread-context values may trigger remote code execution. The attack surface is therefore limited to environments that enable the vulnerable lookup behavior; default installations are less likely to be directly exploitable, but many production systems deliberately enable advanced lookup features. Exact payload construction and required configuration flags are not detailed here; teams must consult the vendor advisory for the precise conditions.

Am I affected? How to find it in your systems

Apache Log4j2 commonly appears as a dependency inside Java applications, application servers, middleware, SIEM collectors, and custom enterprise services. Inventory steps include:

Because the vulnerability requires non-default settings, simply finding the library is not sufficient; confirm whether the Thread Context Lookup Pattern is active. Telemetry signs of exploitation are similar to other Log4j remote-code-execution attempts: unexpected outbound network connections from Java processes, anomalous DNS or LDAP lookups, and sudden process spawning. Correlate these indicators with application logs that contain unusual lookup strings. Always cross-check version and configuration details against the official Apache advisory rather than relying on third-party lists.

How to remediate

The primary remediation is to apply the updates published by the Apache Log4j project, following the vendor instructions referenced by CISA. After patching:

Document the change window and verify that logging still functions as required after the update.

If you can't patch immediately

Until the vendor update can be applied, reduce risk with compensating controls:

These measures buy time but do not replace the official patch.

If your data may have been exposed

Actively exploited vulnerabilities of this class frequently lead to ransomware deployment and data theft. If logs or telemetry indicate possible compromise, treat the host as breached: isolate it, preserve forensic evidence, and begin incident-response procedures. Organizations can also run a free exposure scan of their email addresses against known breach data sets to determine whether credentials or personal information have already appeared in public dumps. Confirm all technical details and remediation steps against the Apache Log4j advisory before closing the incident.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedApache · Log4j2
WeaknessCWE-917
Added to CISA KEVMay 1, 2023
Federal patch deadlineMay 22, 2023
Known ransomware useYes
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities