CVE catalog

CVE-2022-23305

apache-log4j1.2: CVE-2022-23305

[CVE catalog]

Severity
High · CVSS 8.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debianapache-log4j1.2sid1.2.17-11fixed
Debianapache-log4j1.2forky1.2.17-11fixed
Debianapache-log4j1.2trixie1.2.17-11fixed
Debianapache-log4j1.2bookworm1.2.17-11fixed
Ubuntuapache-log4j1.2pro1.2.17-6ubuntu1vulnerable
Ubuntuapache-log4j1.2pro1.2.17-7ubuntu1vulnerable
Ubuntuapache-log4j1.2pro1.2.17-7ubuntu1+esm1fixed
Ubuntuapache-log4j1.218.041.2.17-7ubuntu2vulnerable
Ubuntuapache-log4j1.218.041.2.17-8vulnerable
Ubuntuapache-log4j1.218.041.2.17-8+deb10u1build0.18.04.1vulnerable
Ubuntuapache-log4j1.218.041.2.17-8+deb10u1ubuntu0.1vulnerable
Ubuntuapache-log4j1.218.041.2.17-8+deb10u1ubuntu0.2fixed
Ubuntuapache-log4j1.220.041.2.17-8vulnerable
Ubuntuapache-log4j1.220.041.2.17-9vulnerable
Ubuntuapache-log4j1.220.041.2.17-9ubuntu0.1vulnerable
Ubuntuapache-log4j1.220.041.2.17-9ubuntu0.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianapache-log4j1.2sourcesid1.2.17-11not yet assignedNot reported[1004482]
Debianapache-log4j1.2sourceforky1.2.17-11not yet assignedNot reported[1004482]
Debianapache-log4j1.2sourcetrixie1.2.17-11not yet assignedNot reported[1004482]
Debianapache-log4j1.2sourcebookworm1.2.17-11not yet assignedNot reported[1004482]
Ubuntuapache-log4j1.2debpro1.2.17-7ubuntu1+esm1Not reportedUBUNTU-CVE-2022-23305Not reported
Ubuntuapache-log4j1.2deb18.041.2.17-8+deb10u1ubuntu0.2Not reportedUBUNTU-CVE-2022-23305Not reported
Ubuntuapache-log4j1.2deb20.041.2.17-9ubuntu0.2Not reportedUBUNTU-CVE-2022-23305Not reported

[Debian bug #1004482]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · bookworm

      Fixed · Fixed: 1.2.17-11

      dsa · apache-log4j1.2 · debian · bookworm

    • 1.2.17-11 · all · bookworm

      Fixed · Fixed: 1.2.17-11

      dsa · apache-log4j1.2 · debian · bookworm

  • Source package: [apache-log4j1.2]

    Details (2)
    • 1.2.17-11 · all · bookworm

      Fixed · Fixed: 1.2.17-11

      dsa · apache-log4j1.2 · debian · bookworm

    • 1.2.17-11 · all · bookworm

      Fixed · Fixed: 1.2.17-11

      dsa · apache-log4j1.2 · debian · bookworm

Observed:

References