SecurityContext

CVE-2021-41766: Apache Karaf - Insecure Deserialization

  • Cve: CVE-2021-41766
  • Name: Apache Karaf - Insecure Deserialization
  • 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).
  • Impact: Attackers can execute arbitrary code via deserialization, posing a high security risk depending on available classes in class path.
  • Remediation: Apply security patches or updates that protect against untrusted deserialization, and restrict JMX access to trusted clients.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.021
  • Epss percentile: 0.82192
  • Assignee: [email protected]
  • Published at: 2022-01-26T11:15:08Z
  • Age in days: 1763
  • Modified at: 2026-06-17T04:08:53Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41766
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-502Deserialization of Untrusted Data

References

UrlSourceTags
https://karaf.apache.org/security/cve-2021-41766.txtnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
apache:karaf< 4.3.6nonvd/v1/products/apache/karaf

Projects

RepositoryLink kindsIndexedUrl
apache/karafcommit, package, pullyes/v1/repositories/apache/karaf

Index

  • Repositories: 4
  • Repositories high signal: 1
  • Checked, none or zero: packages

Exploitation

  • Remote: yes
  • Exposed hosts: 1205
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports