Insecure Java Deserialization in Apache Karaf
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 6 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-502.
Summary
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).
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Karaf | Apache Karaf to before 4.3.6 | 4.3.6 | Patch available | CNA |
| — | org.apache.karaf.management:org.apache.karaf.management.server (Maven) | before 4.3.6 | 4.3.6 | Patch available | GHSA-jh5g-9m4v-9vv9 |
- Apache Karaf VendorApache Affected Apache Karaf to before 4.3.6 Fixed in 4.3.6 Patch available CNA
- org.apache.karaf.management:org.apache.karaf.management.server (Maven) Vendor— Affected before 4.3.6 Fixed in 4.3.6 Patch available GHSA-jh5g-9m4v-9vv9
Remediation
- Fix · CNA Apache Karaf (Apache Software Foundation) Fixed in 4.3.6
- Fix · GHSA-jh5g-9m4v-9vv9 org.apache.karaf.management:org.apache.karaf.management.server (Maven) Fixed in 4.3.6 Advisory →
Red Hat 1 advisory
- RHSA-2022:5532 Released 2022-07-07 · Red Hat rating ImportantRed Hat Fuse 7.11.0 release and security update
- Red Hat Fuse 7.11
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat BPM Suite 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss A-MQ 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss BRMS 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Fuse Service Works 6 | Affected | No fix planned: Out of support scope |
| Red Hat Fuse 7.11 | Fixed | RHSA-2022:5532 |
Not affected: 4 products
- Red Hat Decision Manager 7
- Red Hat Integration Camel K 1
- Red Hat Integration Camel Quarkus 1
- Red Hat Process Automation 7
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41766
- 2026-10-03 Alias added: GHSA-jh5g-9m4v-9vv9
References
Advisory 2
Other 6
- https://github.com/apache/karaf/pull/1475
- https://github.com/apache/karaf/commit/b42c82ca3b9a22bd92d249a1060a1953f4188bc2
- https://gitbox.apache.org/repos/asf?p=karaf.git;h=93a019c
- https://gitbox.apache.org/repos/asf?p=karaf.git;h=b42c82c
- https://github.com/apache/karaf
- https://issues.apache.org/jira/browse/KARAF-7312
More Apache Karaf vulnerabilities
- TI-2022-19035 Apache Karaf: JDBC JAAS LDAP injection CVSS 3.1CRITICAL 9.8
- TI-2018-08445 XML external entity injection in Apache Karaf CVSS 3.0CRITICAL 9.8
- TI-2026-61863 Missing authorization in Apache Karaf CVSS 3.1CRITICAL 9.8
- TI-2026-61851 Apache Karaf: Path Traversal in Config Service Allows Manager-to-Admin Privilege Escalation CVSS 3.1CRITICAL 9.8
- TI-2020-17076 An issue was discovered in Legion of the Bouncy Castle BC Java 1.65 and 1.66. CVSS 3.1HIGH 8.1
- TI-2026-61846 Apache Karaf: OS Command Injection in Child-Instance Launch (instance:* / InstancesMBean) CVSS 3.1HIGH 8.8
Sources
- CVE-2021-41766 · CVE Program
- CVE-2021-41766 · NVD
- FIRST EPSS
- GHSA-jh5g-9m4v-9vv9 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-41766 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences