Exploit database

Vulnerability

CVE-2021-45046

Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack

Vulnerability details

Score
9.0
Severity
critical

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Description

It was found that the fix to address CVE-2021-44228 in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allows attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in an information leak and remote code execution in some environments and local code execution in all environments. Log4j 2.16.0 (Java 8) and 2.12.2 (Java 7) fix this issue by removing support for message lookup patterns and disabling JNDI functionality by default.

CVE Program

Exploit source choices

78 sources
fullhunt/log4j-scan
GH-cc7da95ea94e11f81b2401cd223abf3cGitHubUnofficial GitHub sourcePreferred

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

2021-12-1310 files · 3,423 stars
cybereason/logout4shell
GH-1b05cdec2d918bffb347a2be31483bb4GitHubUnofficial GitHub source

Use Log4Shell vulnerability to vaccinate a victim server against Log4Shell

2021-12-108 files · 1,694 stars
cisagov/log4j-scanner
GH-cbe8caf67e463a19e889996d25c2f107GitHubUnofficial GitHub source

log4j-scanner is a project derived from other members of the open-source community by CISA to help organizations identify potentially vulnerable web services affected by the log4j vulnerabilities.

2021-12-2181 files · 1,279 stars
binkley/modern-java-practices
GH-af6df41b51bc78f4bde351576fbebab6GitHubUnofficial GitHub source

Modern Java/JVM Build Practices

2020-10-0359 files · 974 stars
logpresso/cve-2021-44228-scanner
GH-f14310a5f8f44da4b48497a38324b3f7GitHubUnofficial GitHub source

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

2021-12-1153 files · 866 stars
mergebase/log4j-detector
GH-eb038d8517e2d382eb97b9ac8401f434GitHubUnofficial GitHub source

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 instances that are hidden several layers deep. Works on Linux, Windows, and Mac, and everywhere else Java runs, too! TAG_OS_TOOL, OWNER_KELLY, DC_PUBLIC

2021-12-1222 files · 640 stars
corretto/hotpatch-for-apache-log4j2
GH-b79633c646f57518b5edaccfdb02d136GitHubUnofficial GitHub source

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

2021-12-1263 files · 496 stars
clearml/clearml-server
GH-be6151e17b757adaa65e3c75f175a445GitHubUnofficial GitHub source

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution

2019-06-10323 files · 469 stars
fox-it/log4j-finder
GH-e753b60eed97fbcf25e3c3a072c6bba4GitHubUnofficial GitHub source

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

2021-12-147 files · 438 stars
certcc/cve-2021-44228_scanner
GH-cdebbe0a1b6630cdffc467d5876f3638GitHubUnofficial GitHub source

Scanners for Jar files that may be vulnerable to CVE-2021-44228

2021-12-148 files · 351 stars
back2root/log4shell-rex
GH-34e550fbc7f1155e387aa388c0670de9GitHubUnofficial GitHub source

PCRE RegEx matching Log4Shell CVE-2021-44228 IOC in your logs

2021-12-1315 files · 291 stars
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
alexbakker/log4shell-tools
GH-cc66d8bf83cb8d3032d786d9df6909c6GitHubUnofficial GitHub source

Tool that runs a test to check whether one of your applications is affected by the recent vulnerabilities in log4j: CVE-2021-44228 and CVE-2021-45046

2021-12-1320 files · 85 stars
lijiejie/log4j2_vul_local_scanner
GH-481b66b6f43c57013d4cf747372da1aaGitHubUnofficial GitHub source

Log4j 漏洞本地检测脚本。 Scan all java processes on your host to check whether it's affected by log4j2 remote code execution vulnerability (CVE-2021-45046)

2021-12-203 files · 85 stars
cyb3rward0g/log4jshell-lab
GH-e7892c29152c3dbd79c75e2833113439GitHubUnofficial GitHub source

cyb3rward0g/log4jshell-lab source repository

2021-12-1167 files · 70 stars
dtact/divd-2021-00038--log4j-scanner
GH-8c1f0dc79241b4e237015a9909238101GitHubUnofficial GitHub source

Scan systems and docker images for potential log4j vulnerabilities. Able to patch (remove JndiLookup.class) from layered archives. Will detect in-depth (layered archives jar/zip/tar/war and scans for vulnerable Log4J versions (CVE-2021-44228, CVE-2021-45046 and CVE-2021-45105). Binaries for Windows, Linux and OsX, but can be build on each platform supported by supported Golang.

2021-12-1223 files · 46 stars
1lann/log4shelldetect
GH-77884fd0ac9157444bcac34dccce22d9GitHubUnofficial GitHub source

Rapidly scan filesystems for Java programs potentially vulnerable to Log4Shell (CVE-2021-44228) or "that Log4j JNDI exploit" by inspecting the class paths inside files

2021-12-119 files · 45 stars
contrast-security-oss/safelog4j
GH-33940545281a69ffe02038a9398d0ed4GitHubUnofficial GitHub source

Safelog4j is an instrumentation-based security tool to help teams discover, verify, and solve log4shell vulnerabilities without scanning or upgrading

2021-12-1518 files · 44 stars
hynekpetrak/log4shell-finder
GH-4f9ccfd274dd746973d20437a95b5e43GitHubUnofficial GitHub source

Fastest filesystem scanner for log4shell (CVE-2021-44228, CVE-2021-45046) and other vulnerable (CVE-2017-5645, CVE-2019-17571, CVE-2022-23305, CVE-2022-23307 ... ) instances of log4j library. Excellent performance and low memory footprint.

2021-12-149 files · 39 stars
y0-kan/log4jshell-scan
GH-8181fa86b5a5b1ba92f8c37069628049GitHubUnofficial GitHub source

log4j2 RCE漏洞(CVE-2021-44228)内网扫描器,可用于在不出网的条件下进行漏洞扫描,帮助企业内部快速发现Log4jShell漏洞。

2021-12-2018 files · 38 stars
darkarnium/log4j-cve-detect
GH-a76f4cc8411e76d0bd65fad943c4fc03GitHubUnofficial GitHub source

Detections for CVE-2021-44228 inside of nested binaries

2021-12-1127 files · 35 stars
apache/solr-docker
GH-44a5310c318e440e79dc8a1eb4b55b0fGitHubUnofficial GitHub source

Official Dockerfile for Apache Solr

2021-12-2219 files · 32 stars
r3kind1e/log4shell-obfuscated-payloads-generator
GH-57dbbec998cea013f2521f1987888323GitHubUnofficial GitHub source

Generate primary obfuscated or secondary obfuscated CVE-2021-44228 or CVE-2021-45046 payloads to evade WAF detection.

2022-05-0927 files · 25 stars
cckuailong/log4j_cve-2021-45046
GH-aaf9dccae3b8f1f8ac08fc8043a8a227GitHubUnofficial GitHub source

Log4j 2.15.0 Privilege Escalation -- CVE-2021-45046

2021-12-1511 files · 22 stars
bashofmann/hacking-kubernetes
GH-5cfb9db52eb16eb26ac10eb55ca78e12GitHubUnofficial GitHub source

bashofmann/hacking-kubernetes source repository

2023-05-2320 files · 13 stars
ossie-git/log4shell_sentinel
GH-f284c7b8400dcb3c41b535c773adb47dGitHubUnofficial GitHub source

A Smart Log4Shell/Log4j/CVE-2021-44228 Scanner

2021-12-2210 files · 13 stars
xsultan/log4jshield
GH-14d1b9ab1fe45b630cac1c921461aeabGitHubUnofficial GitHub source

Log4j Shield - fast ⚡, scalable and easy to use Log4j vulnerability CVE-2021-44228 finder and patcher

2021-12-144 files · 13 stars
byt3n33dl3/thc-nuclei
GH-52a10c500a228f8a90e9d923b09c2572GitHubUnofficial GitHub source

🧛🏻 Vulnerability discovery frameworks based on https://projectdiscovery.io

2024-10-261,568 files · 12 stars
cgcl-codes/phunter
GH-96ee75e96175cd25f49b9971f46c730aGitHubUnofficial GitHub source

cgcl-codes/phunter source repository

2023-05-2772 files · 12 stars
cgcl-codes/libhunter
GH-e8f11a7d9ff8fb302791f3276a09be39GitHubUnofficial GitHub source

cgcl-codes/libhunter source repository

2024-09-14285 files · 10 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
immunityinc/log4j-jndiserver
GH-9712eb91924f9a3c0e4695e5ecda89b0GitHubUnofficial GitHub source

This project will help to test the Log4j CVE-2021-44228 vulnerability.

2021-12-1711 files · 9 stars
dxc-strikeforce/burp-log4j-hammertime
GH-e6df34daf563f341613769a6b310dcd9GitHubUnofficial GitHub source

Burp Active Scan extension to identify Log4j vulnerabilities CVE-2021-44228 and CVE-2021-45046

2021-12-1611 files · 8 stars
r00thunter/log4shell
GH-90b4cb50be9fd790e65fc9aebaee443eGitHubUnofficial GitHub source

Generic Scanner for Apache log4j RCE CVE-2021-44228

2021-12-225 files · 7 stars
demining/log4j-vulnerability
GH-dc2df5560e677d120d9c619ccea19cceGitHubUnofficial GitHub source

Vulnerability CVE-2021-44228 allows remote code execution without authentication for several versions of Apache Log4j2 (Log4Shell). Attackers can exploit vulnerable servers by connecting over any protocol, such as HTTPS, and sending a specially crafted string.

2023-01-3148 files · 6 stars
christian-taillon/log4shell-hunting
GH-6fb043491e72ee6c677cceeded0ac8cfGitHubUnofficial GitHub source

This repo exists to aid hunters in discovering and investigating log4j attacks against their organization.

2021-12-2012 files · 4 stars
dbzoo/log4j_scanner
GH-49236a7089a76e27bf7511b98c852ad2GitHubUnofficial GitHub source

Fast filesystem scanner for CVE-2021-44228

2021-12-153 files · 4 stars
theinterception/log4j-simulation-tool
GH-e8c3cf9f3c027cba9134534e3040c591GitHubUnofficial GitHub source

Vulnerability analysis, patch management and exploitation tool forCVE-2021-44228 / CVE-2021-45046 / CVE-2021-4104

2021-12-1939 files · 4 stars
ananya-0306/log-4j-scanner
GH-a675eefa572e55bd53ad125a08d10b26GitHubUnofficial GitHub source

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

2022-02-2412 files · 3 stars
anonymous-phunter/phunter
GH-a739f656f9f62b169e89307c417f5bdbGitHubUnofficial GitHub source

anonymous-phunter/phunter source repository

2022-11-14170 files · 3 stars
brechtsanders/find_log4j
GH-3eaf49383937fd61d56f59a88f29fa27GitHubUnofficial GitHub source

Tool to search system for log4j-*.jar files

2021-12-169 files · 3 stars
avwolferen/sitecore.solr-log4j-mitigation
GH-550880f80c4e737e331bc92873a317deGitHubUnofficial GitHub source

This repository contains a script that you can run on your (windows) machine to mitigate CVE-2021-44228

2021-12-135 files · 2 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
tasooshi/horrors-log4shell
GH-6f634c3d19d604ac717c60e8c80049f3GitHubUnofficial GitHub source

A micro lab for CVE-2021-44228 (log4j)

2021-12-1218 files · 2 stars
adp-dynatrace/dt-appsec-powerup
GH-80017d977f3addc0cbf1bfb5d69ccfcaGitHubUnofficial GitHub source

Extension for Dynatrace App Sec Reporting

2022-05-2616 files · 1 stars
afrouper/mavendependencycve-scanner
GH-644ef61166d7769bf9317dbb6d5b99c3GitHubUnofficial GitHub source

A simple and fast Maven dependency vulnerability scanner. Check existence of vuln JARs (transitive)

2021-12-2343 files · 1 stars
ajread4/cve_pull
GH-21f4a67b1d53b50b74ae776f0d234021GitHubUnofficial GitHub source

Tool to pull information from the National Vulnerability Database (NVD) Common Vulnerabilities and Exposures (CVEs)

2023-12-186 files · 1 stars
andalik/log4j-filescan
GH-9dd00d9c5a3eaeafd060b268c1579172GitHubUnofficial GitHub source

Scanner recursivo de arquivos desenvolvido em Python 3 para localização e varredura de versões vulneráveis do Log4j2, contemplando análise interna de arquivos JAR (CVE-2021-44228, CVE-2021-45046, CVE-2021-45105 e CVE-2021-44832)

2021-12-164 files · 1 stars
aschen/log4j-patched
GH-68b89e61e6ddd22c770b48488b82837dGitHubUnofficial GitHub source

Provide patched version of Log4J against CVE-2021-44228 and CVE-2021-45046 as well as a script to manually patch it yourself

2021-12-1742 files · 1 stars
demonrvm/log4shellremediation
GH-7babd6c157c54a167a32a70e3d8832eaGitHubUnofficial GitHub source

A vulnerable Spring Boot application that uses log4j and is vulnerable to CVE-2021-44228, CVE-2021-44832, CVE-2021-45046 and CVE-2021-45105

2023-04-0214 files · 1 stars
googlesky/cve-2021-45046
GH-67fa603282196336558f291a9e0d7190GitHubUnofficial GitHub source

Log4j 2.15.0 incomplete Log4Shell fix via Thread Context Map patterns. Fixed in 2.16.0. Differential: JNDI reached on vuln, refused on fixed

2026-11-2626 files · 1 stars
manishkanyal/log4j-scanner
GH-e93a24e04579d4eebd522fa4a5e0f321GitHubUnofficial GitHub source

A Log4j vulnerability scanner is used to identify the CVE-2021-44228 and CVE_2021_45046

2022-04-175 files · 1 stars
rgl/log4j-log4shell-playground
GH-467d02e0d5d36c448ed21eea733ad9b4GitHubUnofficial GitHub source

A playground for poking at the Log4Shell (CVE-2021-44228) vulnerability mitigations

2021-12-154 files · 1 stars
rk-000/log4j_scan_advance
GH-09959b0116ca7c11d30c851680fff6c3GitHubUnofficial GitHub source

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

2021-12-197 files · 1 stars
trickyearlobe/inspec-log4j
GH-cd8584e351d6247daba0de2a46054e20GitHubUnofficial GitHub source

An Inspec profile to check for Log4j CVE-2021-44228 and CVE-2021-45046

2021-12-196 files · 1 stars
abozzoni/cve-app
GH-312c0babe89840f296d200d0d9691318GitHubUnofficial GitHub source

abozzoni/cve-app source repository

2024-09-036 files · 0 stars
arabindadora/log4shell
GH-548e0e5f36df2c6046518eb666ca1a73GitHubUnofficial GitHub source

Log4Shell (CVE-2021-44228) PoC

2025-09-2912 files · 0 stars
aymankhder/og4j-scanner
GH-797a92fdfa9658f9d5f525259eb2df5aGitHubUnofficial GitHub source

aymankhder/og4j-scanner source repository

2021-12-2279 files · 0 stars
bananaacaat/log4j-detector
GH-3e0caea2360cd7d3bd553edc4ae2d485GitHubUnofficial GitHub source

bananaacaat/log4j-detector source repository

2024-06-1647 files · 0 stars
benmurphyy/log4shell
GH-884e1b51f05cb3edec84320eff9c952dGitHubUnofficial GitHub source

Log4shell Proof of Exploits (PoCs) on a simple Spring Boot web application.

2023-03-28134 files · 0 stars
binana354/nuclei
GH-c10f670e89de919ea1640660f508ea6cGitHubUnofficial GitHub source

binana354/nuclei source repository

2025-02-18940 files · 0 stars
bmw-inc/log4shell
GH-b7cf6ba0e7c923f178c9e5e0f62bbe97GitHubUnofficial GitHub source

bmw-inc/log4shell source repository

2022-11-0497 files · 0 stars
boupouchi/log4j-detector-pfa
GH-ae3b7b5490115d45909ddc826c5e186eGitHubUnofficial GitHub source

boupouchi/log4j-detector-pfa source repository

2024-04-1522 files · 0 stars
codebling/wso2-docker-patches
GH-2f21a45bf862b3e10972df1f968a7714GitHubUnofficial GitHub source

codebling/wso2-docker-patches source repository

2021-12-155 files · 0 stars
codie3/docker-jmeter
GH-120e027b3287f3393052dd1aeee327e9GitHubUnofficial GitHub source

codie3/docker-jmeter source repository

2024-07-1612 files · 0 stars
coolaid003/security-research
GH-ae95d984cff088ddc3791e21722685b0GitHubUnofficial GitHub source

coolaid003/security-research source repository

2024-08-29850 files · 0 stars
cyb3rpeace/log4j-scan
GH-efab1076dcf7f70e2fcb53419fbdfaaeGitHubUnofficial GitHub source

cyb3rpeace/log4j-scan source repository

2023-01-0910 files · 0 stars
dansi/powershell-log4j-scanner
GH-8570c8bd4ceb898197ce213c61bcd735GitHubUnofficial GitHub source

can find, analyse and patch Log4J files because of CVE-2021-44228, CVE-2021-45046

2021-12-183 files · 0 stars
danyk20/pentest
GH-39ee27138fd7690068876403f092a2b1GitHubUnofficial GitHub source

Automation of Windows Domain Controller penetration tests using Python

2023-03-2823 files · 0 stars
dev-thefirewall/nuclei-test
GH-e612b8ae9ccd0ae8b56ede6619940e61GitHubUnofficial GitHub source

dev-thefirewall/nuclei-test source repository

2025-04-06943 files · 0 stars
devghi/jmeter-docker
GH-df0bda3b85c837330955c9b2e3b9f149GitHubUnofficial GitHub source

devghi/jmeter-docker source repository

2022-09-1811 files · 0 stars