CVE-2022-23305
CRITICAL 9.8CVSS 3.1SQL Injection in Log4j 1.2.x
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.
- Published
- 18 Jan 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@apache.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-65fg-84f6-3jq3
- Sources
- NVDJSONOSV GHSA-65fg-84f6-3jq3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apache | log4jcpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:* |
>= 1.2, <= 1.2.17 | |
| NVD | netapp | snapmanagercpe:2.3:a:netapp:snapmanager:-:*:*:*:*:oracle:*:* |
(no version) | |
| NVD | netapp | snapmanagercpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:* |
(no version) | |
| NVD | broadcom | brocade_sannavcpe:2.3:a:broadcom:brocade_sannav:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | qos | reload4jcpe:2.3:a:qos:reload4j:*:*:*:*:*:*:*:* |
< 1.2.18.2 | 1.2.18.2 |
| NVD | oracle | advanced_supply_chain_planningcpe:2.3:a:oracle:advanced_supply_chain_planning:12.1:*:*:*:*:*:*:* |
= 12.1 | |
| NVD | oracle | advanced_supply_chain_planningcpe:2.3:a:oracle:advanced_supply_chain_planning:12.2:*:*:*:*:*:*:* |
= 12.2 | |
| NVD | oracle | business_intelligencecpe:2.3:a:oracle:business_intelligence:5.9.0.0.0:*:*:*:enterprise:*:*:* |
= 5.9.0.0.0 | |
| NVD | oracle | business_intelligencecpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | business_intelligencecpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | business_process_management_suitecpe:2.3:a:oracle:business_process_management_suite:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | business_process_management_suitecpe:2.3:a:oracle:business_process_management_suite:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | communications_eagle_ftp_table_base_retrievalcpe:2.3:a:oracle:communications_eagle_ftp_table_base_retrieval:4.5:*:*:*:*:*:*:* |
= 4.5 | |
| NVD | oracle | communications_instant_messaging_servercpe:2.3:a:oracle:communications_instant_messaging_server:10.0.1.5.0:*:*:*:*:*:*:* |
= 10.0.1.5.0 | |
| NVD | oracle | communications_messaging_servercpe:2.3:a:oracle:communications_messaging_server:8.1:*:*:*:*:*:*:* |
= 8.1 | |
| NVD | oracle | communications_network_integritycpe:2.3:a:oracle:communications_network_integrity:7.3.6:*:*:*:*:*:*:* |
= 7.3.6 | |
| NVD | oracle | communications_offline_mediation_controllercpe:2.3:a:oracle:communications_offline_mediation_controller:*:*:*:*:*:*:*:* |
< 12.0.0.4.4 | 12.0.0.4.4 |
| NVD | oracle | communications_offline_mediation_controllercpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.5.0:*:*:*:*:*:*:* |
= 12.0.0.5.0 | |
| NVD | oracle | communications_unified_inventory_managementcpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:* |
= 7.4.1 | |
| NVD | oracle | communications_unified_inventory_managementcpe:2.3:a:oracle:communications_unified_inventory_management:7.4.2:*:*:*:*:*:*:* |
= 7.4.2 | |
| NVD | oracle | e-business_suite_cloud_manager_and_cloud_backup_modulecpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:*:*:*:*:*:*:*:* |
< 2.2.1.1.1 | 2.2.1.1.1 |
| NVD | oracle | e-business_suite_cloud_manager_and_cloud_backup_modulecpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:2.2.1.1.1:*:*:*:*:*:*:* |
= 2.2.1.1.1 | |
| NVD | oracle | e-business_suite_information_discoverycpe:2.3:a:oracle:e-business_suite_information_discovery:*:*:*:*:*:*:*:* |
>= 12.2.3, <= 12.2.11 | |
| NVD | oracle | enterprise_manager_base_platformcpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:* |
= 13.4.0.0 | |
| NVD | oracle | enterprise_manager_base_platformcpe:2.3:a:oracle:enterprise_manager_base_platform:13.5.0.0:*:*:*:*:*:*:* |
= 13.5.0.0 | |
| NVD | oracle | financial_services_revenue_management_and_billing_analyticscpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.0:*:*:*:*:*:*:* |
= 2.7.0.0 | |
| NVD | oracle | financial_services_revenue_management_and_billing_analyticscpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.1:*:*:*:*:*:*:* |
= 2.7.0.1 | |
| NVD | oracle | financial_services_revenue_management_and_billing_analyticscpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.8.0.0:*:*:*:*:*:*:* |
= 2.8.0.0 | |
| NVD | oracle | healthcare_foundationcpe:2.3:a:oracle:healthcare_foundation:8.1.0:*:*:*:*:*:*:* |
= 8.1.0 | |
| NVD | oracle | hyperion_data_relationship_managementcpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:* |
< 11.2.8.0 | 11.2.8.0 |
| NVD | oracle | hyperion_infrastructure_technologycpe:2.3:a:oracle:hyperion_infrastructure_technology:*:*:*:*:*:*:*:* |
< 11.2.8.0 | 11.2.8.0 |
| NVD | oracle | identity_management_suitecpe:2.3:a:oracle:identity_management_suite:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | identity_management_suitecpe:2.3:a:oracle:identity_management_suite:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | identity_manager_connectorcpe:2.3:a:oracle:identity_manager_connector:11.1.1.5.0:*:*:*:*:*:*:* |
= 11.1.1.5.0 | |
| NVD | oracle | jdevelopercpe:2.3:a:oracle:jdeveloper:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | middleware_common_libraries_and_toolscpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | mysql_enterprise_monitorcpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:* |
<= 8.0.29 | |
| NVD | oracle | retail_extract_transform_and_loadcpe:2.3:a:oracle:retail_extract_transform_and_load:13.2.5:*:*:*:*:*:*:* |
= 13.2.5 | |
| NVD | oracle | tuxedocpe:2.3:a:oracle:tuxedo:12.2.2.0.0:*:*:*:*:*:*:* |
= 12.2.2.0.0 | |
| NVD | oracle | weblogic_servercpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | weblogic_servercpe:2.3:a:oracle:weblogic_server:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | weblogic_servercpe:2.3:a:oracle:weblogic_server:14.1.1.0.0:*:*:*:*:*:*:* |
= 14.1.1.0.0 | |
| OSV | Maven | log4j:log4j | <= 1.2.17 | |
| OSV | Maven | org.zenframework.z8.dependencies.commons:log4j-1.2.17 | <= 2.0 |
References
- http://www.openwall.com/lists/oss-security/2022/01/18/4 · Mailing List, Third Party Advisory, WEB
- https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y · Issue Tracking, Mailing List, Vendor Advisory, WEB
- https://logging.apache.org/log4j/1.2/index.html · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20220217-0007/ · Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory, WEB
- https://www.oracle.com/security-alerts/cpujul2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23305 · ADVISORY
- https://github.com/apache/logging-log4j1 · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 18 Jan 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 21 Jan 2022)