Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2022-23305

Summary
Assigner-apache
Assigner Org ID-f0158376-9dc2-43b6-827c-5f631a4d8d09
Published At-18 Jan, 2022 | 15:25
Updated At-03 Aug, 2024 | 03:36
Rejected At-
Credits

SQL injection in JDBC Appender in Apache Log4j V1

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:apache
Assigner Org ID:f0158376-9dc2-43b6-827c-5f631a4d8d09
Published At:18 Jan, 2022 | 15:25
Updated At:03 Aug, 2024 | 03:36
Rejected At:
▼CVE Numbering Authority (CNA)
SQL injection in JDBC Appender in Apache Log4j V1

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.

Affected Products
Vendor
The Apache Software FoundationApache Software Foundation
Product
Apache Log4j 1.x
Versions
Affected
  • From 1.2.1 before unspecified (custom)
  • From unspecified before 2.0-alpha1 (custom)
Problem Types
TypeCWE IDDescription
CWECWE-89CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Type: CWE
CWE ID: CWE-89
Description: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
unknown
other:
high
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Users should upgrade to Log4j 2 or remove usage of the JDBCAppender from their configurations.

Exploits

Credits

Daniel Martin of NCC Group
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://logging.apache.org/log4j/1.2/index.html
x_refsource_MISC
https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
x_refsource_MISC
http://www.openwall.com/lists/oss-security/2022/01/18/4
mailing-list
x_refsource_MLIST
https://www.oracle.com/security-alerts/cpuapr2022.html
x_refsource_MISC
https://security.netapp.com/advisory/ntap-20220217-0007/
x_refsource_CONFIRM
https://www.oracle.com/security-alerts/cpujul2022.html
x_refsource_MISC
Hyperlink: https://logging.apache.org/log4j/1.2/index.html
Resource:
x_refsource_MISC
Hyperlink: https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
Resource:
x_refsource_MISC
Hyperlink: http://www.openwall.com/lists/oss-security/2022/01/18/4
Resource:
mailing-list
x_refsource_MLIST
Hyperlink: https://www.oracle.com/security-alerts/cpuapr2022.html
Resource:
x_refsource_MISC
Hyperlink: https://security.netapp.com/advisory/ntap-20220217-0007/
Resource:
x_refsource_CONFIRM
Hyperlink: https://www.oracle.com/security-alerts/cpujul2022.html
Resource:
x_refsource_MISC
▼Authorized Data Publishers (ADP)
CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://logging.apache.org/log4j/1.2/index.html
x_refsource_MISC
x_transferred
https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
x_refsource_MISC
x_transferred
http://www.openwall.com/lists/oss-security/2022/01/18/4
mailing-list
x_refsource_MLIST
x_transferred
https://www.oracle.com/security-alerts/cpuapr2022.html
x_refsource_MISC
x_transferred
https://security.netapp.com/advisory/ntap-20220217-0007/
x_refsource_CONFIRM
x_transferred
https://www.oracle.com/security-alerts/cpujul2022.html
x_refsource_MISC
x_transferred
Hyperlink: https://logging.apache.org/log4j/1.2/index.html
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
Resource:
x_refsource_MISC
x_transferred
Hyperlink: http://www.openwall.com/lists/oss-security/2022/01/18/4
Resource:
mailing-list
x_refsource_MLIST
x_transferred
Hyperlink: https://www.oracle.com/security-alerts/cpuapr2022.html
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20220217-0007/
Resource:
x_refsource_CONFIRM
x_transferred
Hyperlink: https://www.oracle.com/security-alerts/cpujul2022.html
Resource:
x_refsource_MISC
x_transferred
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:security@apache.org
Published At:18 Jan, 2022 | 16:15
Updated At:24 Feb, 2023 | 15:30

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.19.8CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary2.06.8MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
Type: Primary
Version: 3.1
Base score: 9.8
Base severity: CRITICAL
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Type: Primary
Version: 2.0
Base score: 6.8
Base severity: MEDIUM
Vector:
AV:N/AC:M/Au:N/C:P/I:P/A:P
CPE Matches

The Apache Software Foundation
apache
>>log4j>>Versions from 1.2(inclusive) to 1.2.17(inclusive)
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
NetApp, Inc.
netapp
>>snapmanager>>-
cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:oracle:*:*
NetApp, Inc.
netapp
>>snapmanager>>-
cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:*
Broadcom Inc.
broadcom
>>brocade_sannav>>-
cpe:2.3:a:broadcom:brocade_sannav:-:*:*:*:*:*:*:*
qos
qos
>>reload4j>>Versions before 1.2.18.2(exclusive)
cpe:2.3:a:qos:reload4j:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>advanced_supply_chain_planning>>12.1
cpe:2.3:a:oracle:advanced_supply_chain_planning:12.1:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>advanced_supply_chain_planning>>12.2
cpe:2.3:a:oracle:advanced_supply_chain_planning:12.2:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>business_intelligence>>5.9.0.0.0
cpe:2.3:a:oracle:business_intelligence:5.9.0.0.0:*:*:*:enterprise:*:*:*
Oracle Corporation
oracle
>>business_intelligence>>12.2.1.3.0
cpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:*
Oracle Corporation
oracle
>>business_intelligence>>12.2.1.4.0
cpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:*
Oracle Corporation
oracle
>>business_process_management_suite>>12.2.1.3.0
cpe:2.3:a:oracle:business_process_management_suite:12.2.1.3.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>business_process_management_suite>>12.2.1.4.0
cpe:2.3:a:oracle:business_process_management_suite:12.2.1.4.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_eagle_ftp_table_base_retrieval>>4.5
cpe:2.3:a:oracle:communications_eagle_ftp_table_base_retrieval:4.5:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_instant_messaging_server>>10.0.1.5.0
cpe:2.3:a:oracle:communications_instant_messaging_server:10.0.1.5.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_messaging_server>>8.1
cpe:2.3:a:oracle:communications_messaging_server:8.1:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_network_integrity>>7.3.6
cpe:2.3:a:oracle:communications_network_integrity:7.3.6:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_offline_mediation_controller>>Versions before 12.0.0.4.4(exclusive)
cpe:2.3:a:oracle:communications_offline_mediation_controller:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_offline_mediation_controller>>12.0.0.5.0
cpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.5.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_unified_inventory_management>>7.4.1
cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>communications_unified_inventory_management>>7.4.2
cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.2:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>e-business_suite_cloud_manager_and_cloud_backup_module>>Versions before 2.2.1.1.1(exclusive)
cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>e-business_suite_cloud_manager_and_cloud_backup_module>>2.2.1.1.1
cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:2.2.1.1.1:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>e-business_suite_information_discovery>>Versions from 12.2.3(inclusive) to 12.2.11(inclusive)
cpe:2.3:a:oracle:e-business_suite_information_discovery:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>enterprise_manager_base_platform>>13.4.0.0
cpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>enterprise_manager_base_platform>>13.5.0.0
cpe:2.3:a:oracle:enterprise_manager_base_platform:13.5.0.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>financial_services_revenue_management_and_billing_analytics>>2.7.0.0
cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>financial_services_revenue_management_and_billing_analytics>>2.7.0.1
cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.7.0.1:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>financial_services_revenue_management_and_billing_analytics>>2.8.0.0
cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.8.0.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>healthcare_foundation>>8.1.0
cpe:2.3:a:oracle:healthcare_foundation:8.1.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>hyperion_data_relationship_management>>Versions before 11.2.8.0(exclusive)
cpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>hyperion_infrastructure_technology>>Versions before 11.2.8.0(exclusive)
cpe:2.3:a:oracle:hyperion_infrastructure_technology:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>identity_management_suite>>12.2.1.3.0
cpe:2.3:a:oracle:identity_management_suite:12.2.1.3.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>identity_management_suite>>12.2.1.4.0
cpe:2.3:a:oracle:identity_management_suite:12.2.1.4.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>identity_manager_connector>>11.1.1.5.0
cpe:2.3:a:oracle:identity_manager_connector:11.1.1.5.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>jdeveloper>>12.2.1.3.0
cpe:2.3:a:oracle:jdeveloper:12.2.1.3.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>middleware_common_libraries_and_tools>>12.2.1.4.0
cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>mysql_enterprise_monitor>>Versions up to 8.0.29(inclusive)
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>retail_extract_transform_and_load>>13.2.5
cpe:2.3:a:oracle:retail_extract_transform_and_load:13.2.5:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>tuxedo>>12.2.2.0.0
cpe:2.3:a:oracle:tuxedo:12.2.2.0.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>weblogic_server>>12.2.1.3.0
cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>weblogic_server>>12.2.1.4.0
cpe:2.3:a:oracle:weblogic_server:12.2.1.4.0:*:*:*:*:*:*:*
Oracle Corporation
oracle
>>weblogic_server>>14.1.1.0.0
cpe:2.3:a:oracle:weblogic_server:14.1.1.0.0:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-89Primarynvd@nist.gov
CWE-89Secondarysecurity@apache.org
CWE ID: CWE-89
Type: Primary
Source: nvd@nist.gov
CWE ID: CWE-89
Type: Secondary
Source: security@apache.org
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://www.openwall.com/lists/oss-security/2022/01/18/4security@apache.org
Mailing List
Third Party Advisory
https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85ysecurity@apache.org
Issue Tracking
Mailing List
Vendor Advisory
https://logging.apache.org/log4j/1.2/index.htmlsecurity@apache.org
Vendor Advisory
https://security.netapp.com/advisory/ntap-20220217-0007/security@apache.org
Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.htmlsecurity@apache.org
Patch
Third Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.htmlsecurity@apache.org
Patch
Third Party Advisory
Hyperlink: http://www.openwall.com/lists/oss-security/2022/01/18/4
Source: security@apache.org
Resource:
Mailing List
Third Party Advisory
Hyperlink: https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
Source: security@apache.org
Resource:
Issue Tracking
Mailing List
Vendor Advisory
Hyperlink: https://logging.apache.org/log4j/1.2/index.html
Source: security@apache.org
Resource:
Vendor Advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20220217-0007/
Source: security@apache.org
Resource:
Third Party Advisory
Hyperlink: https://www.oracle.com/security-alerts/cpuapr2022.html
Source: security@apache.org
Resource:
Patch
Third Party Advisory
Hyperlink: https://www.oracle.com/security-alerts/cpujul2022.html
Source: security@apache.org
Resource:
Patch
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

6372Records found

Details not found