
CVE catalog
CVE-2022-23305
apache-log4j1.2: CVE-2022-23305
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 66.54% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | apache-log4j1.2 | sid | 1.2.17-11 | fixed |
| Debian | apache-log4j1.2 | forky | 1.2.17-11 | fixed |
| Debian | apache-log4j1.2 | trixie | 1.2.17-11 | fixed |
| Debian | apache-log4j1.2 | bookworm | 1.2.17-11 | fixed |
| Ubuntu | apache-log4j1.2 | pro | 1.2.17-6ubuntu1 | vulnerable |
| Ubuntu | apache-log4j1.2 | pro | 1.2.17-7ubuntu1 | vulnerable |
| Ubuntu | apache-log4j1.2 | pro | 1.2.17-7ubuntu1+esm1 | fixed |
| Ubuntu | apache-log4j1.2 | 18.04 | 1.2.17-7ubuntu2 | vulnerable |
| Ubuntu | apache-log4j1.2 | 18.04 | 1.2.17-8 | vulnerable |
| Ubuntu | apache-log4j1.2 | 18.04 | 1.2.17-8+deb10u1build0.18.04.1 | vulnerable |
| Ubuntu | apache-log4j1.2 | 18.04 | 1.2.17-8+deb10u1ubuntu0.1 | vulnerable |
| Ubuntu | apache-log4j1.2 | 18.04 | 1.2.17-8+deb10u1ubuntu0.2 | fixed |
| Ubuntu | apache-log4j1.2 | 20.04 | 1.2.17-8 | vulnerable |
| Ubuntu | apache-log4j1.2 | 20.04 | 1.2.17-9 | vulnerable |
| Ubuntu | apache-log4j1.2 | 20.04 | 1.2.17-9ubuntu0.1 | vulnerable |
| Ubuntu | apache-log4j1.2 | 20.04 | 1.2.17-9ubuntu0.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | apache-log4j1.2 | source | sid | 1.2.17-11 | not yet assigned | Not reported | [1004482] |
| Debian | apache-log4j1.2 | source | forky | 1.2.17-11 | not yet assigned | Not reported | [1004482] |
| Debian | apache-log4j1.2 | source | trixie | 1.2.17-11 | not yet assigned | Not reported | [1004482] |
| Debian | apache-log4j1.2 | source | bookworm | 1.2.17-11 | not yet assigned | Not reported | [1004482] |
| Ubuntu | apache-log4j1.2 | deb | pro | 1.2.17-7ubuntu1+esm1 | Not reported | UBUNTU-CVE-2022-23305 | Not reported |
| Ubuntu | apache-log4j1.2 | deb | 18.04 | 1.2.17-8+deb10u1ubuntu0.2 | Not reported | UBUNTU-CVE-2022-23305 | Not reported |
| Ubuntu | apache-log4j1.2 | deb | 20.04 | 1.2.17-9ubuntu0.2 | Not reported | UBUNTU-CVE-2022-23305 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [liblog4j1.2-java]Fixed
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormFixed · Fixed:
1.2.17-11dsa · apache-log4j1.2 · debian · bookworm
1.2.17-11· all · bookwormFixed · Fixed:
1.2.17-11dsa · apache-log4j1.2 · debian · bookworm
- [liblog4j1.2-java-doc]Fixed
Source package: [apache-log4j1.2]
Details (2)
1.2.17-11· all · bookwormFixed · Fixed:
1.2.17-11dsa · apache-log4j1.2 · debian · bookworm
1.2.17-11· all · bookwormFixed · Fixed:
1.2.17-11dsa · apache-log4j1.2 · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2022_0290.json]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-23305]
- [https://security-tracker.debian.org/tracker/CVE-2022-23305]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-23305.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0794.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]