CVE-2021-41766

Insecure Java Deserialization in Apache Karaf

Description

Apache Karaf allows monitoring of applications and the Java runtime by using the Java Management Extensions (JMX). JMX is a Java RMI based technology that relies on Java serialized objects for client server communication. Whereas the default JMX implementation is hardened against unauthenticated deserialization attacks, the implementation used by Apache Karaf is not protected against this kind of attack. The impact of Java deserialization vulnerabilities strongly depends on the classes that are available within the targets class path. Generally speaking, deserialization of untrusted data does always represent a high security risk and should be prevented. The risk is low as, by default, Karaf uses a limited set of classes in the JMX server class path. It depends of system scoped classes (e.g. jar in the lib folder).

Remediation

Workaround:

  • Apache Karaf users should upgrade to 4.3.6 or later as soon as possible, or disable remote access to JMX server.

Category

8.1
CVSS
Severity: High
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.27%
Vendor Advisory apache.org
Affected: Apache Software Foundation Apache Karaf
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-41766?
CVE-2021-41766 has been scored as a high severity vulnerability.
How to fix CVE-2021-41766?
As a workaround for remediating CVE-2021-41766: Apache Karaf users should upgrade to 4.3.6 or later as soon as possible, or disable remote access to JMX server.
Is CVE-2021-41766 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2021-41766 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-41766?
CVE-2021-41766 affects Apache Software Foundation Apache Karaf.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.