CVE-2022-23305
SQL injection in JDBC Appender in Apache Log4j V1
En bref
- Source
- NVD
- EPSS
- EPSS 66.54 % · centile 99 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- apache
- Statut NVD
- 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.
Faiblesses (CWE)
- CWE-89 — Injection SQL
Références
- https://logging.apache.org/log4j/1.2/index.html
- https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
- http://www.openwall.com/lists/oss-security/2022/01/18/4
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220217-0007/
- https://www.oracle.com/security-alerts/cpujul2022.html
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| 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 | CISA-ADP |
| 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 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 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-65fg-84f6-3jq3 — SQL Injection in Log4j 1.2.x
Références européennes
- ENISA EUVD · EUVD-2022-0477
- GCVE · GCVE-0-2022-23305
Avis du CERT-FR
- CERTFR-2026-AVI-1336 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0281 — Multiples vulnérabilités dans les produits Splunk · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0419 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
- CERTFR-2024-AVI-0027 — Multiples vulnérabilités dans les produits Juniper Networks · cert.ssi.gouv.fr
- CERTFR-2023-AVI-0910 — Multiples vulnérabilités dans IBM QRadar · cert.ssi.gouv.fr
- CERTFR-2022-AVI-755 — Multiples vulnérabilités dans IBM Spectrum · cert.ssi.gouv.fr
- CERTFR-2022-AVI-657 — Multiples vulnérabilités dans Oracle E-Business Suite · cert.ssi.gouv.fr
- CERTFR-2022-AVI-369 — Multiples vulnérabilités dans Oracle WebLogic Server · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*≥ 1.2 ≤ 1.2.17cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:oracle:*:*cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:sap:*:*cpe:2.3:a:broadcom:brocade_sannav:-:*:*:*:*:*:*:*cpe:2.3:a:qos:reload4j:*:*:*:*:*:*:*:*< 1.2.18.2cpe:2.3:a:oracle:advanced_supply_chain_planning:12.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:advanced_supply_chain_planning:12.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:business_intelligence:5.9.0.0.0:*:*:*:enterprise:*:*:*cpe:2.3:a:oracle:business_intelligence:12.2.1.3.0:*:*:*:enterprise:*:*:*cpe:2.3:a:oracle:business_intelligence:12.2.1.4.0:*:*:*:enterprise:*:*:*cpe:2.3:a:oracle:business_process_management_suite:12.2.1.3.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:business_process_management_suite:12.2.1.4.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_eagle_ftp_table_base_retrieval:4.5:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_instant_messaging_server:10.0.1.5.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_messaging_server:8.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_network_integrity:7.3.6:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_offline_mediation_controller:*:*:*:*:*:*:*:*< 12.0.0.4.4cpe:2.3:a:oracle:communications_offline_mediation_controller:12.0.0.5.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_unified_inventory_management:7.4.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:*:*:*:*:*:*:*:*< 2.2.1.1.1cpe:2.3:a:oracle:e-business_suite_cloud_manager_and_cloud_backup_module:2.2.1.1.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:e-business_suite_information_discovery:*:*:*:*:*:*:*:*≥ 12.2.3 ≤ 12.2.11cpe:2.3:a:oracle:enterprise_manager_base_platform:13.4.0.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:enterprise_manager_base_platform:13.5.0.0:*:*:*:*:*:*:*cpe:2.3:a: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.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:financial_services_revenue_management_and_billing_analytics:2.8.0.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:healthcare_foundation:8.1.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:hyperion_data_relationship_management:*:*:*:*:*:*:*:*< 11.2.8.0cpe:2.3:a:oracle:hyperion_infrastructure_technology:*:*:*:*:*:*:*:*< 11.2.8.0cpe:2.3:a:oracle:identity_management_suite:12.2.1.3.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:identity_management_suite:12.2.1.4.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:identity_manager_connector:11.1.1.5.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:jdeveloper:12.2.1.3.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*≤ 8.0.29cpe:2.3:a:oracle:retail_extract_transform_and_load:13.2.5:*:*:*:*:*:*:*cpe:2.3:a:oracle:tuxedo:12.2.2.0.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:weblogic_server:12.2.1.3.0:*:*:*:*:*:*:*- +2 autres
Produits affectés
| Produit | Versions |
|---|---|
| Apache Software Foundation · Apache Log4j 1.x | affected 1.2.1 < unspecified ; affected unspecified < 2.0-alpha1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |