WaratekVRT Sign in

CVE-2021-41766 Apache Karaf

Affected softwareApache Karaf
Severity8.1 High CVSS 3.1 2 scores
Fixed in4.3.6
WeaknessDeserialization of untrusted data (CWE-502)
Published26 Jan 2022
Updated17 Jun 2026

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).

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 4 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC none indexed
  • EPSS 2.0% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR deserialization security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-502: Deserialization of Untrusted Data.

How to mitigate CVE-2021-41766

Upgrade Apache Karaf to 4.3.6 or later. Until you can, Waratek RASP blocks exploitation with its deserialization and process rules. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

8.1 HIGH v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.1 HIGH CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 6.8 none AV:N/AC:M/Au:N/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.karaf.management:org.apache.karaf.management.server 0 4.3.6 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
nvd apache karaf generic < 4.3.6
osv org.apache.karaf.management org.apache.karaf.management.server generic < 4.3.6

References

URLTags
https://github.com/apache/karaf/pull/1475 WEB
https://github.com/apache/karaf/commit/b42c82ca3b9a22bd92d249a1060a1953f4188bc2 WEB
https://gitbox.apache.org/repos/asf?p=karaf.git;h=93a019c WEB
https://gitbox.apache.org/repos/asf?p=karaf.git;h=b42c82c WEB
https://github.com/apache/karaf PACKAGE
https://issues.apache.org/jira/browse/KARAF-7312 WEB
https://karaf.apache.org/security/cve-2021-41766.txt WEB

Timeline

Published2022-01-26By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.