UBUNTU-CVE-2022-41678

Source
https://ubuntu.com/security/CVE-2022-41678
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-41678.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-41678
Related
Published
2023-11-28T16:15:00Z
Modified
2024-12-04T16:31:54Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Once an user is authenticated on Jolokia, he can potentially trigger arbitrary code execution. In details, in ActiveMQ configurations, jetty allows org.jolokia.http.AgentServlet to handler request to /api/jolokia org.jolokia.http.HttpRequestHandler#handlePostRequest is able to create JmxRequest through JSONObject. And calls to org.jolokia.http.HttpRequestHandler#executeRequest. Into deeper calling stacks, org.jolokia.handler.ExecHandler#doHandleRequest can be invoked through refection. This could lead to RCE through via various mbeans. One example is unrestricted deserialization in jdk.management.jfr.FlightRecorderMXBeanImpl which exists on Java version above 11. 1 Call newRecording. 2 Call setConfiguration. And a webshell data hides in it. 3 Call startRecording. 4 Call copyTo method. The webshell will be written to a .jsp file. The mitigation is to restrict (by default) the actions authorized on Jolokia, or disable Jolokia. A more restrictive Jolokia configuration has been defined in default ActiveMQ distribution. We encourage users to upgrade to ActiveMQ distributions version including updated Jolokia configuration: 5.16.6, 5.17.4, 5.18.0, 6.0.0.

References

Affected packages

Ubuntu:Pro:16.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.13.2+dfsg-2ubuntu0.1~esm1

Affected versions

5.*

5.6.0+dfsg1-4+deb8u1ubuntu1
5.6.0+dfsg1-5
5.13.2+dfsg-2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.13.2+dfsg-2ubuntu0.1~esm1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.13.2+dfsg-2ubuntu0.1~esm1",
            "binary_name": "libactivemq-java"
        },
        {
            "binary_version": "5.13.2+dfsg-2ubuntu0.1~esm1",
            "binary_name": "libactivemq-java-doc"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.15.8-2~18.04.1~esm1

Affected versions

5.*

5.14.5-3
5.15.2-2
5.15.3-2
5.15.8-2~18.04

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.15.8-2~18.04.1~esm1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.15.8-2~18.04.1~esm1",
            "binary_name": "libactivemq-java"
        }
    ]
}

Ubuntu:20.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=focal

Affected ranges

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

Affected versions

5.*

5.15.10-1
5.15.11-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.15.11-1ubuntu0.1~esm1

Affected versions

5.*

5.15.10-1
5.15.11-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.15.11-1ubuntu0.1~esm1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.15.11-1ubuntu0.1~esm1",
            "binary_name": "libactivemq-java"
        }
    ]
}

Ubuntu:22.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.16.1-1ubuntu0.1

Affected versions

5.*

5.16.1-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.16.1-1ubuntu0.1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.16.1-1ubuntu0.1",
            "binary_name": "libactivemq-java"
        }
    ]
}

Ubuntu:Pro:22.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.16.1-1ubuntu0.1~esm1

Affected versions

5.*

5.16.1-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.16.1-1ubuntu0.1~esm1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.16.1-1ubuntu0.1~esm1",
            "binary_name": "libactivemq-java"
        }
    ]
}

Ubuntu:24.10 / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.17.6+dfsg-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.17.6+dfsg-1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.17.6+dfsg-1",
            "binary_name": "libactivemq-java"
        }
    ]
}

Ubuntu:24.04:LTS / activemq

Package

Name
activemq
Purl
pkg:deb/ubuntu/activemq?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.17.6+dfsg-1

Affected versions

5.*

5.17.2+dfsg-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.17.6+dfsg-1",
            "binary_name": "activemq"
        },
        {
            "binary_version": "5.17.6+dfsg-1",
            "binary_name": "libactivemq-java"
        }
    ]
}