Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2021-44228-workaround-buildpack — Buildpack providing a workaround for CVE-2021-44228 (Log4j RCE exploit) | Kitploit
Tools/GitHubGitHub/alexandreroman/cve-2021-44228-workaround-buildpack
Vulnerability AnalysisExploitationWeb Application ExploitationCloud SecurityDevSecOpsLearning & EducationArchived
GitHubalexandreroman/cve-2021-44228-workaround-buildpack

cve-2021-44228-workaround-buildpack

Buildpack providing a workaround for CVE-2021-44228 (Log4j RCE exploit)

View Repository
3374 years agoNot yet reviewed
Share

Workaround for CVE-2021-44228 (Log4j RCE exploit) as a buildpack

This project shows how to create a CNCF buildpack as a workaround for CVE-2021-44228, a Log4j exploit that results in remote code execution.

By using this buildpack, you can apply a workaround for this exploit for every Java apps. The workaround would simply disable log formatting through the JVM system property log4j2.formatMsgNoLookups with value set to true.

As a long term fix, you should update your apps with Log4j 2.15.0+.

Please don't use this project for production workloads: this is for educational purposes only!

How to use it?

Include this buildpack when building your Java app:

pack build myrepo/myapp -b ghcr.io/alexandreroman/cve-2021-44228-workaround-buildpack -b paketo-buildpacks/java

This repository includes a simple Java app leveraging Log4j (including the RCE exploit). Build this app with the buildpack:

pack build myrepo/myapp -p app -b ghcr.io/alexandreroman/cve-2021-44228-workaround-buildpack -b paketo-buildpacks/java

You can now run this app:

docker run --rm -p 8080:8080 myrepo/myapp
...
2021-12-10 18:58:03.234  INFO 77965 --- [           main] f.a.c.Application                        : Is Log4j2 workaround for CVE-2021-44228 enabled? true

When using kpack for building container images inside your Kubernetes cluster, you need to apply the following steps:

  1. Add the buildpack ghcr.io/alexandreroman/cve-2021-44228-workaround-buildpack to your ClusterStore
  2. Use the buildpack in your ClusterBuilder or Builder

When using VMware Tanzu Build Service, you may use these commands to add the buildpack to your ClusterStore:

kp clusterstore add default -b ghcr.io/alexandreroman/cve-2021-44228-workaround-buildpack

Then add the buildpack to your builder with Tanzu Build Service:

kp clusterbuilder patch mybuilder -b tanzu-buildpacks/java -b alexandreroman/cve-2021-44228-workaround-buildpack

All container images referencing your builder will then be rebuilt, including the workaround for the Log4j RCE exploit.

Enjoy!

Contribute

Contributions are always welcome!

Feel free to open issues & send PR.

License

Copyright © 2021 VMware, Inc. or its affiliates.

This project is licensed under the Apache Software License version 2.0.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    544
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    385
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    279

Explore all tools

Browse our collection of tools

View all tools →