Skip to content
OpenAdvisories
Medium · 5.9 Public exploit CVE-2021-45105 EUVD-2021-2559GHSA-p6xc-xr62-6r2g

Apache Log4j2 does not always protect from infinite recursion in lookup evaluation

Published Dec 18, 2021 · Updated May 29, 2026 · Assigned by apache

Description

Apache Log4j2 versions 2.0-alpha1 through 2.16.0 (excluding 2.12.3 and 2.3.1) did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. This issue was fixed in Log4j 2.17.0, 2.12.3, and 2.3.1.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Log4j2 log4j-core – < 2.17.0 2.17.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache-log4j2 2.17.0-1 —
Debian 13 apache-log4j2 2.17.0-1 —
Debian 12 apache-log4j2 2.17.0-1 —
Debian 11 apache-log4j2 2.17.0-1~deb11u1 DSA-5024-1
Debian 10 apache-log4j2 2.17.0-1~deb10u1 DSA-5024-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 apache-log4j2 2.12.3-0+deb9u1 DLA-2852-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS apache-log4j2 2.17.0-0.20.04.1 USN-5222-1, USN-5203-1
Ubuntu 18.04 LTS apache-log4j2 2.12.4-0ubuntu0.1 USN-5222-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS apache-log4j2 No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7-keycloak +1 15.0.6-1.redhat_00001.1.el7sso RHSA-2022:1463, RHSA-2022:1462
Red Hat JBoss EAP 7 eap7-log4j 2.17.1-1.redhat_00001.1.el7eap RHSA-2022:1297, RHSA-2022:1296
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 log4j 2.17.0-4.13.1 openSUSE-SU-2021:4118-1
openSUSE Leap 15.2 log4j 2.17.0-lp152.3.12.1 openSUSE-SU-2021:1605-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 aws-kinesis-agent 2.0.5-1.amzn2 ALAS2-2021-1733

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.logging.log4j:log4j-core >= 2.4.0, < 2.12.3 2.12.3 GHSA-p6xc-xr62-6r2g
Maven org.apache.logging.log4j:log4j-core >= 2.13.0, < 2.17.0 2.17.0 GHSA-p6xc-xr62-6r2g
Maven org.apache.logging.log4j:log4j-core < 2.3.1 2.3.1 GHSA-p6xc-xr62-6r2g
Maven org.ops4j.pax.logging:pax-logging-log4j2 >= 1.8.0, < 1.9.2 1.9.2 GHSA-p6xc-xr62-6r2g
Maven org.ops4j.pax.logging:pax-logging-log4j2 >= 1.10.0, < 1.10.9 1.10.9 GHSA-p6xc-xr62-6r2g
Maven org.ops4j.pax.logging:pax-logging-log4j2 >= 1.11.0, < 1.11.12 1.11.12 GHSA-p6xc-xr62-6r2g
Maven org.ops4j.pax.logging:pax-logging-log4j2 >= 2.0.0, < 2.0.13 2.0.13 GHSA-p6xc-xr62-6r2g

Advisories 19

References