CVE-2022-41678Apache ActiveMQ: Insufficient API restrictions on Jolokia allow authenticated users to perform RCE
- 8.8HighCVSS base score
- 85.7%Exploitation in 30 daysEPSS · top 0.3% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it.
Show the exploits1
Nuclei templates1 template
- Apache ActiveMQ < 5.16.5/5.17.3 - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2022/CVE-2022-41678.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By apache
- 14 months later
· 14 months later
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 85.7% · top 0.3% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Affected products
Apache Software Foundation · Apache ActiveMQ
- affected < 5.16.6
- affected 5.17.0 – < 5.17.4
- unaffected 5.18.0
- unaffected 6.0.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.activemq:apache-activemqGHSA-53v4-42fg-g287 (opens in a new tab)
References
References5
- https://activemq.apache.org/security-advisories.data/CVE-2022-41678-announcement.txt (opens in a new tab)vendor-advisoryx_transferred
- https://lists.apache.org/thread/7g17kwbtjl011mm4tr8bn1vnoq9wh4sl (opens in a new tab)vendor-advisoryx_transferred
- https://www.openwall.com/lists/oss-security/2023/11/28/1 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240216-0004/ (opens in a new tab)x_transferred
- https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-2884 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-53v4-42fg-g287 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-41678)Record last updated .