Skip to content
Heist/ feed
Back to feed
CriticalFix available

apache-log4j1.2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-23305

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.

Products
apache-log4j1.2
Affected versions
Not specified
Fixed versions
1.2.17-11
CVEs
CVE-2022-23305
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:47 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-23305

core-osv · Original source

Published 18 Jan 2022, 16:15 UTC

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.

osv:DEBIAN-CVE-2022-23305

apache-log4j1.2

Fixed versions: 1.2.17-11

apache-log4j1.2

Fixed versions: 1.2.17-11

apache-log4j1.2

Fixed versions: 1.2.17-11

Complete source record
{
  "id": "e3fc5789a2d3d12c0733fdae071190c3d0097462c1d07f71ea68d58f2b2d5149",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-23305",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-23305",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2022-23305",
    "products": [
      {
        "name": {
          "value": "apache-log4j1.2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.17-11",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "apache-log4j1.2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.17-11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "apache-log4j1.2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.17-11",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2022-23305",
      "aliases": [
        "DEBIAN-CVE-2022-23305"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.17-11"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-log4j1.2",
            "purl": "pkg:deb/debian/apache-log4j1.2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-23305.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.17-11"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-log4j1.2",
            "purl": "pkg:deb/debian/apache-log4j1.2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-23305.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.17-11"
                }
              ]
            }
          ],
          "package": {
            "name": "apache-log4j1.2",
            "purl": "pkg:deb/debian/apache-log4j1.2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-23305.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:02:08.914996009Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-23305"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-23305"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-23305",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 323285,
  "published_at": "2022-01-18T16:15:08.35+00:00"
}