{"id":"CVE-2026-33728","aliases":["CVE-2026-33728","GHSA-579q-h82j-r5v2"],"related":[],"kind":"vulnerability","state":"published","title":"dd-trace-java: Unsafe deserialization in RMI instrumentation may lead to remote code execution","summary":"dd-trace-java is a Datadog APM client for Java. In versions of dd-trace-java 0.40.0 through prior to 1.60.2, 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, dd-trace-java is attached as a Java agent (`-javaagent`) on Java 16 or earlier. Second, a JMX/RMI port has been explicitly configured via `-Dcom.sun.management.jmxremote.port` and is network-reachable, Third, a gadget-chain-compatible library is present on the classpath. For JDK >= 17, no action is required, but upgrading is strongly encouraged. For JDK >= 8u121 < JDK 17, upgrade to dd-trace-java version 1.60.3 or later. For JDK < 8u121 and earlier where serialization filters are not available, apply the workaround. The workaround is to set the following environment variable to disable the RMI integration: `DD_INTEGRATION_RMI_ENABLED=false`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"dd-trace-java is a Datadog APM client for Java. In versions of dd-trace-java 0.40.0 through prior to 1.60.2, 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, dd-trace-java is attached as a Java agent (`-javaagent`) on Java 16 or earlier. Second, a JMX/RMI port has been explicitly configured via `-Dcom.sun.management.jmxremote.port` and is network-reachable, Third, a gadget-chain-compatible library is present on the classpath. For JDK >= 17, no action is required, but upgrading is strongly encouraged. For JDK >= 8u121 < JDK 17, upgrade to dd-trace-java version 1.60.3 or later. For JDK < 8u121 and earlier where serialization filters are not available, apply the workaround. The workaround is to set the following environment variable to disable the RMI integration: `DD_INTEGRATION_RMI_ENABLED=false`.","source":"cvelist"},{"lang":"en","text":"In versions of dd-trace-java prior to 1.60.3, 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:\n1. dd-trace-java is attached as a Java agent (`-javaagent`) on Java 16 or earlier\n2. A JMX/RMI port has been explicitly configured via `-Dcom.sun.management.jmxremote.port` and is network-reachable\n3. A gadget-chain-compatible library is present on the classpath\n\n### Impact\nArbitrary remote code execution with the privileges of the user running the instrumented JVM.\n\n### Recommendation\n- For JDK >= 17: No action is required, but upgrading is strongly encouraged.\n- For JDK >= 8u121 < JDK 17: Upgrade to dd-trace-java version 1.60.3 or later.\n- For JDK < 8u121 and earlier where serialization filters are not available, apply the workaround described below.\n\n### Workarounds\nSet the following environment variable to disable the RMI integration: `DD_INTEGRATION_RMI_ENABLED=false`\n\n### Credits\nThis vulnerability was responsibly disclosed by Mohamed Amine ait Ouchebou (mrecho) (Indiesecurity) via the Datadog bug bounty program.","format":"markdown","source":"ghsa"},{"lang":"es","text":"dd-trace-java es un cliente APM de Datadog para Java. En las versiones de dd-trace-java 0.40.0 hasta la anterior a 1.60.2, la instrumentación RMI registró un punto final personalizado que deserializaba los datos entrantes sin aplicar filtros de serialización. En la versión 16 de JDK y anteriores, un atacante con acceso de red a un puerto JMX o RMI en una JVM instrumentada podría explotar esto para lograr potencialmente la ejecución remota de código. Las tres condiciones siguientes deben ser verdaderas para explotar esta vulnerabilidad: Primero, dd-trace-java está adjunto como un agente Java ('-javaagent') en Java 16 o anterior. Segundo, un puerto JMX/RMI ha sido configurado explícitamente a través de '-Dcom.sun.management.jmxremote.port' y es accesible por red. Tercero, una biblioteca compatible con cadenas de gadgets está presente en el classpath. Para JDK &gt;= 17, no se requiere ninguna acción, pero se recomienda encarecidamente la actualización. Para JDK &gt;= 8u121 &lt; JDK 17, actualice a la versión 1.60.3 o posterior de dd-trace-java. Para JDK &lt; 8u121 y anteriores donde los filtros de serialización no están disponibles, aplique la solución alternativa. La solución alternativa es establecer la siguiente variable de entorno para deshabilitar la integración RMI: 'DD_INTEGRATION_RMI_ENABLED=false'.","source":"nvd"}],"published":"2026-03-26T16:45:41.000Z","modified":"2026-06-17T10:37:59.980Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":">= 0.40.0, < 1.60.3","status":"affected"}],"vendor":"DataDog","product":"dd-trace-java","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.40.0","status":"affected","fixed":"1.60.3"}],"ecosystem":"Maven","package":"com.datadoghq:dd-java-agent","purl":"pkg:maven/com.datadoghq/dd-java-agent","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.40.0","fixed":"1.60.3"}],"vendor":"datadog","product":"dd-trace-java","cpe":"cpe:2.3:a:datadog:dd-trace-java:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/DataDog/dd-trace-java/security/advisories/GHSA-579q-h82j-r5v2","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/DataDog/dd-trace-java/releases/tag/v1.60.3","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33728","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/DataDog/dd-trace-java","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-03-27T19:57:15.250Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33728","url":"https://www.cve.org/CVERecord?id=CVE-2026-33728","licence":"CVE Terms of Use","modified":"2026-03-27T19:57:29.854Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-579q-h82j-r5v2","url":"https://github.com/advisories/GHSA-579q-h82j-r5v2","licence":"CC-BY-4.0","modified":"2026-06-09T12:00:12.397Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33728","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33728","licence":"Public domain","modified":"2026-06-17T10:37:59.980Z"}],"updatedAt":"2026-11-25T22:59:17.356Z","epss":{"score":0.00798,"percentile":0.57721,"date":"2026-12-02T12:00:21.000Z"}}