CVE-2018-7559: OPCFoundation.NetStandard.Opc.Ua OPC UA Applications Can Allow Vulnerability

MODERATE
Advisory Identifier: GHSA-gr4c-5rq6-cgh3
CVSS 5.3
Published
Advisory Summary

CVE-2018-7559 is a MODERATE (CVSS 5.3) opc ua applications can allow vulnerability (General Security Weakness) affecting OPCFoundation.NetStandard.Opc.Ua libraries in the NuGet ecosystem. The issue involves opc ua applications can allow a remote attacker to determine a server's private key. Remediation is available by upgrading affected packages to version 1.3.352.12.

CVE-2018-7559 at a Glance

CVE Identifier CVE-2018-7559
GHSA Identifier GHSA-gr4c-5rq6-cgh3
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification General Security Weakness
Affected Product OPCFoundation.NetStandard.Opc.Ua
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2018-7559

To remediate this vulnerability, upgrade all affected OPCFoundation.NetStandard.Opc.Ua dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

OPCFoundation.NetStandard.Opc.Ua fixed: 1.3.352.12
Upgrade OPCFoundation.NetStandard.Opc.Ua to 1.3.352.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for OPCFoundation.NetStandard.Opc.Ua

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-7559, inspect your project dependencies for OPCFoundation.NetStandard.Opc.Ua:

inspect dependencies for OPCFoundation.NetStandard.Opc.Ua

Analyze the terminal output to locate any version of OPCFoundation.NetStandard.Opc.Ua in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.352.12), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In OPCFoundation.NetStandard.Opc.Ua, 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

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.

CVE-2018-7559 Affected OPCFoundation.NetStandard.Opc.Ua Versions

1 component(s)
Fixed Versions:
1.3.352.12
Product / Package Ecosystem Affected Versions Fixed Version
OPCFoundation.NetStandard.Opc.Ua
NuGet
< 1.3.352.12
1.3.352.12

References

Frequently Asked Questions

What is CVE-2018-7559?
CVE-2018-7559 is a security vulnerability in OPCFoundation.NetStandard.Opc.Ua involving OPC UA applications can allow a remote attacker to determine a Server's private key under General Security Weakness.
Which OPCFoundation.NetStandard.Opc.Ua versions are affected?
Affected versions include releases prior to 1.3.352.12 across affected packages: OPCFoundation.NetStandard.Opc.Ua.
What version fixes CVE-2018-7559?
Upgrading to 1.3.352.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OPCFoundation.NetStandard.Opc.Ua affected?
Yes, OPCFoundation.NetStandard.Opc.Ua is affected in releases prior to 1.3.352.12. Upgrade your dependency to 1.3.352.12 or later.
What is the CVSS score of CVE-2018-7559?
CVE-2018-7559 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2018-7559?
CVE-2018-7559 is classified under General Security Weakness.
How can I check NuGet dependencies for CVE-2018-7559?
Run the dependency tree command: 'inspect dependencies for OPCFoundation.NetStandard.Opc.Ua'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gr4c-5rq6-cgh3",
  "modified" : "2022-04-26T19:12:42Z",
  "published" : "2018-10-16T19:58:42Z",
  "aliases" : [ "CVE-2018-7559" ],
  "summary" : "OPC UA applications can allow a remote attacker to determine a Server's private key ",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "OPCFoundation.NetStandard.Opc.Ua"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.352.12"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.352.11"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-7559"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OPCFoundation/UA-.NET-Legacy/commit/e2a781b38efb8686d2bd850c2f2372b5c670bc45"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard/commit/ebcf026a54dd0c9052cff009d96d827ac923d150"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-gr4c-5rq6-cgh3"
  }, {
    "type" : "WEB",
    "url" : "https://opcfoundation-onlineapplications.org/faq/SecurityBulletins/OPC_Foundation_Security_Bulletin_CVE-2018-7559.pdf"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/108688"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:38:00Z",
    "nvd_published_at" : null
  }
}