{"answers":{"affected":"14 open source packages ship an affected version, including org.ops4j.pax.logging:pax-logging-log4j2 and org.apache.logging.log4j:log4j-core. It affects 55 products.","exploited":"Yes. Attackers have exploited CVE-2021-45046 in the wild since at least 1 May 2023, including in ransomware campaigns.","fix":"Upgrade org.ops4j.pax.logging:pax-logging-log4j2 to a fixed version for your release line: 1.10.8, 1.11.11, 1.9.2 or 2.0.12. US federal agencies must fix it by 22 May 2023.","what":"CVE-2021-45046 is a critical code injection vulnerability in Debian Debian Linux, published on 14 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-45046 and fix it if it is affected.\n\nWhat it is: CVE-2021-45046 is a critical code injection vulnerability in Debian Debian Linux, published on 14 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-45046 in the wild since at least 1 May 2023, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.10.0; fixed in 1.10.8\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.10.0; fixed in 1.10.8\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.11.0; fixed in 1.11.11\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.11.0; fixed in 1.11.11\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.8.0; fixed in 1.9.2\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 1.8.0; fixed in 1.9.2\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 2.0.0; fixed in 2.0.12\n- org.ops4j.pax.logging:pax-logging-log4j2 (Maven): affected from 2.0.0; fixed in 2.0.12\n- org.apache.logging.log4j:log4j-core (Maven): affected all versions; fixed in 2.3.1\n- org.apache.logging.log4j:log4j-core (Maven): affected all versions; fixed in 2.3.1\n- org.apache.logging.log4j:log4j-core (Maven): affected from 2.13.0; fixed in 2.16.0\n- org.apache.logging.log4j:log4j-core (Maven): affected from 2.13.0; fixed in 2.16.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-45046/ (Markdown: https://insights.sbomify.com/CVE-2021-45046/index.md)","id":"CVE-2021-45046","markdown":"https://insights.sbomify.com/CVE-2021-45046/index.md","name":"CVE-2021-45046","record":{"aliases":["DEBIAN-CVE-2021-45046","DSA-5022-1","GHSA-7rjr-3q55-vv33","MGASA-2021-0566","MINI-x4gq-qjph-q7m9","OESA-2021-1467","UBUNTU-CVE-2021-45046"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Java logging library","requires_auth":"none","summary":"Attackers can achieve remote or local code execution and information disclosure via crafted JNDI inputs in specific non-default Log4j2 configurations.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"log4j","vendor":"apache"},{"product":"computer_vision_annotation_tool","vendor":"cvat"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"audio_development_kit","vendor":"intel"},{"product":"datacenter_manager","vendor":"intel"},{"product":"genomics_kernel_library","vendor":"intel"},{"product":"oneapi","vendor":"intel"},{"product":"secure_device_onboard","vendor":"intel"},{"product":"sensor_solution_firmware_development_kit","vendor":"intel"},{"product":"system_debugger","vendor":"intel"},{"product":"system_studio","vendor":"intel"},{"product":"6bk1602-0aa12-0tp0_firmware","vendor":"siemens"},{"product":"6bk1602-0aa22-0tp0_firmware","vendor":"siemens"},{"product":"6bk1602-0aa32-0tp0_firmware","vendor":"siemens"},{"product":"6bk1602-0aa42-0tp0_firmware","vendor":"siemens"},{"product":"6bk1602-0aa52-0tp0_firmware","vendor":"siemens"},{"product":"captial","vendor":"siemens"},{"product":"comos","vendor":"siemens"},{"product":"desigo_cc_advanced_reports","vendor":"siemens"},{"product":"desigo_cc_info_center","vendor":"siemens"},{"product":"e-car_operation_center","vendor":"siemens"},{"product":"energy_engage","vendor":"siemens"},{"product":"energyip","vendor":"siemens"},{"product":"energyip_prepay","vendor":"siemens"},{"product":"gma-manager","vendor":"siemens"},{"product":"head-end_system_universal_device_integration_system","vendor":"siemens"},{"product":"industrial_edge_management","vendor":"siemens"},{"product":"industrial_edge_management_hub","vendor":"siemens"},{"product":"logo\\!_soft_comfort","vendor":"siemens"},{"product":"mendix","vendor":"siemens"},{"product":"mindsphere","vendor":"siemens"},{"product":"navigator","vendor":"siemens"},{"product":"nx","vendor":"siemens"},{"product":"opcenter_intelligence","vendor":"siemens"},{"product":"operation_scheduler","vendor":"siemens"},{"product":"sentron_powermanager","vendor":"siemens"},{"product":"siguard_dsa","vendor":"siemens"},{"product":"sipass_integrated","vendor":"siemens"},{"product":"siveillance_command","vendor":"siemens"},{"product":"siveillance_control_pro","vendor":"siemens"},{"product":"siveillance_identity","vendor":"siemens"},{"product":"siveillance_vantage","vendor":"siemens"},{"product":"siveillance_viewpoint","vendor":"siemens"},{"product":"solid_edge_cam_pro","vendor":"siemens"},{"product":"solid_edge_harness_design","vendor":"siemens"},{"product":"spectrum_power_4","vendor":"siemens"},{"product":"spectrum_power_7","vendor":"siemens"},{"product":"sppa-t3000_ses3000_firmware","vendor":"siemens"},{"product":"teamcenter","vendor":"siemens"},{"product":"tracealertserverplus","vendor":"siemens"},{"product":"vesys","vendor":"siemens"},{"product":"xpedition_enterprise","vendor":"siemens"},{"product":"xpedition_package_integrator","vendor":"siemens"},{"product":"email_security","vendor":"sonicwall"}],"cvss":{"score":9,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-12-09","github_poc":11,"max_poc_stars":85,"metasploit":1,"nuclei":1,"refs":[{"date":"2021-12-20T12:07:41Z","kind":"github_poc","ref":"https://github.com/lijiejie/log4j2_vul_local_scanner","stars":85,"title":"Log4j 漏洞本地检测脚本。 Scan all java processes on your host to check whether it's affected by log4j2 remote code execution vulnerability (CVE-2021-45046)"},{"date":"2021-12-15T05:48:53Z","kind":"github_poc","ref":"https://github.com/cckuailong/Log4j_CVE-2021-45046","stars":22,"title":"Log4j 2.15.0 Privilege Escalation -- CVE-2021-45046"},{"date":"2021-12-16T18:12:29Z","kind":"github_poc","ref":"https://github.com/mergebase/log4j-samples","stars":14,"title":"Public testing data.  Samples of log4j library versions to help log4j scanners / detectors improve their accuracy for detecting CVE-2021-45046 and CVE-2021-44228. TAG_TESTING, OWNER_KEN, DC_PUBLIC"},{"date":"2025-07-23T13:55:58Z","kind":"github_poc","ref":"https://github.com/ifconfig-me/Log4Shell-Payloads","stars":8,"title":"Log4Shell / Log4J Payload - CVE-2021-45046 and CVE-2022-42889"},{"date":"2021-12-15T09:01:37Z","kind":"github_poc","ref":"https://github.com/BobTheShoplifter/CVE-2021-45046-Info","stars":4,"title":"Oh no another one"},{"date":"2021-12-18T11:43:56Z","kind":"github_poc","ref":"https://github.com/ludy-dev/cve-2021-45046","stars":1,"title":null},{"date":"2021-12-24T09:02:55Z","kind":"github_poc","ref":"https://github.com/CaptanMoss/Log4Shell-Sandbox-Signature","stars":1,"title":"Log4Shell(CVE-2021-45046) Sandbox Signature"},{"date":"2021-12-09","kind":"metasploit","ref":"auxiliary/scanner/http/log4shell_scanner","stars":null,"title":"Log4Shell HTTP Scanner"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Log4j2 Deserialization of Untrusted Data","id":"CVE-2021-45046","indexable":true,"kev":{"dateAdded":"2023-05-01","dueDate":"2023-05-22","knownRansomwareCampaignUse":"Known","product":"Log4j2","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache Log4j2 Deserialization of Untrusted Data Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"code_injection","year":"2021"},"n_packages":14,"n_references":21,"next":{"headline":"Adobe Bridge JPEG2000 Parsing Use-After-Free Information Disclosure Vulnerability","id":"CVE-2021-45051"},"packages":[{"ecosystem":"Maven","fixed":["2.3.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.3.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.16.0"],"introduced":["2.13.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.16.0"],"introduced":["2.13.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.12.2"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.12.2"],"introduced":["2.4.0"],"last_affected":[],"package":"org.apache.logging.log4j:log4j-core","purl":"pkg:maven/org.apache.logging.log4j/log4j-core","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.10.8"],"introduced":["1.10.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.10.8"],"introduced":["1.10.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":"pkg:maven/org.ops4j.pax.logging/pax-logging-log4j2","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.11.11"],"introduced":["1.11.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.11.11"],"introduced":["1.11.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":"pkg:maven/org.ops4j.pax.logging/pax-logging-log4j2","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.9.2"],"introduced":["1.8.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["1.9.2"],"introduced":["1.8.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":"pkg:maven/org.ops4j.pax.logging/pax-logging-log4j2","source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.0.12"],"introduced":["2.0.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":null,"source":"GHSA-7rjr-3q55-vv33"},{"ecosystem":"Maven","fixed":["2.0.12"],"introduced":["2.0.0"],"last_affected":[],"package":"org.ops4j.pax.logging:pax-logging-log4j2","purl":"pkg:maven/org.ops4j.pax.logging/pax-logging-log4j2","source":"GHSA-7rjr-3q55-vv33"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2021-45043"},"products":["Apache Log4j"],"published":"2021-12-14","related":[{"cvss_score":10,"headline":"Apache Log4j2 Remote Code Execution","id":"CVE-2021-44228","kev_date_added":"2021-12-10","published":"2021-12-10"},{"cvss_score":9.8,"headline":"SQL injection in JDBC Appender in Apache Log4j V1","id":"CVE-2022-23305","kev_date_added":null,"published":"2022-01-18"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Log4j","id":"CVE-2017-5645","kev_date_added":null,"published":"2017-04-17"},{"cvss_score":8.8,"headline":"Deserialization of untrusted data in JMSSink in Apache Log4j 1.x","id":"CVE-2022-23302","kev_date_added":null,"published":"2022-01-18"},{"cvss_score":7.5,"headline":"Apache Log4j 1.x (EOL) allows DoS in Chainsaw and SocketAppender","id":"CVE-2023-26464","kev_date_added":null,"published":"2023-03-10"},{"cvss_score":7.5,"headline":"Deserialization of untrusted data in JMSAppender in Apache Log4j 1.2","id":"CVE-2021-4104","kev_date_added":null,"published":"2021-12-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can achieve remote or local code execution and information disclosure via crafted JNDI inputs in specific non-default Log4j2 configurations.","url":"https://insights.sbomify.com/CVE-2021-45046/"}