CVE-2022-23305
log4j: SQL injection in Log4j 1.x when application is configured to use JDBCAppender
Einstufung nach Quelle
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
| Quelle | Paket | Behoben in |
|---|---|---|
| maven::GitHub Security Advisory Maven | log4j:log4j, org.zenframework.z8.dependencies.commons:log4j-1.2.17 | kein Fix angegeben |
| alma 8 | parfait:0.5::parfait, parfait:0.5::parfait-examples, parfait:0.5::parfait-javadoc und 12 weitere | 0.5.4-4.module_el8.5.0+235+62ea7738 und 6 weitere |
| amazon linux 1 | log4j, log4j-javadoc, log4j-manual | 1.2.17-16.14.amzn1 |
| amazon linux 2 | log4j, log4j-javadoc, log4j-manual | 1.2.17-18.amzn2 |
| chainguard | druid | 35.0.1-r1 |
| debian 10 | apache-log4j1.2 | 1.2.17-8+deb10u2 |
| debian 11 | apache-log4j1.2 | 1.2.17-10+deb11u1 |
| debian 12 | apache-log4j1.2 | 1.2.17-11 |
| debian 13 | apache-log4j1.2 | 1.2.17-11 |
| debian 14 | apache-log4j1.2 | 1.2.17-11 |
| debian 9 | apache-log4j1.2 | 1.2.17-7+deb9u2 |
| echo | apache-log4j1.2 | 1.2.17-11 |
Alle 76 Einträge aus 23 Quellen zeigen
| Quelle | Paket | Behoben in |
|---|---|---|
| maven::GitHub Security Advisory Maven | log4j:log4j | kein Fix angegeben |
| maven::GitHub Security Advisory Maven | org.zenframework.z8.dependencies.commons:log4j-1.2.17 | kein Fix angegeben |
| alma 8 | parfait:0.5::parfait | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::parfait-examples | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::parfait-javadoc | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::pcp-parfait-agent | 0.5.4-4.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::si-units | 0.6.5-2.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::si-units-javadoc | 0.6.5-2.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::unit-api | 1.0-5.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::unit-api-javadoc | 1.0-5.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-lib | 1.0.1-6.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-lib-javadoc | 1.0.1-6.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-parent | 1.0.3-3.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-se | 1.0.4-3.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-se-javadoc | 1.0.4-3.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-systems | 0.7-1.module_el8.5.0+235+62ea7738 |
| alma 8 | parfait:0.5::uom-systems-javadoc | 0.7-1.module_el8.5.0+235+62ea7738 |
| amazon linux 1 | log4j | 1.2.17-16.14.amzn1 |
| amazon linux 1 | log4j-javadoc | 1.2.17-16.14.amzn1 |
| amazon linux 1 | log4j-manual | 1.2.17-16.14.amzn1 |
| amazon linux 2 | log4j | 1.2.17-18.amzn2 |
| amazon linux 2 | log4j-javadoc | 1.2.17-18.amzn2 |
| amazon linux 2 | log4j-manual | 1.2.17-18.amzn2 |
| chainguard | druid | 35.0.1-r1 |
| debian 10 | apache-log4j1.2 | 1.2.17-8+deb10u2 |
| debian 11 | apache-log4j1.2 | 1.2.17-10+deb11u1 |
| debian 12 | apache-log4j1.2 | 1.2.17-11 |
| debian 13 | apache-log4j1.2 | 1.2.17-11 |
| debian 14 | apache-log4j1.2 | 1.2.17-11 |
| debian 9 | apache-log4j1.2 | 1.2.17-7+deb9u2 |
| echo | apache-log4j1.2 | 1.2.17-11 |
| Oracle Linux 6 | log4j | 1.2.14-6.4.2.el6_10 |
| Oracle Linux 6 | log4j-javadoc | 1.2.14-6.4.2.el6_10 |
| Oracle Linux 6 | log4j-manual | 1.2.14-6.4.2.el6_10 |
| Oracle Linux 7 | log4j | 1.2.17-18.el7_4 |
| Oracle Linux 7 | log4j-javadoc | 1.2.17-18.el7_4 |
| Oracle Linux 7 | log4j-manual | 1.2.17-18.el7_4 |
| Oracle Linux 8 | parfait | 0.5.4-4.module+el8.5.0+20480+407d1823 |
| Oracle Linux 8 | parfait-examples | 0.5.4-4.module+el8.5.0+20480+407d1823 |
| Oracle Linux 8 | parfait-javadoc | 0.5.4-4.module+el8.5.0+20480+407d1823 |
| Oracle Linux 8 | pcp-parfait-agent | 0.5.4-4.module+el8.5.0+20480+407d1823 |
| Oracle Linux 8 | si-units | 0.6.5-2.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | si-units-javadoc | 0.6.5-2.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | unit-api | 1.0-5.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | unit-api-javadoc | 1.0-5.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-lib | 1.0.1-6.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-lib-javadoc | 1.0.1-6.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-parent | 1.0.3-3.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-se | 1.0.4-3.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-se-javadoc | 1.0.4-3.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-systems | 0.7-1.module+el8+5163+abb6ece5 |
| Oracle Linux 8 | uom-systems-javadoc | 0.7-1.module+el8+5163+abb6ece5 |
| Red Hat | log4j | kein Fix angegeben |
| Red Hat | log4j-eap6 | kein Fix angegeben |
| Red Hat | opendaylight | kein Fix angegeben |
| rocky 8 | parfait:0.5::parfait | 0.5.4-4.module+el8.5.0+728+553fbdb8 |
| rocky 8 | parfait:0.5::parfait-examples | 0.5.4-4.module+el8.5.0+728+553fbdb8 |
| rocky 8 | parfait:0.5::parfait-javadoc | 0.5.4-4.module+el8.5.0+728+553fbdb8 |
| rocky 8 | parfait:0.5::pcp-parfait-agent | 0.5.4-4.module+el8.5.0+728+553fbdb8 |
| rocky 8 | parfait:0.5::si-units | 0.6.5-2.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::si-units-javadoc | 0.6.5-2.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::unit-api | 1.0-5.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::unit-api-javadoc | 1.0-5.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-lib | 1.0.1-6.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-lib-javadoc | 1.0.1-6.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-parent | 1.0.3-3.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-se | 1.0.4-3.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-se-javadoc | 1.0.4-3.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-systems | 0.7-1.module+el8.3.0+214+edf13b3f |
| rocky 8 | parfait:0.5::uom-systems-javadoc | 0.7-1.module+el8.3.0+214+edf13b3f |
| ubuntu 16.04-ESM | apache-log4j1.2 | 1.2.17-7ubuntu1+esm1 |
| ubuntu 18.04 | apache-log4j1.2 | 1.2.17-8+deb10u1ubuntu0.2 |
| ubuntu 18.04-ESM | apache-log4j1.2 | 1.2.17-8+deb10u1ubuntu0.2 |
| ubuntu 20.04 | apache-log4j1.2 | 1.2.17-9ubuntu0.2 |
| ubuntu 20.04-ESM | apache-log4j1.2 | 1.2.17-9ubuntu0.2 |
| wolfi | druid | 35.0.1-r1 |
Referenzen
- http://www.openwall.com/lists/oss-security/2022/01/18/4
- https://access.redhat.com/security/cve/CVE-2022-23305
- https://bugzilla.redhat.com/show_bug.cgi?id=2031667
- https://bugzilla.redhat.com/show_bug.cgi?id=2041949
- https://bugzilla.redhat.com/show_bug.cgi?id=2041959
- https://bugzilla.redhat.com/show_bug.cgi?id=2041967
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4104
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23302
Alle 26 Referenzen
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23305
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23307
- https://errata.almalinux.org/8/ALSA-2022-0290.html
- https://errata.rockylinux.org/RLSA-2022:0290
- https://github.com/apache/logging-log4j1
- https://linux.oracle.com/cve/CVE-2022-23305.html
- https://linux.oracle.com/errata/ELSA-2022-9419.html
- https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y
- https://logging.apache.org/log4j/1.2/index.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-23305
- https://security.netapp.com/advisory/ntap-20220217-0007
- https://security.netapp.com/advisory/ntap-20220217-0007/
- https://ubuntu.com/security/notices/USN-5998-1
- https://ubuntu.com/security/notices/USN-7590-1
- https://www.cve.org/CVERecord?id=CVE-2022-23305
- https://www.openwall.com/lists/oss-security/2022/01/18/4
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html