# CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 66.5%, higher than 99% of CVEs (2026-12-01)
- Published: 2022-01-18T15:25:22.000Z
- Modified: 2026-06-17T04:29:50.293Z
- Also known as: GHSA-65fg-84f6-3jq3
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Log4j 1.x: from 1.2.1 before unspecified; from unspecified before 2.0-alpha1
- log4j:log4j (Maven): up to 1.2.17
- org.zenframework.z8.dependencies.commons:log4j-1.2.17 (Maven): up to 2.0
- apache log4j: from 1.2 up to 1.2.17
- netapp snapmanager: no versions given
- broadcom brocade_sannav: no versions given
- qos reload4j: before 1.2.18.2
- oracle advanced_supply_chain_planning: 12.1; 12.2
- oracle business_intelligence: 5.9.0.0.0; 12.2.1.3.0; 12.2.1.4.0
- oracle business_process_management_suite: 12.2.1.3.0; 12.2.1.4.0
- oracle communications_eagle_ftp_table_base_retrieval: 4.5
- oracle communications_instant_messaging_server: 10.0.1.5.0
- oracle communications_messaging_server: 8.1
- oracle communications_network_integrity: 7.3.6
- oracle communications_offline_mediation_controller: before 12.0.0.4.4; 12.0.0.5.0
- oracle communications_unified_inventory_management: 7.4.1; 7.4.2
- oracle e-business_suite_cloud_manager_and_cloud_backup_module: before 2.2.1.1.1; 2.2.1.1.1
- oracle e-business_suite_information_discovery: from 12.2.3 up to 12.2.11
- oracle enterprise_manager_base_platform: 13.4.0.0; 13.5.0.0
- oracle financial_services_revenue_management_and_billing_analytics: 2.7.0.0; 2.7.0.1; 2.8.0.0
- oracle healthcare_foundation: 8.1.0
- oracle hyperion_data_relationship_management: before 11.2.8.0
- oracle hyperion_infrastructure_technology: before 11.2.8.0
- oracle identity_management_suite: 12.2.1.3.0; 12.2.1.4.0
- oracle identity_manager_connector: 11.1.1.5.0
- oracle jdeveloper: 12.2.1.3.0
- oracle middleware_common_libraries_and_tools: 12.2.1.4.0
- oracle mysql_enterprise_monitor: up to 8.0.29
- oracle retail_extract_transform_and_load: 13.2.5
- oracle tuxedo: 12.2.2.0.0
- oracle weblogic_server: 12.2.1.3.0; 12.2.1.4.0; 14.1.1.0.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://logging.apache.org/log4j/1.2/index.html> (vendor-advisory, web)
- <https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y> (issue-tracking, mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/01/18/4> (mailing-list, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20220217-0007/> (third-party-advisory)
- <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)
- <https://security.netapp.com/advisory/ntap-20220217-0007> (web)

## Sources

- CVE List: [CVE-2022-23305](https://www.cve.org/CVERecord?id=CVE-2022-23305), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-65fg-84f6-3jq3](https://github.com/advisories/GHSA-65fg-84f6-3jq3), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2022-23305](https://nvd.nist.gov/vuln/detail/CVE-2022-23305), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23305 · Whole record: https://cve.day/CVE-2022-23305.json · Rebuilt by cve.day 2026-11-25T22:58:09.261Z
