CVE-2026-33701

OpenTelemetry: Unsafe Deserialization in RMI Instrumentation may Lead to Remote Code Execution

Published Mar 27, 2026 CVSS 4.0 · 9.3 Critical EPSS 1.4% KEV · Not listed
Description
OpenTelemetry Java Instrumentation provides OpenTelemetry auto-instrumentation and instrumentation libraries for Java. In versions prior to 2.26.1, the RMI instrumentation registered a custom endpoint that deserialized incoming data without applying serialization filters. On JDK version 16 and earlier, an attacker with network access to a JMX or RMI port on an instrumented JVM could exploit this to potentially achieve remote code execution. All three of the following conditions must be true to exploit this vulnerability: First, OpenTelemetry Java instrumentation is attached as a Java agent (`-javaagent`) on Java 16 or earlier. Second, JMX/RMI port has been explicitly configured via `-Dcom.sun.management.jmxremote.port` and is network-reachable. Third, gadget-chain-compatible library is present on the classpath. This results in arbitrary remote code execution with the privileges of the user running the instrumented JVM. For JDK >= 17, no action is required, but upgrading is strongly encouraged. For JDK < 17, upgrade to version 2.26.1 or later. As a workaround, set the system property `-Dotel.instrumentation.rmi.enabled=false` to disable the RMI integration.

Analysis

AI-generated

Technical impact

OpenTelemetry Java instrumentation registers a custom RMI endpoint that deserializes incoming data without any serialization filtering. This flaw allows an attacker to send specially crafted serialized objects that, when processed by the instrumented JVM, can trigger arbitrary code execution with the privileges of the JVM process. The weakness is identified as an unsafe deserialization defect, CWE‑502. When the vulnerability is exploited, it can compromise the confidentiality, integrity, and availability of the affected system by allowing an attacker to execute arbitrary code on the host.

Affected Systems

Products affected are the OpenTelemetry Java instrumentation libraries, versions prior to 2.26.1, when they are attached as a Java agent via the -javaagent option to a JVM running on Java 16 or earlier. The JVM must have a JMX or RMI port explicitly configured and exposed to the network, and a gadget‑chain‑compatible library must be present on the classpath. JDK versions 17 or newer are not impacted, and upgrading the instrumentation library to 2.26.1 or later removes this risk.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity, yet the EPSS score is below 1% and the vulnerability is not listed in the CISA KEV catalog, suggesting that real‑world exploitation is currently low. Exploitation requires three conditions at once: the JVM must be instrumented by OpenTelemetry Java instrumentation under -javaagent, a network‑reachable JMX/RMI port must be configured, and the classpath must contain a compatible gadget library. The likely attack vector is a remote attacker targeting the exposed port to deliver malicious serialized payloads; this inference is based on the description that the vulnerability can be triggered by external input over the network.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenTelemetry Java instrumentation to version 2.26.1 or later
  • If an upgrade is not immediately possible, disable the RMI integration by setting the system property -Dotel.instrumentation.rmi.enabled=false
  • Ensure the JVM runs on JDK 17 or newer, or otherwise restrict network access to the JMX/RMI port to trusted hosts
  • Verify that no gadget‑chain‑compatible libraries are present on the classpath

Generated by OpenCVE AI on April 2, 2026 at 05:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xw7x-h9fj-p2c7 OpenTelemetry: Unsafe Deserialization in RMI Instrumentation may Lead to Remote Code Execution
History
Type Values Removed Values Added
First Time appeared Linuxfoundation
Linuxfoundation opentelemetry Instrumentation For Java
CPEs cpe:2.3:a:linuxfoundation:opentelemetry_instrumentation_for_java:*:*:*:*:*:*:*:*
Vendors & Products Linuxfoundation
Linuxfoundation opentelemetry Instrumentation For Java
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Opentelemetry
Opentelemetry opentelemetry-java-instrumentation
Vendors & Products Opentelemetry
Opentelemetry opentelemetry-java-instrumentation
Type Values Removed Values Added
Description OpenTelemetry Java Instrumentation provides OpenTelemetry auto-instrumentation and instrumentation libraries for Java. In versions prior to 2.26.1, the RMI instrumentation registered a custom endpoint that deserialized incoming data without applying serialization filters. On JDK version 16 and earlier, an attacker with network access to a JMX or RMI port on an instrumented JVM could exploit this to potentially achieve remote code execution. All three of the following conditions must be true to exploit this vulnerability: First, OpenTelemetry Java instrumentation is attached as a Java agent (`-javaagent`) on Java 16 or earlier. Second, JMX/RMI port has been explicitly configured via `-Dcom.sun.management.jmxremote.port` and is network-reachable. Third, gadget-chain-compatible library is present on the classpath. This results in arbitrary remote code execution with the privileges of the user running the instrumented JVM. For JDK >= 17, no action is required, but upgrading is strongly encouraged. For JDK < 17, upgrade to version 2.26.1 or later. As a workaround, set the system property `-Dotel.instrumentation.rmi.enabled=false` to disable the RMI integration.
Title OpenTelemetry: Unsafe Deserialization in RMI Instrumentation may Lead to Remote Code Execution
Weaknesses CWE-502
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 17, 2026, 12:04 PM
Reserved
Mar 23, 2026, 5:06 PM
Status
Modified
Published
Mar 27, 2026, 1:16 AM
Modified
Aug 4, 2026, 1:18 PM
Severity
Important
Public date
Mar 27, 2026, 12:01 AM