CVE-2018-7559 is a medium-severity (CVSS 5.3) CWE-320 vulnerability in OPCFoundation.NetStandard.Opc.Ua. A fix is available for OPCFoundation.NetStandard.Opc.Ua — see the affected versions and patch details below.
OPC UA applications can allow a remote attacker to determine a Server's private key
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
OPCFoundation.NetStandard.Opc.UaReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in OPC UA .NET Standard Stack and Sample Code before GitHub commit 2018-04-12, and OPC UA .NET Legacy Stack and Sample Code before GitHub commit 2018-03-13. A vulnerability in OPC UA applications can allow a remote attacker to determine a Server's private key by sending carefully constructed bad UserIdentityTokens as part of an oracle attack.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | OPCFoundation.NetStandard.Opc.Ua | all versions | 1.3.352.12dotnet add package OPCFoundation.NetStandard.Opc.Ua --version 1.3.352.12 |
Affected Products
ua-.net-legacyopcfoundationua-.netstandardopcfoundationDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for OPCFoundation.NetStandard.Opc.Ua, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update OPCFoundation.NetStandard.Opc.Ua to 1.3.352.12 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2018-7559 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2018-7559 in your dependencies?
Find it across NuGet, including transitive dependencies.