UBUNTU-CVE-2022-23305

Source
https://ubuntu.com/security/CVE-2022-23305
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-23305.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-23305
Related
Published
2022-01-18T16:15:00Z
Modified
2024-12-18T16:41:05Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=esm-infra-legacy/trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.17-3ubuntu1
1.2.17-4ubuntu1
1.2.17-4ubuntu2
1.2.17-4ubuntu3
1.2.17-4ubuntu3+esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.17-7ubuntu1+esm1

Affected versions

1.*

1.2.17-6ubuntu1
1.2.17-7ubuntu1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.2.17-7ubuntu1+esm1",
            "binary_name": "liblog4j1.2-java"
        },
        {
            "binary_version": "1.2.17-7ubuntu1+esm1",
            "binary_name": "liblog4j1.2-java-doc"
        }
    ]
}

Ubuntu:18.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.17-8+deb10u1ubuntu0.2

Affected versions

1.*

1.2.17-7ubuntu2
1.2.17-8
1.2.17-8+deb10u1build0.18.04.1
1.2.17-8+deb10u1ubuntu0.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.2.17-8+deb10u1ubuntu0.2",
            "binary_name": "liblog4j1.2-java"
        },
        {
            "binary_version": "1.2.17-8+deb10u1ubuntu0.2",
            "binary_name": "liblog4j1.2-java-doc"
        }
    ]
}

Ubuntu:20.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.17-9ubuntu0.2

Affected versions

1.*

1.2.17-8
1.2.17-9
1.2.17-9ubuntu0.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.2.17-9ubuntu0.2",
            "binary_name": "liblog4j1.2-java"
        },
        {
            "binary_version": "1.2.17-9ubuntu0.2",
            "binary_name": "liblog4j1.2-java-doc"
        }
    ]
}

Ubuntu:22.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.17-11

Affected versions

1.*

1.2.17-10

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.2.17-11",
            "binary_name": "liblog4j1.2-java"
        },
        {
            "binary_version": "1.2.17-11",
            "binary_name": "liblog4j1.2-java-doc"
        }
    ]
}

Ubuntu:24.10 / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.17-11

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / apache-log4j1.2

Package

Name
apache-log4j1.2
Purl
pkg:deb/ubuntu/apache-log4j1.2?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.17-11

Ecosystem specific

{
    "ubuntu_priority": "medium"
}