{
  "id": "CVE-2021-45046",
  "url": "https://poc.griffinguard.io/cve/CVE-2021-45046",
  "published_at": "2021-12-14T16:55:09Z",
  "title": "Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack",
  "vendor": "Apache Software Foundation",
  "product": "Apache Log4j",
  "cvss": {
    "score": 9,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2023-05-01",
    "known_ransomware_campaign_use": "Known",
    "days_after_publication": 503
  },
  "first_poc": {
    "created_at": "2021-12-15T05:48:53Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.5,
    "repo": "cckuailong/Log4j_CVE-2021-45046",
    "source": "github"
  },
  "poc_repo_count": 8,
  "exploit_count": 2,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-917",
  "cvss_by_source": {
    "cisa-adp": 9
  },
  "repos": [
    {
      "repo": "Puliczek/CVE-2021-44228-PoC-log4j-bypass-words",
      "url": "https://github.com/Puliczek/CVE-2021-44228-PoC-log4j-bypass-words",
      "created_at": "2021-12-10T22:35:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 953,
      "is_poc": "no",
      "kind": "unrelated",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-05-08T14:52:35Z"
    },
    {
      "repo": "sschakraborty/SecurityPOC",
      "url": "https://github.com/sschakraborty/SecurityPOC",
      "created_at": "2021-12-12T10:41:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2015-12-11T16:56:06Z"
    },
    {
      "repo": "thedevappsecguy/Log4J-Mitigation-CVE-2021-44228--CVE-2021-45046--CVE-2021-45105--CVE-2021-44832",
      "url": "https://github.com/thedevappsecguy/Log4J-Mitigation-CVE-2021-44228--CVE-2021-45046--CVE-2021-45105--CVE-2021-44832",
      "created_at": "2021-12-13T07:24:02Z",
      "first_seen_at": "2026-11-14T22:17:34.881Z",
      "stars": 2,
      "is_poc": "no",
      "kind": "list",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-04-08T19:03:35Z"
    },
    {
      "repo": "cckuailong/Log4j_CVE-2021-45046",
      "url": "https://github.com/cckuailong/Log4j_CVE-2021-45046",
      "created_at": "2021-12-15T05:48:53Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 22,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-02-03T05:07:33Z"
    },
    {
      "repo": "EMSeek/log4poc",
      "url": "https://github.com/EMSeek/log4poc",
      "created_at": "2021-12-15T07:17:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2020-04-17T03:47:20Z"
    },
    {
      "repo": "BobTheShoplifter/CVE-2021-45046-Info",
      "url": "https://github.com/BobTheShoplifter/CVE-2021-45046-Info",
      "created_at": "2021-12-15T09:01:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-10-01T11:14:13Z"
    },
    {
      "repo": "tejas-nagchandi/CVE-2021-45046",
      "url": "https://github.com/tejas-nagchandi/CVE-2021-45046",
      "created_at": "2021-12-15T16:28:11Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-01-04T15:49:21Z"
    },
    {
      "repo": "pravin-pp/log4j2-CVE-2021-45046",
      "url": "https://github.com/pravin-pp/log4j2-CVE-2021-45046",
      "created_at": "2021-12-15T19:19:52Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-06-22T06:17:30Z"
    },
    {
      "repo": "mergebase/log4j-samples",
      "url": "https://github.com/mergebase/log4j-samples",
      "created_at": "2021-12-16T18:12:29Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 14,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2020-10-29T19:41:36Z"
    },
    {
      "repo": "lukepasek/log4jjndilookupremove",
      "url": "https://github.com/lukepasek/log4jjndilookupremove",
      "created_at": "2021-12-17T18:59:16Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "code never talks to a target"
      ],
      "status": "analyzed",
      "owner_created_at": "2014-02-22T14:15:10Z"
    },
    {
      "repo": "ludy-dev/cve-2021-45046",
      "url": "https://github.com/ludy-dev/cve-2021-45046",
      "created_at": "2021-12-18T11:43:56Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-08-30T08:00:41Z"
    },
    {
      "repo": "lijiejie/log4j2_vul_local_scanner",
      "url": "https://github.com/lijiejie/log4j2_vul_local_scanner",
      "created_at": "2021-12-20T12:07:41Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 85,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-01-02T09:17:25Z"
    },
    {
      "repo": "CaptanMoss/Log4Shell-Sandbox-Signature",
      "url": "https://github.com/CaptanMoss/Log4Shell-Sandbox-Signature",
      "created_at": "2021-12-24T09:02:55Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "detection",
      "suspicion_score": 40,
      "suspicious": false,
      "suspicion_reasons": [
        "contains executables (log4j.exe)"
      ],
      "status": "analyzed",
      "owner_created_at": "2015-02-02T13:31:29Z"
    },
    {
      "repo": "lwollan/log4j-exploit-server",
      "url": "https://github.com/lwollan/log4j-exploit-server",
      "created_at": "2022-01-07T08:47:04Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-04-08T19:26:56Z"
    },
    {
      "repo": "VMsec/log4jScan_Modify",
      "url": "https://github.com/VMsec/log4jScan_Modify",
      "created_at": "2022-01-12T14:14:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-01-26T03:03:39Z"
    },
    {
      "repo": "hbeooooooom/Log4shell_poc",
      "url": "https://github.com/hbeooooooom/Log4shell_poc",
      "created_at": "2024-05-06T01:49:35Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-02-22T07:31:08Z"
    },
    {
      "repo": "shaily29-eng/CyberSecurity_CVE-2021-45046",
      "url": "https://github.com/shaily29-eng/CyberSecurity_CVE-2021-45046",
      "created_at": "2024-05-09T03:04:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-12-18T12:59:20Z"
    },
    {
      "repo": "yonocruzhj/AIG---Tasks",
      "url": "https://github.com/yonocruzhj/AIG---Tasks",
      "created_at": "2024-12-19T02:31:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-09-25T07:41:02Z"
    },
    {
      "repo": "ifconfig-me/Log4Shell-Payloads",
      "url": "https://github.com/ifconfig-me/Log4Shell-Payloads",
      "created_at": "2025-07-23T13:55:58Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 8,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-01-24T05:36:54Z"
    },
    {
      "repo": "mcpmark-eval-liuhezi/log4shell-audit-lab",
      "url": "https://github.com/mcpmark-eval-liuhezi/log4shell-audit-lab",
      "created_at": "2026-10-22T04:29:56Z",
      "first_seen_at": "2026-11-15T03:24:29.718Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-07-15T08:36:12Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "org.apache.logging.log4j:log4j-core",
        "ranges": [
          "\u003e= 2.13.0, \u003c 2.16.0"
        ],
        "fixed_in": [
          "2.16.0"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.apache.logging.log4j:log4j-core",
        "ranges": [
          "\u003e= 2.4.0, \u003c 2.12.2"
        ],
        "fixed_in": [
          "2.12.2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.ops4j.pax.logging:pax-logging-log4j2",
        "ranges": [
          "\u003e= 1.8.0, \u003c 1.9.2"
        ],
        "fixed_in": [
          "1.9.2"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.ops4j.pax.logging:pax-logging-log4j2",
        "ranges": [
          "\u003e= 1.10.0, \u003c 1.10.8"
        ],
        "fixed_in": [
          "1.10.8"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.ops4j.pax.logging:pax-logging-log4j2",
        "ranges": [
          "\u003e= 1.11.0, \u003c 1.11.11"
        ],
        "fixed_in": [
          "1.11.11"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.ops4j.pax.logging:pax-logging-log4j2",
        "ranges": [
          "\u003e= 2.0.0, \u003c 2.0.12"
        ],
        "fixed_in": [
          "2.0.12"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      },
      {
        "vendor": "",
        "product": "org.apache.logging.log4j:log4j-core",
        "ranges": [
          "\u003c 2.3.1"
        ],
        "fixed_in": [
          "2.3.1"
        ],
        "ecosystem": "Maven",
        "advisory": "GHSA-7rjr-3q55-vv33"
      }
    ],
    "upgrade": [
      "Upgrade org.apache.logging.log4j:log4j-core to 2.16.0 or later.",
      "Upgrade org.apache.logging.log4j:log4j-core to 2.12.2 or later.",
      "Upgrade org.ops4j.pax.logging:pax-logging-log4j2 to 1.9.2 or later.",
      "Upgrade org.ops4j.pax.logging:pax-logging-log4j2 to 1.10.8 or later.",
      "Upgrade org.ops4j.pax.logging:pax-logging-log4j2 to 1.11.11 or later.",
      "Upgrade org.ops4j.pax.logging:pax-logging-log4j2 to 2.0.12 or later.",
      "Upgrade org.apache.logging.log4j:log4j-core to 2.3.1 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/log4shell_scanner.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: Log4Shell HTTP Scanner (auxiliary/scanner/http/log4shell_scanner)",
      "published_at": "2021-12-28T19:50:03Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-45046.yaml",
      "source": "nuclei",
      "title": "nuclei template: Apache Log4j2 - Remote Code Injection",
      "published_at": "2023-04-27T04:28:59Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/dev/null",
      "protocol": "http",
      "repos": [
        "hbeooooooom/Log4shell_poc",
        "tejas-nagchandi/CVE-2021-45046"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "hbeooooooom/Log4shell_poc/log4shell/demo/mvnw:221",
        "tejas-nagchandi/CVE-2021-45046/mvnw:240"
      ]
    },
    {
      "method": "GET",
      "path_template": "/",
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
        },
        {
          "name": "Cookie",
          "value": "mt.v=***; CU_ACT={var}.L4J.quua8mp7vfexh3a3qkf1sggj9.canarytokens.com/a}; CID_CART_COOKIE={var}.L4J.quua8mp7vfexh3a3qkf1sggj9.canarytokens.com/a}; IBSD_LOCALE=en_US; CU_BRAND={var}.L4J.quua8mp7vfexh3a3qkf1sggj9.canarytokens.com/a}; jsession_unique_id=xx888dd667ggddd23454d"
        },
        {
          "name": "Referer",
          "value": "https://www.google.com/search?BC=en\u0026q=testing"
        }
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.114 Safari/537.36"
      ],
      "protocol": "http",
      "repos": [
        "ifconfig-me/Log4Shell-Payloads"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "ifconfig-me/Log4Shell-Payloads/README.md:68",
        "ifconfig-me/Log4Shell-Payloads/README.md:379"
      ]
    },
    {
      "method": "GET",
      "path_template": "/test",
      "query_markers": [
        "id="
      ],
      "headers": [
        {
          "name": "Accept",
          "value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
        },
        {
          "name": "Cookie",
          "value": "LastMRH_Session=***; MRHSession=***"
        },
        {
          "name": "Origin",
          "value": "{var}di:dns{var}//quua8mp7vfexh3a3qkf1sggj9{var}canarytokens.com}"
        },
        {
          "name": "Referer",
          "value": "{var}di:dns{var}//quua8mp7vfexh3a3qkf1sggj9{var}canarytokens.com}"
        }
      ],
      "user_agents": [
        "{var}di:dns{var}//quua8mp7vfexh3a3qkf1sggj9{var}canarytokens.com}"
      ],
      "protocol": "http",
      "repos": [
        "ifconfig-me/Log4Shell-Payloads"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "ifconfig-me/Log4Shell-Payloads/README.md:52",
        "ifconfig-me/Log4Shell-Payloads/README.md:365"
      ]
    },
    {
      "method": "GET",
      "path_template": "/OpenWebPage.class",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "lwollan/log4j-exploit-server"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "lwollan/log4j-exploit-server/README.md:62"
      ]
    },
    {
      "method": "GET",
      "path_template": "/a}",
      "headers": [
        {
          "name": "X-Api-Version",
          "value": "{var}"
        }
      ],
      "protocol": "http",
      "repos": [
        "ifconfig-me/Log4Shell-Payloads"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ifconfig-me/Log4Shell-Payloads/README.md:24",
        "ifconfig-me/Log4Shell-Payloads/README.md:352"
      ]
    },
    {
      "method": "GET",
      "path_template": "/a에",
      "protocol": "http",
      "repos": [
        "hbeooooooom/Log4shell_poc"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "hbeooooooom/Log4shell_poc/README.md:66"
      ]
    },
    {
      "method": "POST",
      "path_template": "/addrecord",
      "content_type": "application/json",
      "ports": [
        8080
      ],
      "protocol": "http",
      "repos": [
        "pravin-pp/log4j2-CVE-2021-45046"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "pravin-pp/log4j2-CVE-2021-45046/README.md:31"
      ]
    }
  ],
  "rules": []
}
