CVE-2023-31048: OPCFoundation.NetStandard.Opc.Ua.Core Exposure Of Sensitive Information Vulnerability

MODERATE
Advisory Identifier: GHSA-4cvp-hr63-822j
CVSS 5.3
CWE-209 CWE-200
Published
Advisory Summary

CVE-2023-31048 is a MODERATE (CVSS 5.3) exposure of sensitive information vulnerability (CWE-209: Generation of Error Message Containing Sensitive Information) affecting OPCFoundation.NetStandard.Opc.Ua.Core libraries in the NuGet ecosystem. The issue involves exposure of sensitive information in opc ua .net standard reference server. Remediation is available by upgrading affected packages to version 1.4.371.86.

CVE-2023-31048 at a Glance

CVE Identifier CVE-2023-31048
GHSA Identifier GHSA-4cvp-hr63-822j
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-209: Generation of Error Message Containing Sensitive Information
Affected Product OPCFoundation.NetStandard.Opc.Ua.Core
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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2023-31048

To remediate this vulnerability, upgrade all affected OPCFoundation.NetStandard.Opc.Ua.Core 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.Core fixed: 1.4.371.86
Upgrade OPCFoundation.NetStandard.Opc.Ua.Core to 1.4.371.86
OPCFoundation.NetStandard.Opc.Ua.Server fixed: 1.4.371.86
Upgrade OPCFoundation.NetStandard.Opc.Ua.Server to 1.4.371.86
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.Core

How to Check if You Are Affected

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

inspect dependencies for OPCFoundation.NetStandard.Opc.Ua.Core

Analyze the terminal output to locate any version of OPCFoundation.NetStandard.Opc.Ua.Core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.371.86), 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 CWE-209: Generation of Error Message Containing Sensitive Information, where the product generates an error message that includes sensitive information about its environment, users, or associated data. In OPCFoundation.NetStandard.Opc.Ua.Core, 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

This security update resolves a vulnerability in the OPC UA .NET Standard Reference Server that allows remote attackers to send malicious requests that expose sensitive information. https://files.opcfoundation.org/SecurityBulletins/OPC%20Foundation%20Security%20Bulletin%20CVE-2023-31048.pdf

CVE-2023-31048 Affected OPCFoundation.NetStandard.Opc.Ua.Core Versions

2 component(s)
Fixed Versions:
1.4.371.86
Product / Package Ecosystem Affected Versions Fixed Version
OPCFoundation.NetStandard.Opc.Ua.Core
NuGet
< 1.4.371.86
1.4.371.86
OPCFoundation.NetStandard.Opc.Ua.Server
NuGet
< 1.4.371.86
1.4.371.86

References

Frequently Asked Questions

What is CVE-2023-31048?
CVE-2023-31048 is a security vulnerability in OPCFoundation.NetStandard.Opc.Ua.Core involving Exposure of Sensitive Information in OPC UA .NET Standard Reference Server under CWE-209: Generation of Error Message Containing Sensitive Information.
Which OPCFoundation.NetStandard.Opc.Ua.Core versions are affected?
Affected versions include releases prior to 1.4.371.86 across affected packages: OPCFoundation.NetStandard.Opc.Ua.Core, OPCFoundation.NetStandard.Opc.Ua.Server.
What version fixes CVE-2023-31048?
Upgrading to 1.4.371.86 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OPCFoundation.NetStandard.Opc.Ua.Core affected?
Yes, OPCFoundation.NetStandard.Opc.Ua.Core is affected in releases prior to 1.4.371.86. Upgrade your dependency to 1.4.371.86 or later.
Is OPCFoundation.NetStandard.Opc.Ua.Server affected?
Yes, OPCFoundation.NetStandard.Opc.Ua.Server is affected in releases prior to 1.4.371.86. Upgrade your dependency to 1.4.371.86 or later.
What is the CVSS score of CVE-2023-31048?
CVE-2023-31048 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-31048?
CVE-2023-31048 is classified under CWE-209: Generation of Error Message Containing Sensitive Information (The product generates an error message that includes sensitive information about its environment, users, or associated data.).
How can I check NuGet dependencies for CVE-2023-31048?
Run the dependency tree command: 'inspect dependencies for OPCFoundation.NetStandard.Opc.Ua.Core'. 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-4cvp-hr63-822j",
  "modified" : "2023-12-12T19:45:15Z",
  "published" : "2023-05-05T02:19:11Z",
  "aliases" : [ "CVE-2023-31048" ],
  "summary" : "Exposure of Sensitive Information in OPC UA .NET Standard Reference Server",
  "details" : "This security update resolves a vulnerability in the OPC UA .NET Standard Reference Server that allows\nremote attackers to send malicious requests that expose sensitive information.\n\nhttps://files.opcfoundation.org/SecurityBulletins/OPC%20Foundation%20Security%20Bulletin%20CVE-2023-31048.pdf",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "OPCFoundation.NetStandard.Opc.Ua.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.371.86"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "OPCFoundation.NetStandard.Opc.Ua.Server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.371.86"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard/security/advisories/GHSA-4cvp-hr63-822j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-31048"
  }, {
    "type" : "WEB",
    "url" : "https://files.opcfoundation.org/SecurityBulletins/OPC%20Foundation%20Security%20Bulletin%20CVE-2023-31048.pdf"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard/releases"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OPCFoundation/UA-.NETStandard/releases/tag/1.4.371.86"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-209" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-05T02:19:11Z",
    "nvd_published_at" : "2023-12-12T17:15:07Z"
  }
}