Log4Shell is a historical vulnerability, not a new event. Public information and proof-of-concept code appeared on 9 December 2021, and the issue was assigned CVE-2021-44228. It became exceptional because data that an application merely recorded could trigger name resolution and, under the right conditions, remote code execution in the Java process.

The practical question in 2026 is no longer “have we heard of Log4Shell?” It is whether a specific running service still contains reachable vulnerable log4j-core, whether the selected vendor fix is actually loaded by every process, and whether earlier exploitation needs a separate investigation. A dependency scanner can start that answer, but it cannot complete it alone.

Establish the Historical Context

Apache describes CVE-2021-44228 as a flaw in Log4j 2 JNDI lookups that let an attacker controlling a log message or parameter cause arbitrary code to be loaded from an LDAP service. CERT-EU recorded the public disclosure and proof of concept on 9 December 2021. Microsoft later reported exploitation by commodity and nation-state actors, including activity associated with ransomware access.

Those observations justify urgent historical treatment, but they do not prove that every Java application was compromised. Exposure required a vulnerable component and a path by which attacker-controlled data reached the relevant logging behavior. Successful code execution additionally depended on the runtime, class path, network access, lookup target, and process privileges. The code would run with the privileges of the affected Java application, not automatically as root or an administrator.

Patching remains the first action when a vulnerable supported product is found. A penetration test should never postpone a vendor update so that an exploit can be demonstrated.

Read the Chain as Separate Decisions

The famous shorthand—“a string in a log becomes RCE”—hides several decisions that matter during assessment:

  1. An external value reaches an application path, such as a request field, protocol message, or integration event.
  2. The application or a dependency records that value through a vulnerable Log4j Core implementation.
  3. Log4j interprets the value as a lookup rather than inert text.
  4. The Java process can reach the referenced naming service.
  5. The runtime and surrounding configuration permit a harmful follow-on effect.
Log4Shell evidence chain
  1. InputIdentify the authorized endpoint and attacker-controlled field that can reach logging
  2. RuntimeConfirm that the running process loads affected Log4j Core code
  3. LookupObserve only a bounded, non-sensitive interaction with an approved receiver
  4. EffectDistinguish name resolution from response use and from code execution
  5. RemediationDeploy a supported fixed build, restart every process, and repeat the narrow scenario

Each broken link reduces exposure, but only removing or fixing the vulnerable component closes the software flaw. An outbound firewall rule can block one route while leaving vulnerable code deployed. A Java upgrade can change exploitability in some environments, but Java version alone is not a Log4j fix. A DNS or LDAP interaction establishes that some lookup occurred; it does not establish that the response was read, a class was loaded, or commands ran.

Inventory log4j-core, Not the Word “Log4j”

CVE-2021-44228 affected log4j-core. Apache states that an application using only log4j-api without log4j-core is not affected by this CVE. The distinction matters because a software inventory may show the API while the actual logging implementation is Logback, or may show no obvious dependency while Core is embedded inside a vendor package or shaded application archive.

Build a runtime inventory with four fields: deployed artifact, component and provenance, running instance, and reachable input path. Check application archives, “fat” JARs, app-server shared libraries, container layers, sidecars, vendor appliances, batch workers, and old replicas. Development dependency declarations and an SBOM are useful inputs, but the deployed bytes and loaded runtime decide the answer. The guide to verifying a vulnerable component in a deployed service covers this evidence gap in more detail.

For an agreed scope, Pentest.red could help connect an authorized input path to the process that handles it and reconcile source, build, image, and loaded-library evidence. That diagnostic mapping tells engineers which instance needs action; it does not turn a source-code dependency match into proof about every running replica.

Log4j 1 is not “an older affected version of the same bug.” Apache says Log4j 1 reached end of life in 2015 and lacks the Log4j 2 message-lookup mechanism. It has separate issues, including configurations that use JNDI appenders, and should be migrated rather than declared safe by association.

Treat the First Fixes as History, Not Today’s Target

The rapid sequence of December 2021 releases explains why “we installed the first fixed version” is weak evidence today. This table intentionally covers the upstream 2.13-and-later mainline for Java 8 and the three advisories needed to understand that sequence. CVE-2021-44228 also affected older 2.x branches, which had separate historical backport releases. Historical minima describe what each release addressed at that moment; they are not a recommendation to deploy those old branches now.

Scroll sideways to compare

AdvisoryUpstream 2.13+ mainline range relevant at disclosureHistorical first fixing releaseWhy that was not the final stopping point
CVE-2021-442282.13.0 through 2.14.12.15.0Its protection was incomplete for CVE-2021-45046 in certain non-default configurations
CVE-2021-450462.13.0 through 2.15.02.16.0A separate recursion denial-of-service issue was then addressed as CVE-2021-45105
CVE-2021-451052.13.0 through 2.16.0 in the Java 8 mainline range2.17.0Later maintenance continued; an old historical minimum is not a supported-current target

CVE-2021-45046 involved certain non-default PatternLayout configurations with a Thread Context Lookup and attacker-controlled context-map (MDC) values. CVE-2021-45105 also required specific configuration and attacker-controlled MDC input: recursive lookups caused denial of service. These are different conditions and effects, rather than three names for one code-execution chain.

There were additional Log4j advisories during that period with different prerequisites. They should not be collapsed into “the same unauthenticated Log4Shell chain.” For current remediation, select a maintained, patched upstream release compatible with the application or the exact supported build named by the product vendor. Do not standardize on 2.15.0, 2.16.0, or an end-of-maintenance Java 6/7 branch merely because it appears in a historical advisory.

The current Apache documentation lists a Java 8 minimum for the Log4j 2 runtime and publishes newer maintained lines. That still does not make the newest upstream number universally installable in packaged products. A commercial product may ship a tested vendor build or a backported security patch. Red Hat’s backporting policy explains why an older-looking package version can include a fix, so verify the package revision against that vendor’s advisory instead of judging only the upstream-looking version string.

Patch, Restart, and Prove the Running State

A remediation record should connect the advisory to the process that serves traffic. Use a sequence that can survive review:

Scroll sideways to compare

StepEvidence to retainCommon false conclusion
IdentifyArtifact digest, package origin, nested archive path, owner“The repository dependency was updated, so production is fixed”
Select fixUpstream or vendor advisory and supported package/build“Any version numbered above the first 2021 fix is suitable”
DeployImage or package digest on every replica and worker“The registry contains a fixed image, so all containers use it”
RestartNew process/container start and rollout completion“Replacing a JAR on disk changed already-running Java code”
Verify runtimeLoaded component or equivalent vendor evidence tied to the process“CLI output from one host represents the whole service”
RetestNamed build, endpoint, marker, receiver, observation window, result“No callback means no vulnerable path exists”

Microsoft’s Log4j response explicitly notes that the application must be restarted after applying the update. In a containerized service, update the applicable base or vendor image, rebuild custom application images where required, deploy the checked digest, and confirm every replica and background worker rolled over. A partial rollout leaves a real vulnerable population behind even when the deployment dashboard is mostly green.

Temporary settings or class-removal workarounds were important during the emergency, but some early measures did not cover the full later advisory chain. If a legacy product still relies on a workaround, record the exact version, vendor instruction, scope, and residual risk. Treat it as a time-bound exception, not as proof equivalent to a supported patched build.

Verify Reachability Without Turning the Retest into an Exploit

For an authorized retest, first prove the test prerequisites: the target build is the one under review, the chosen endpoint reaches the expected logging path, and the approved receiver is observable. Then use a unique, non-sensitive marker that can produce only the minimum agreed external interaction. Do not place secrets, customer data, internal hostnames, commands, or executable content in the marker.

Interpret the signal narrowly. DNS resolution can demonstrate that a name reached an approved receiver. A subsequent protocol connection can establish outbound reachability. Neither proves response consumption or code execution. The existing guide to scoping external callback evidence explains receiver ownership, delayed observations, attribution, and why silence is inconclusive when egress or monitoring is blocked.

Preserve the real outbound policy during retest. If a network control blocks the interaction, report two results: the egress control prevented the observed channel, and application-level removal of the vulnerable behavior was not directly exercised. Do not weaken production filtering merely to obtain a callback. Destructive proof is unnecessary when package, runtime, restart, and bounded reachability evidence together establish remediation.

Separate Fix Verification from Compromise Assessment

A fixed component prevents exploitation of the corrected flaw going forward; it does not revoke stolen credentials, remove a web shell, undo a changed scheduled task, or explain suspicious outbound traffic from before the patch. Microsoft’s observations of real exploitation make that distinction operational rather than theoretical.

If exposure existed during the exploitation period, create a separate incident question. Review relevant historical logs, unexpected child processes, persistence changes, credentials used by the Java service, and outbound destinations according to the organization’s response plan. Absence of retained telemetry limits the conclusion; it does not prove that exploitation never happened. A penetration test and a compromise investigation answer different questions.

Buy the Retest Around a Named Runtime and Decision

The pentest scope planner should identify the application, image or package revision, Java processes, replicas, background workers, authorized endpoints, and approved callback receiver. It should also define the decision: confirm that attacker-controlled data no longer reaches vulnerable lookup behavior in the named running build, while preserving existing egress controls.

Within a cross-layer penetration test, Pentest.red could help reconcile build and runtime evidence, manually trace which authorized inputs reach logging, and rank exposed services by real reachability. Engineers should receive the affected process and artifact, the bounded evidence, prerequisites, impact, and remediation priority. After rollout, a narrow retest can repeat the agreed path against the recorded build and confirm both the loaded fix and the application behavior.

The defensible closure statement is therefore specific: every in-scope process was mapped to patched upstream or vendor evidence, restarted onto the recorded artifact, and retested under stated conditions. It is stronger than “the scanner is green,” and more honest than claiming that a silent callback proves the service was never vulnerable or compromised.

PENTEST.RED

Discuss pentest scope and pricing

We start by agreeing on systems, access, constraints and the expected evidence.

Prepare your testing scope

Based on in-depth research, edited for clarity and practical use.

PENTEST.RED / RED JOURNAL