Skip to content
OpenAdvisories
Critical · 10.0 Known exploited · Ransomware Scanner template Public exploit CVE-2021-44228 EUVD-2021-34768GHSA-jfh8-c2jp-5v3q

Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints

Published Dec 10, 2021 · Updated Oct 21, 2025 · Assigned by apache

Description

Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. From version 2.16.0 (along with 2.12.2, 2.12.3, and 2.3.1), this functionality has been completely removed. Note that this vulnerability is specific to log4j-core and does not affect log4net, log4cxx, or other Apache Logging Services projects.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Log4j2 2.0-beta9 – < log4j-core* log4j-core*

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.15.0-1 —
Debian 13 apache-log4j2 2.15.0-1 —
Debian 12 apache-log4j2 2.15.0-1 —
Debian 11 apache-log4j2 2.15.0-1~deb11u1 DSA-5020-1
Debian 10 apache-log4j2 2.15.0-1~deb10u1 DSA-5020-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 apache-log4j2 2.7-2+deb9u1 DLA-2842-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS apache-log4j2 2.15.0-0.20.04.1 USN-5197-1, USN-5192-1
Ubuntu 18.04 LTS apache-log4j2 2.10.0-2ubuntu0.1 USN-5192-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS apache-log4j2 2.4-2ubuntu0.1~esm1 USN-5192-2
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-apache-cxf +3 3.1.16-4.redhat_00003.1.ep7.el7 RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-hal-console 3.2.17-1.Final_redhat_00001.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-core +7 2.10.4-2.redhat_00004.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-databind 2.8.11.6-2.SP1_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-modules-base +1 2.10.4-4.redhat_00004.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jettison 1.3.8-2.redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-netty +1 4.1.63-1.Final_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-resteasy +16 3.0.27-1.Final_redhat_00001.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-resteasy-rxjava2 +2 3.11.6-1.Final_redhat_00001.1.el7eap RHSA-2025:1747
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-snakeyaml 1.33.0-1.SP1_redhat_00001.1.el7eap RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-velocity 1.7.0-3.redhat_00006.1.ep7.el7 RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.9-2.GA_redhat_00002.1.ep7.el7 RHSA-2025:1747, RHSA-2025:1746
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly-javadocs +2 7.3.12-3.GA_redhat_00002.1.el7eap RHSA-2025:1747
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 9 storm 1.2.3-3.5.1 SUSE-SU-2021:4097-1
SUSE OpenStack Cloud Crowbar 8 storm 1.2.3-3.8.2 SUSE-SU-2021:4096-1
SUSE OpenStack Cloud 9 storm 1.2.3-3.5.1 SUSE-SU-2021:4097-1
SUSE OpenStack Cloud 9 venv-openstack-monasca 2.7.1~dev10-3.25.1 SUSE-SU-2021:4097-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud 8 storm 1.2.3-3.8.2 SUSE-SU-2021:4096-1
SUSE OpenStack Cloud 8 venv-openstack-monasca 2.2.2~dev1-11.32.1 SUSE-SU-2021:4096-1
SUSE HPE Helion OpenStack 8 storm 1.2.3-3.8.2 SUSE-SU-2021:4096-1
SUSE HPE Helion OpenStack 8 venv-openstack-monasca 2.2.2~dev1-11.32.1 SUSE-SU-2021:4096-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed log4j 2.13.2-2.1 openSUSE-SU-2024:11666-1
openSUSE Leap 15.3 disruptor 3.4.4-3.3.1 openSUSE-SU-2021:4107-1
openSUSE Leap 15.3 jakarta-servlet 5.0.0-5.3.1 openSUSE-SU-2021:4107-1
openSUSE Leap 15.3 log4j 2.13.0-4.3.1 openSUSE-SU-2021:4107-1, openSUSE-SU-2021:4094-1, openSUSE-SU-2021:3999-1
openSUSE Leap 15.3 logback 1.2.8-3.3.1 openSUSE-SU-2021:4109-1
openSUSE Leap 15.2 disruptor 3.4.4-lp152.2.3.1 openSUSE-SU-2021:1601-1
openSUSE Leap 15.2 jakarta-servlet 5.0.0-lp152.2.1 openSUSE-SU-2021:1601-1
openSUSE Leap 15.2 log4j 2.13.0-lp152.3.3.1 openSUSE-SU-2021:1601-1, openSUSE-SU-2021:1586-1, openSUSE-SU-2021:1577-1
openSUSE Leap 15.2 logback 1.2.8-lp152.2.3.2 openSUSE-SU-2021:1613-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 aws-kinesis-agent 2.0.4-1.amzn2 ALAS2-2021-1730
Amazon Linux 2 java-1.7.0-openjdk +6 1:1.7.0.261-2.6.22.2.amzn2.0.2 ALAS2-2021-1731
Amazon Linux 2 java-1.8.0-openjdk +15 1:1.8.0.312.b07-1.amzn2.0.2 ALAS2-2021-1731
Amazon Linux 2 java-11-amazon-corretto +2 1:11.0.13+8-2.amzn2 ALAS2-2021-1731
Amazon Linux 2 java-17-amazon-corretto +4 1:17.0.1+12-3.amzn2.1 ALAS2-2021-1731

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.

Metasploit 5 modules

Exploit-DB 3

GitHub 508 repositories · most starred shown

  • fullhunt/log4j-scan ★ 3,424 · Dec 13, 2021

    A fully automated, accurate, and extensive scanner for finding log4j RCE CVE-2021-44228

  • kozmer/log4j-shell-poc ★ 1,843 · Dec 10, 2021

    A Proof-Of-Concept for the CVE-2021-44228 vulnerability.

  • christophetd/log4shell-vulnerable-app ★ 1,143 · Dec 10, 2021

    Spring Boot web application vulnerable to Log4Shell (CVE-2021-44228).

  • 🐱‍💻 ✂️ 🤬 CVE-2021-44228 - LOG4J Java exploit - WAF bypass tricks

  • logpresso/CVE-2021-44228-Scanner ★ 864 · Dec 11, 2021

    Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228

  • f0ng/log4j2burpscanner ★ 838 · Dec 11, 2021

    CVE-2021-44228 Log4j2 BurpSuite Scanner,Customize ceye.io api or other apis,including internal networks

  • mergebase/log4j-detector ★ 642 · Dec 12, 2021

    A public open sourced tool. Log4J scanner that detects vulnerable Log4J versions (CVE-2021-44228, CVE-2021-45046, etc) on your file-system within any application. It is able to even find Log4J instan…

  • corretto/hotpatch-for-apache-log4j2 ★ 498 · Dec 12, 2021

    An agent to hotpatch the log4j RCE from CVE-2021-44228.

  • jas502n/Log4j2-CVE-2021-44228 ★ 467 · Dec 10, 2021

    Remote Code Injection In Log4j

  • fox-it/log4j-finder ★ 439 · Dec 14, 2021

    Find vulnerable Log4j2 versions on disk and also inside Java Archive Files (Log4Shell CVE-2021-44228, CVE-2021-45046, CVE-2021-45105)

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

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

Advisories 32

References