{"answers":{"affected":"4 open source packages ship an affected version, including log4j:log4j and org.zenframework.z8.dependencies.commons:log4j-1.2.17. It affects 28 products.","exploited":"There is no known exploitation of CVE-2022-23305 in the wild and no public exploit code.","fix":"Product is end of life, replace it.","what":"CVE-2022-23305 is a critical SQL injection vulnerability in Broadcom Brocade Sannav, published on 18 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-23305 and fix it if it is affected.\n\nWhat it is: CVE-2022-23305 is a critical SQL injection vulnerability in Broadcom Brocade Sannav, published on 18 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-23305 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- log4j:log4j (Maven): affected all versions up to 1.2.17; no fix listed\n- log4j:log4j (Maven): affected all versions up to 1.2.17; no fix listed\n- org.zenframework.z8.dependencies.commons:log4j-1.2.17 (Maven): affected all versions up to 2.0; no fix listed\n- org.zenframework.z8.dependencies.commons:log4j-1.2.17 (Maven): affected all versions up to 2.0; no fix listed\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-2022-23305/ (Markdown: https://insights.sbomify.com/CVE-2022-23305/index.md)","id":"CVE-2022-23305","markdown":"https://insights.sbomify.com/CVE-2022-23305/index.md","name":"CVE-2022-23305","record":{"aliases":["CLEANSTART-2026-CB62266","CLSA-2022-1643918279","CLSA-2022-1643918500","CLSA-2026-1793137942","DEBIAN-CVE-2022-23305","GHSA-65fg-84f6-3jq3","MINI-qh3w-mgq7-3w78","MINI-whvf-f34m-rjgr","OESA-2022-1781","ROOT-APP-MAVEN-CVE-2022-23305","UBUNTU-CVE-2022-23305"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Java logging library","requires_auth":"none","summary":"Attackers can execute arbitrary SQL queries via crafted log messages in Apache Log4j 1.x when the non-default JDBCAppender is configured.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"log4j","vendor":"apache"},{"product":"brocade_sannav","vendor":"broadcom"},{"product":"snapmanager","vendor":"netapp"},{"product":"advanced_supply_chain_planning","vendor":"oracle"},{"product":"business_intelligence","vendor":"oracle"},{"product":"business_process_management_suite","vendor":"oracle"},{"product":"communications_eagle_ftp_table_base_retrieval","vendor":"oracle"},{"product":"communications_instant_messaging_server","vendor":"oracle"},{"product":"communications_messaging_server","vendor":"oracle"},{"product":"communications_network_integrity","vendor":"oracle"},{"product":"communications_offline_mediation_controller","vendor":"oracle"},{"product":"communications_unified_inventory_management","vendor":"oracle"},{"product":"e-business_suite_cloud_manager_and_cloud_backup_module","vendor":"oracle"},{"product":"e-business_suite_information_discovery","vendor":"oracle"},{"product":"enterprise_manager_base_platform","vendor":"oracle"},{"product":"financial_services_revenue_management_and_billing_analytics","vendor":"oracle"},{"product":"healthcare_foundation","vendor":"oracle"},{"product":"hyperion_data_relationship_management","vendor":"oracle"},{"product":"hyperion_infrastructure_technology","vendor":"oracle"},{"product":"identity_management_suite","vendor":"oracle"},{"product":"identity_manager_connector","vendor":"oracle"},{"product":"jdeveloper","vendor":"oracle"},{"product":"middleware_common_libraries_and_tools","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"},{"product":"retail_extract_transform_and_load","vendor":"oracle"},{"product":"tuxedo","vendor":"oracle"},{"product":"weblogic_server","vendor":"oracle"},{"product":"reload4j","vendor":"qos"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"By design, the JDBCAppender in Log4j 1.2.x accepts an SQL statement as a configuration parameter where the values to be inserted are converters from PatternLayout. The message converter, %m, is likely to always be included. This allows attackers to manipulate the SQL by entering crafted strings into input fields or headers of an application that are logged allowing unintended SQL queries to be executed. Note this issue only affects Log4j 1.x when specifically configured to use the JDBCAppender, which is not the default. Beginning in version 2.0-beta8, the JDBCAppender was re-introduced with proper support for parameterized SQL queries and further customization over the columns written to in logs. Apache Log4j 1.2 reached end of life in August 2015. Users should upgrade to Log4j 2 as it addresses numerous other issues from the previous versions.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-12-14","github_poc":4,"max_poc_stars":39,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-12-14T22:27:14Z","kind":"github_poc","ref":"https://github.com/HynekPetrak/log4shell-finder","stars":39,"title":"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."},{"date":"2022-01-21T05:07:59Z","kind":"github_poc","ref":"https://github.com/AlphabugX/CVE-2022-RCE","stars":5,"title":"test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC "},{"date":"2023-07-24T18:52:15Z","kind":"github_poc","ref":"https://github.com/tkomlodi/CVE-2022-23305_POC","stars":1,"title":"CVE-2022-23305 Log4J JDBCAppender SQl injection POC "},{"date":"2026-10-17T08:55:14Z","kind":"github_poc","ref":"https://github.com/hoor113/CVE-2022-23305-Demo-and-Whitebox-Report","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"SQL injection in JDBC Appender in Apache Log4j V1","id":"CVE-2022-23305","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"broadcom:brocade_sannav","products":["broadcom:brocade_sannav","netapp:snapmanager","oracle:business_intelligence","oracle:communications_instant_messaging_server","oracle:communications_unified_inventory_management","oracle:enterprise_manager_base_platform","oracle:hyperion_data_relationship_management","oracle:hyperion_infrastructure_technology","oracle:mysql_enterprise_monitor","oracle:weblogic_server"],"type":"sql_injection","year":"2022"},"n_packages":4,"n_references":6,"next":{"headline":"A deserialization flaw in the Chainsaw component of Log4j 1 can lead to malicious code execution.","id":"CVE-2022-23307"},"packages":[{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["1.2.17"],"package":"log4j:log4j","purl":null,"source":"GHSA-65fg-84f6-3jq3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["1.2.17"],"package":"log4j:log4j","purl":"pkg:maven/log4j/log4j","source":"GHSA-65fg-84f6-3jq3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0"],"package":"org.zenframework.z8.dependencies.commons:log4j-1.2.17","purl":null,"source":"GHSA-65fg-84f6-3jq3"},{"ecosystem":"Maven","fixed":[],"introduced":["0"],"last_affected":["2.0"],"package":"org.zenframework.z8.dependencies.commons:log4j-1.2.17","purl":"pkg:maven/org.zenframework.z8.dependencies.commons/log4j-1.2.17","source":"GHSA-65fg-84f6-3jq3"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2022-23304"},"products":["Apache Log4j 1.x"],"published":"2022-01-18","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,"headline":"Apache Log4j2 Deserialization of Untrusted Data","id":"CVE-2021-45046","kev_date_added":"2023-05-01","published":"2021-12-14"},{"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-27","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary SQL queries via crafted log messages in Apache Log4j 1.x when the non-default JDBCAppender is configured.","url":"https://insights.sbomify.com/CVE-2022-23305/"}