CVE-2022-23305 SQL injection in JDBC Appender in Apache Log4j V1
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- MySQLUbuntuDebian
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.
Upgrade path
38 packages: 17 fixed, 1 partially fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| broadcom brocade sannav | All versions | No fix listed | No fix yet |
| netapp snapmanager | All versions | No fix listed | No fix yet |
| Apache Log4j 1.x | < 2.0-alpha1; >= 1.2.1 | 2.0-alpha1 | Partially fixed |
| apache log4j | >= 1.2, <= 1.2.17 | after 1.2.17 | Fixed |
| debian/apache-log4j1.2(Debian 12) | < 1.2.17-11 | 1.2.17-11 | Fixed |
| debian/apache-log4j1.2(Debian 13) | < 1.2.17-11 | 1.2.17-11 | Fixed |
| debian/apache-log4j1.2(Debian 14) | < 1.2.17-11 | 1.2.17-11 | Fixed |
| log4j/log4j(Maven) | <= 1.2.17; = 1.1.3; = 1.2.4; = 1.2.5 +11 more | after 1.2.17 | Fixed |
| oracle communications offline mediation controller | < 12.0.0.4.4; = 12.0.0.5.0 | 12.0.0.4.4 | Fixed |
| oracle e-business suite cloud manager and cloud backup module | < 2.2.1.1.1; = 2.2.1.1.1 | 2.2.1.1.1 | Fixed |
| oracle e-business suite information discovery | >= 12.2.3, <= 12.2.11 | after 12.2.11 | Fixed |
| oracle hyperion data relationship management | < 11.2.8.0 | 11.2.8.0 | Fixed |
| oracle hyperion infrastructure technology | < 11.2.8.0 | 11.2.8.0 | Fixed |
| oracle mysql enterprise monitor | <= 8.0.29 | after 8.0.29 | Fixed |
| org.zenframework.z8.dependencies.commons/log4j-1.2.17(Maven) | <= 2.0; = 2.0 | after 2.0 | Fixed |
| qos reload4j | < 1.2.18.2 | 1.2.18.2 | Fixed |
| ubuntu/apache-log4j1.2(Ubuntu 18.04) | < 1.2.17-8+deb10u1ubuntu0.2; = 1.2.17-7ubuntu2; = 1.2.17-8; = 1.2.17-8+deb10u1build0.18.04.1 +1 more | 1.2.17-8+deb10u1ubuntu0.2 | Fixed |
| ubuntu/apache-log4j1.2(Ubuntu 20.04) | < 1.2.17-9ubuntu0.2; = 1.2.17-8; = 1.2.17-9; = 1.2.17-9ubuntu0.1 | 1.2.17-9ubuntu0.2 | Fixed |
| ubuntu/apache-log4j1.2(Ubuntu Pro 14.04) | < 1.2.17-4ubuntu3+esm2; = 1.2.17-3ubuntu1; = 1.2.17-4ubuntu1; = 1.2.17-4ubuntu2 +2 more | 1.2.17-4ubuntu3+esm2 | Fixed |
| ubuntu/apache-log4j1.2(Ubuntu Pro 16.04) | < 1.2.17-7ubuntu1+esm1; = 1.2.17-6ubuntu1; = 1.2.17-7ubuntu1 | 1.2.17-7ubuntu1+esm1 | Fixed |
| oracle advanced supply chain planning | = 12.1; = 12.2 | No fix listed | Versions listed |
| oracle business intelligence | = 5.9.0.0.0; = 12.2.1.3.0; = 12.2.1.4.0 | No fix listed | Versions listed |
| oracle business process management suite | = 12.2.1.3.0; = 12.2.1.4.0 | No fix listed | Versions listed |
| oracle communications eagle ftp table base retrieval | = 4.5 | No fix listed | Versions listed |
| oracle communications instant messaging server | = 10.0.1.5.0 | No fix listed | Versions listed |
| oracle communications messaging server | = 8.1 | No fix listed | Versions listed |
| oracle communications network integrity | = 7.3.6 | No fix listed | Versions listed |
| oracle communications unified inventory management | = 7.4.1; = 7.4.2 | No fix listed | Versions listed |
| oracle enterprise manager base platform | = 13.4.0.0; = 13.5.0.0 | No fix listed | Versions listed |
| oracle financial services revenue management and billing analytics | = 2.7.0.0; = 2.7.0.1; = 2.8.0.0 | No fix listed | Versions listed |
… and 8 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| log4j/log4j(Maven) | <= 1.2.17 | No fix listed |
| log4j/log4j(Maven) | = 1.1.3 | No fix listed |
| log4j/log4j(Maven) | = 1.2.11 | No fix listed |
| log4j/log4j(Maven) | = 1.2.12 | No fix listed |
| log4j/log4j(Maven) | = 1.2.13 | No fix listed |
| log4j/log4j(Maven) | = 1.2.14 | No fix listed |
| log4j/log4j(Maven) | = 1.2.15 | No fix listed |
| log4j/log4j(Maven) | = 1.2.16 | No fix listed |
| log4j/log4j(Maven) | = 1.2.17 | No fix listed |
| log4j/log4j(Maven) | = 1.2.4 | No fix listed |
| log4j/log4j(Maven) | = 1.2.5 | No fix listed |
| log4j/log4j(Maven) | = 1.2.6 | No fix listed |
| log4j/log4j(Maven) | = 1.2.7 | No fix listed |
| log4j/log4j(Maven) | = 1.2.8 | No fix listed |
| log4j/log4j(Maven) | = 1.2.9 | No fix listed |
| org.zenframework.z8.dependencies.commons/log4j-1.2.17(Maven) | <= 2.0 | No fix listed |
| org.zenframework.z8.dependencies.commons/log4j-1.2.17(Maven) | = 2.0 | No fix listed |
| Apache Log4j 1.x | >= 1.2.1 | No fix listed |
| Apache Log4j 1.x | < 2.0-alpha1 | 2.0-alpha1 |
| apache log4j | >= 1.2, <= 1.2.17 | No fix listed |
| netapp snapmanager | All versions | No fix listed |
| broadcom brocade sannav | All versions | No fix listed |
| qos reload4j | < 1.2.18.2 | 1.2.18.2 |
| oracle advanced supply chain planning | = 12.1 | No fix listed |
| oracle advanced supply chain planning | = 12.2 | No fix listed |
Show 56 more
| Product | Affected versions | Fixed in |
|---|---|---|
| oracle business intelligence | = 5.9.0.0.0 | No fix listed |
| oracle business intelligence | = 12.2.1.3.0 | No fix listed |
| oracle business intelligence | = 12.2.1.4.0 | No fix listed |
| oracle business process management suite | = 12.2.1.3.0 | No fix listed |
| oracle business process management suite | = 12.2.1.4.0 | No fix listed |
| oracle communications eagle ftp table base retrieval | = 4.5 | No fix listed |
| oracle communications instant messaging server | = 10.0.1.5.0 | No fix listed |
| oracle communications messaging server | = 8.1 | No fix listed |
| oracle communications network integrity | = 7.3.6 | No fix listed |
| oracle communications offline mediation controller | < 12.0.0.4.4 | 12.0.0.4.4 |
| oracle communications offline mediation controller | = 12.0.0.5.0 | No fix listed |
| oracle communications unified inventory management | = 7.4.1 | No fix listed |
| oracle communications unified inventory management | = 7.4.2 | No fix listed |
| oracle e-business suite cloud manager and cloud backup module | < 2.2.1.1.1 | 2.2.1.1.1 |
| oracle e-business suite cloud manager and cloud backup module | = 2.2.1.1.1 | No fix listed |
| oracle e-business suite information discovery | >= 12.2.3, <= 12.2.11 | No fix listed |
| oracle enterprise manager base platform | = 13.4.0.0 | No fix listed |
| oracle enterprise manager base platform | = 13.5.0.0 | No fix listed |
| oracle financial services revenue management and billing analytics | = 2.7.0.0 | No fix listed |
| oracle financial services revenue management and billing analytics | = 2.7.0.1 | No fix listed |
| oracle financial services revenue management and billing analytics | = 2.8.0.0 | No fix listed |
| oracle healthcare foundation | = 8.1.0 | No fix listed |
| oracle hyperion data relationship management | < 11.2.8.0 | 11.2.8.0 |
| oracle hyperion infrastructure technology | < 11.2.8.0 | 11.2.8.0 |
| oracle identity management suite | = 12.2.1.3.0 | No fix listed |
| oracle identity management suite | = 12.2.1.4.0 | No fix listed |
| oracle Identity Manager Connector | = 11.1.1.5.0 | No fix listed |
| oracle jdeveloper | = 12.2.1.3.0 | No fix listed |
| oracle middleware common libraries and tools | = 12.2.1.4.0 | No fix listed |
| oracle mysql enterprise monitor | <= 8.0.29 | No fix listed |
| oracle retail extract transform and load | = 13.2.5 | No fix listed |
| oracle tuxedo | = 12.2.2.0.0 | No fix listed |
| oracle weblogic server | = 12.2.1.3.0 | No fix listed |
| oracle weblogic server | = 12.2.1.4.0 | No fix listed |
| oracle weblogic server | = 14.1.1.0.0 | No fix listed |
| debian/apache-log4j1.2(Debian:12) | < 1.2.17-11 | 1.2.17-11 |
| debian/apache-log4j1.2(Debian:14) | < 1.2.17-11 | 1.2.17-11 |
| debian/apache-log4j1.2(Debian:13) | < 1.2.17-11 | 1.2.17-11 |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | < 1.2.17-4ubuntu3+esm2 | 1.2.17-4ubuntu3+esm2 |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | = 1.2.17-3ubuntu1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | = 1.2.17-4ubuntu1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | = 1.2.17-4ubuntu2 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | = 1.2.17-4ubuntu3 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:14.04) | = 1.2.17-4ubuntu3+esm1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:16.04) | < 1.2.17-7ubuntu1+esm1 | 1.2.17-7ubuntu1+esm1 |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:16.04) | = 1.2.17-6ubuntu1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:Pro:16.04) | = 1.2.17-7ubuntu1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:18.04) | < 1.2.17-8+deb10u1ubuntu0.2 | 1.2.17-8+deb10u1ubuntu0.2 |
| ubuntu/apache-log4j1.2(Ubuntu:18.04) | = 1.2.17-7ubuntu2 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:18.04) | = 1.2.17-8 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:18.04) | = 1.2.17-8+deb10u1build0.18.04.1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:18.04) | = 1.2.17-8+deb10u1ubuntu0.1 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:20.04) | < 1.2.17-9ubuntu0.2 | 1.2.17-9ubuntu0.2 |
| ubuntu/apache-log4j1.2(Ubuntu:20.04) | = 1.2.17-8 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:20.04) | = 1.2.17-9 | No fix listed |
| ubuntu/apache-log4j1.2(Ubuntu:20.04) | = 1.2.17-9ubuntu0.1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- lists.apache.org issue-tracking mailing-list vendor-advisory
- logging.apache.org issue-tracking vendor-advisory
- security.netapp.com third-party-advisory
- www.oracle.com patch third-party-advisory
- www.oracle.com patch third-party-advisory
- [oss-security] 20220118 CVE-2022-23305: SQL injection in JDBC Appender in Apache Log4j V1 mailing-list third-party-advisory
- Debian Security Tracker CVE-2022-23305 vendor-advisory
- github.com
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.openwall.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking
- ubuntu.com vendor-advisory