CVE-2022-25903: opcua Vulnerable to Out-of-bounds Write
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.6804%
CWE
Published
8/25/2022
Updated
1/30/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| opcua | rust | < 0.11.0 | 0.11.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing recursion depth validation during deserialization of ExtensionObjects and Variants. The GitHub commit e75dada explicitly adds depth_lock() calls in these exact locations to prevent stack overflows. Before the patch, these decoding functions would recursively process nested structures without limiting call stack growth, making them the clear attack surface for CWE-787 exploitation via excessive nesting.