Skip to content
DoS Advisory Intermediate CVE-2021-45105

Apache Log4j StrSubstitutor Uncontrolled Recursion Denial-of-Service Vulnerability

The StrSubstitutor class in Apache Log4j fails to properly validate user-supplied data, leading to uncontrolled recursion and resource exhaustion. A remote unauthenticated attacker could exploit this to cause a denial-of-service condition on the affected process.

Guy Lederfein Follow

Originally disclosed on Zero Day Initiative

Medium 5.3 View original

This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Apache Log4j. Authentication is not required to exploit this vulnerability.

Guy Lederfein of Trend Micro Security Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the StrSubstitutor class does not limit recursion depth when processing user-supplied substitution patterns, allowing an attacker to trigger unbounded recursive evaluation.

Impact

An unauthenticated remote attacker could cause a denial-of-service condition on the affected process.

What the attacker needed

None

The fix

Apache issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Apache Log4j is a logging library used by many Java applications. This bug lets someone send specially crafted input that makes the logging code call itself over and over until the program runs out of resources and stops working, which is a denial of service.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Guy Lederfein

View all

7 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.