CVE-2026-46495: Opendj server legacy Remote Code Execution Vulnerability
CRITICALCVE-2026-46495 is a CRITICAL remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Opendj server legacy libraries in the Maven ecosystem. The issue involves opendj pre-auth rce via java deserialization in jmx rmi. Remediation is available by upgrading affected packages to version 5.1.1.
CVE-2026-46495 at a Glance
How to Fix CVE-2026-46495
To remediate this vulnerability, upgrade all affected Opendj server legacy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.openidentityplatform.opendj</groupId>
<artifactId>opendj-server-legacy</artifactId>
<version>5.1.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.openidentityplatform.opendj
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-46495, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.openidentityplatform.opendj
Analyze the terminal output to locate any version of Opendj server legacy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.1.1), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.openidentityplatform.opendj command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Opendj server legacy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-46495 Affected Opendj server legacy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.openidentityplatform.opendj:opendj-server-legacy
|
Maven |
< 5.1.1
|
5.1.1
|
References
Frequently Asked Questions
What is CVE-2026-46495?
Which Opendj server legacy versions are affected?
What version fixes CVE-2026-46495?
Is opendj-server-legacy affected?
What CWE is associated with CVE-2026-46495?
How can I check Maven dependencies for CVE-2026-46495?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-43x2-g84q-fmqx",
"modified" : "2026-06-22T21:10:31Z",
"published" : "2026-06-22T21:10:31Z",
"aliases" : [ "CVE-2026-46495" ],
"summary" : "OpenDJ Pre-Auth RCE via Java Deserialization in JMX RMI",
"details" : "## Summary\n\n**Description**\n\nA Deserialization of Untrusted Data (CWE-502) issue in OpenDJ's JMX RMI connector allows an unauthenticated remote attacker to deserialize arbitrary Java objects on the server. The vulnerability exists because the platform reads and processes attacker-controlled bytes prior to authentication. This affects OpenDJ Community Edition through 5.1.0. This has been patched in version 5.1.1.\n\n## Impact\nThis impacts all current OpenDJ releases where the JMX Connection Handler is enabled. While disabled by default, it is frequently enabled in practice for monitoring integrations. Exploitation requires TCP reachability to the configured listener and does not require authentication, prior privileges, or client certificates. Successful exploitation results in unauthenticated Remote Code Execution (RCE), with the severity depending on the runtime classpath and Java version. Unauthenticated RCE was demonstrated on the OpenDJ 4.4.15 (JDK 11 + Jackson 2.12.6.1).\n\n## Patch\nThis has been patched in OpenDJ Community Edition version 5.1.1. Users are encouraged to update to the latest release.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.openidentityplatform.opendj:opendj-server-legacy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.1.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.1.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/OpenIdentityPlatform/OpenDJ/security/advisories/GHSA-43x2-g84q-fmqx"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OpenIdentityPlatform/OpenDJ"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-22T21:10:31Z",
"nvd_published_at" : null
}
}