{"cve":"CVE-2022-23305","nvd":{"published":"2022-01-18T16:15:08.350","modified":"2026-06-17T04:29:50.293","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["http://www.openwall.com/lists/oss-security/2022/01/18/4","https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y","https://logging.apache.org/log4j/1.2/index.html","https://security.netapp.com/advisory/ntap-20220217-0007/","https://www.oracle.com/security-alerts/cpuapr2022.html"],"products":["apache:log4j","broadcom:brocade_sannav","netapp:snapmanager","oracle:advanced_supply_chain_planning","oracle:business_intelligence","oracle:business_process_management_suite","oracle:communications_eagle_ftp_table_base_retrieval","oracle:communications_instant_messaging_server","oracle:communications_messaging_server","oracle:communications_network_integrity","oracle:communications_offline_mediation_controller","oracle:communications_unified_inventory_management","oracle:e-business_suite_cloud_manager_and_cloud_backup_module","oracle:e-business_suite_information_discovery","oracle:enterprise_manager_base_platform","oracle:financial_services_revenue_management_and_billing_analytics","oracle:healthcare_foundation","oracle:hyperion_data_relationship_management","oracle:hyperion_infrastructure_technology","oracle:identity_management_suite","oracle:identity_manager_connector","oracle:jdeveloper","oracle:middleware_common_libraries_and_tools","oracle:mysql_enterprise_monitor","oracle:retail_extract_transform_and_load","oracle:tuxedo","oracle:weblogic_server","qos:reload4j"],"source":"nvd","synced_at":"2026-10-19T21:27:20.926095847+00:00"},"epss":{"cve":"CVE-2022-23305","score":0.66537,"percentile":0.99284,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-65fg-84f6-3jq3","url":"https://osv.dev/vulnerability/GHSA-65fg-84f6-3jq3","summary":"SQL Injection in Log4j 1.2.x","modified":"2026-06-08T23:39:52Z","packages":[{"ecosystem":"Maven","name":"log4j:log4j","purl":"pkg:maven/log4j/log4j","ranges":["<=1.2.17"],"fixed":[]},{"ecosystem":"Maven","name":"org.zenframework.z8.dependencies.commons:log4j-1.2.17","purl":"pkg:maven/org.zenframework.z8.dependencies.commons/log4j-1.2.17","ranges":["<=2.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}