CVE-2026-102509
Apache PLC4X, Apache PLC4X: Pre-authentication resource exhaustion in the OPC UA driver and the Java SPI parser
Description
Memory Allocation with Excessive Size Value, Allocation of Resources Without Limits, and Uncontrolled Recursion in the Java implementation of Apache PLC4X (PLC4J) allow a malicious or impersonated device to exhaust the memory or stack of the client application, causing a denial of service.
In the OPC UA driver these defects are reachable before authentication: the offending data is parsed while the secure channel and session are being established, before the server's identity has been bound to it. Configuring a trusted server therefore does not prevent exploitation by an attacker who can impersonate it.
The individual defects are:
- Length-prefixed byte strings are allocated at the size claimed on the wire before the length is checked against the data actually received (0.10.0 through 0.13.1).
- Array fields in generated protocol parsers pre-allocate a list with the element count claimed on the wire, allowing a single count field to trigger a multi-gigabyte allocation. This parser is shared by all PLC4J drivers; the OPC UA driver is the verified pre-authentication path (0.10.0 through 0.13.1).
- The OPC UA driver accumulates message chunks without enforcing the negotiated maximum chunk count and message size (0.12.0 through 0.13.1).
- The OPC UA driver pre-allocates collections using element counts received from the server (0.10.0 through 0.13.1).
- Recursive protocol types are parsed without a nesting-depth limit. The same defect in the Go implementation is covered by CVE-2026-102510 https://cveprocess.apache.org/cve5/CVE-2026-102510 .
This issue affects Apache PLC4X: from 0.10.0 before 1.0.0.
Users are recommended to upgrade to version 1.0.0, which fixes the issue.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.plc4x » plc4j-driver-opcuapreliminary | >= 0.10.0, < 1.0.0 | 1.0.0 |
| org.apache.plc4x » plc4j-spipreliminary | >= 0.10.0, < 1.0.0 | 1.0.0 |
Blast radius
97% of the dependent artifacts (108) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 492 |
| 2 hops | 640 |
| 3 hops | 1,431 |
| 4 hops | 1,168 |
| 5 hops | 311 |
| 6 hops | 503 |
Most used dependents
- org.apache.plc4x » plc4j-driver-simulated32 usages
- org.apache.plc4x » plc4j-driver-s731 usages
- org.apache.plc4x » plc4j-utils-test-utils31 usages
- org.apache.plc4x » plc4j-transport-tcp25 usages
- org.apache.plc4x » plc4j-driver-modbus22 usages
- org.apache.plc4x » plc4j-driver-ads18 usages
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- org.apache.camel » camel-jbang-core15 usages
- org.apache.plc4x » plc4j-driver-opcua15 usages
- org.apache.plc4x » plc4j-driver-all13 usages
- org.apache.plc4x » plc4j-driver-eip12 usages
- org.apache.plc4x » plc4j-transport-serial11 usages
- org.apache.plc4x » plc4j-driver-ab-eth10 usages
- org.apache.plc4x » plc4j-driver-canopen10 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
