Schwachstellen / CVE-2022-23305

kritisch

CVE-2022-23305

log4j: SQL injection in Log4j 1.x when application is configured to use JDBCAppender

Veröffentlicht Geändert CWE 89
In der Trivy Database seit spätestens 24. Okt. 2026, 07:11 UTCWann der Eintrag vor diesem Build hinzukam, ist nicht erfasst.

Einstufung nach Quelle

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA. Niedriger laut Red Hat (hoch), AlmaLinux (hoch), Amazon (hoch), Oracle (hoch), Rocky Linux (hoch), Ubuntu (mittel).

Beschreibung

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.

Betroffene Pakete und behobene Versionen

QuellePaketBehoben in
maven::GitHub Security Advisory Mavenlog4j:log4j, org.zenframework.z8.dependencies.commons:log4j-1.2.17kein Fix angegeben
alma 8parfait:0.5::parfait, parfait:0.5::parfait-examples, parfait:0.5::parfait-javadoc und 12 weitere0.5.4-4.module_el8.5.0+235+62ea7738 und 6 weitere
amazon linux 1log4j, log4j-javadoc, log4j-manual1.2.17-16.14.amzn1
amazon linux 2log4j, log4j-javadoc, log4j-manual1.2.17-18.amzn2
chainguarddruid35.0.1-r1
debian 10apache-log4j1.21.2.17-8+deb10u2
debian 11apache-log4j1.21.2.17-10+deb11u1
debian 12apache-log4j1.21.2.17-11
debian 13apache-log4j1.21.2.17-11
debian 14apache-log4j1.21.2.17-11
debian 9apache-log4j1.21.2.17-7+deb9u2
echoapache-log4j1.21.2.17-11
Alle 76 Einträge aus 23 Quellen zeigen
QuellePaketBehoben in
maven::GitHub Security Advisory Mavenlog4j:log4jkein Fix angegeben
maven::GitHub Security Advisory Mavenorg.zenframework.z8.dependencies.commons:log4j-1.2.17kein Fix angegeben
alma 8parfait:0.5::parfait0.5.4-4.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::parfait-examples0.5.4-4.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::parfait-javadoc0.5.4-4.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::pcp-parfait-agent0.5.4-4.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::si-units0.6.5-2.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::si-units-javadoc0.6.5-2.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::unit-api1.0-5.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::unit-api-javadoc1.0-5.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-lib1.0.1-6.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-lib-javadoc1.0.1-6.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-parent1.0.3-3.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-se1.0.4-3.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-se-javadoc1.0.4-3.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-systems0.7-1.module_el8.5.0+235+62ea7738
alma 8parfait:0.5::uom-systems-javadoc0.7-1.module_el8.5.0+235+62ea7738
amazon linux 1log4j1.2.17-16.14.amzn1
amazon linux 1log4j-javadoc1.2.17-16.14.amzn1
amazon linux 1log4j-manual1.2.17-16.14.amzn1
amazon linux 2log4j1.2.17-18.amzn2
amazon linux 2log4j-javadoc1.2.17-18.amzn2
amazon linux 2log4j-manual1.2.17-18.amzn2
chainguarddruid35.0.1-r1
debian 10apache-log4j1.21.2.17-8+deb10u2
debian 11apache-log4j1.21.2.17-10+deb11u1
debian 12apache-log4j1.21.2.17-11
debian 13apache-log4j1.21.2.17-11
debian 14apache-log4j1.21.2.17-11
debian 9apache-log4j1.21.2.17-7+deb9u2
echoapache-log4j1.21.2.17-11
Oracle Linux 6log4j1.2.14-6.4.2.el6_10
Oracle Linux 6log4j-javadoc1.2.14-6.4.2.el6_10
Oracle Linux 6log4j-manual1.2.14-6.4.2.el6_10
Oracle Linux 7log4j1.2.17-18.el7_4
Oracle Linux 7log4j-javadoc1.2.17-18.el7_4
Oracle Linux 7log4j-manual1.2.17-18.el7_4
Oracle Linux 8parfait0.5.4-4.module+el8.5.0+20480+407d1823
Oracle Linux 8parfait-examples0.5.4-4.module+el8.5.0+20480+407d1823
Oracle Linux 8parfait-javadoc0.5.4-4.module+el8.5.0+20480+407d1823
Oracle Linux 8pcp-parfait-agent0.5.4-4.module+el8.5.0+20480+407d1823
Oracle Linux 8si-units0.6.5-2.module+el8+5163+abb6ece5
Oracle Linux 8si-units-javadoc0.6.5-2.module+el8+5163+abb6ece5
Oracle Linux 8unit-api1.0-5.module+el8+5163+abb6ece5
Oracle Linux 8unit-api-javadoc1.0-5.module+el8+5163+abb6ece5
Oracle Linux 8uom-lib1.0.1-6.module+el8+5163+abb6ece5
Oracle Linux 8uom-lib-javadoc1.0.1-6.module+el8+5163+abb6ece5
Oracle Linux 8uom-parent1.0.3-3.module+el8+5163+abb6ece5
Oracle Linux 8uom-se1.0.4-3.module+el8+5163+abb6ece5
Oracle Linux 8uom-se-javadoc1.0.4-3.module+el8+5163+abb6ece5
Oracle Linux 8uom-systems0.7-1.module+el8+5163+abb6ece5
Oracle Linux 8uom-systems-javadoc0.7-1.module+el8+5163+abb6ece5
Red Hatlog4jkein Fix angegeben
Red Hatlog4j-eap6kein Fix angegeben
Red Hatopendaylightkein Fix angegeben
rocky 8parfait:0.5::parfait0.5.4-4.module+el8.5.0+728+553fbdb8
rocky 8parfait:0.5::parfait-examples0.5.4-4.module+el8.5.0+728+553fbdb8
rocky 8parfait:0.5::parfait-javadoc0.5.4-4.module+el8.5.0+728+553fbdb8
rocky 8parfait:0.5::pcp-parfait-agent0.5.4-4.module+el8.5.0+728+553fbdb8
rocky 8parfait:0.5::si-units0.6.5-2.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::si-units-javadoc0.6.5-2.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::unit-api1.0-5.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::unit-api-javadoc1.0-5.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-lib1.0.1-6.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-lib-javadoc1.0.1-6.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-parent1.0.3-3.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-se1.0.4-3.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-se-javadoc1.0.4-3.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-systems0.7-1.module+el8.3.0+214+edf13b3f
rocky 8parfait:0.5::uom-systems-javadoc0.7-1.module+el8.3.0+214+edf13b3f
ubuntu 16.04-ESMapache-log4j1.21.2.17-7ubuntu1+esm1
ubuntu 18.04apache-log4j1.21.2.17-8+deb10u1ubuntu0.2
ubuntu 18.04-ESMapache-log4j1.21.2.17-8+deb10u1ubuntu0.2
ubuntu 20.04apache-log4j1.21.2.17-9ubuntu0.2
ubuntu 20.04-ESMapache-log4j1.21.2.17-9ubuntu0.2
wolfidruid35.0.1-r1

Referenzen

Alle 26 Referenzen

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.