CVE-2020-8867: OPCFoundation.NetStandard.Opc.Ua Insufficient Session Expiration And TOCTOU Vulnerability
MODERATECVE-2020-8867 is a MODERATE (CVSS 7.5) insufficient session expiration and toctou vulnerability (CWE-613: Insufficient Session Expiration) affecting OPCFoundation.NetStandard.Opc.Ua libraries in the NuGet ecosystem. The issue involves insufficient session expiration and toctou race condition in opc foundation ua .net standard. Remediation is available by upgrading affected packages to version 1.4.359.31.
CVE-2020-8867 at a Glance
Security Impact
CVSS: 7.5
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:N/I:N/A:H).
How to Fix CVE-2020-8867
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.
Upgrade OPCFoundation.NetStandard.Opc.Ua to 1.4.359.31
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-2020-8867, 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.4.359.31), 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-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". 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
CVE-2020-8867 Affected OPCFoundation.NetStandard.Opc.Ua Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
OPCFoundation.NetStandard.Opc.Ua
|
NuGet |
< 1.4.359.31
|
1.4.359.31
|
References
Frequently Asked Questions
What is CVE-2020-8867?
Which OPCFoundation.NetStandard.Opc.Ua versions are affected?
What version fixes CVE-2020-8867?
Is OPCFoundation.NetStandard.Opc.Ua affected?
What is the CVSS score of CVE-2020-8867?
What CWE is associated with CVE-2020-8867?
How can I check NuGet dependencies for CVE-2020-8867?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9q94-v7ch-mxqw",
"modified" : "2021-05-25T20:12:12Z",
"published" : "2021-08-02T17:35:42Z",
"aliases" : [ "CVE-2020-8867" ],
"summary" : "Insufficient Session Expiration and TOCTOU Race Condition in OPC FOundation UA .Net Standard",
"details" : "This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of OPC Foundation UA .NET Standard 1.04.358.30. Authentication is not required to exploit this vulnerability. The specific flaw exists within the handling of sessions. The issue results from the lack of proper locking when performing operations on an object. An attacker can leverage this vulnerability to create a denial-of-service condition against the application. Was ZDI-CAN-10295.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "OPCFoundation.NetStandard.Opc.Ua"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.359.31"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.4.358.30"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8867"
}, {
"type" : "WEB",
"url" : "https://github.com/OPCFoundation/UA-.NETStandard/releases/tag/1.4.359.31"
}, {
"type" : "WEB",
"url" : "https://opcfoundation.org/SecurityBulletins/OPC%20Foundation%20Security%20Bulletin%20CVE-2020-8867.pdf"
}, {
"type" : "WEB",
"url" : "https://www.zerodayinitiative.com/advisories/ZDI-20-536"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-367", "CWE-613" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-25T20:12:12Z",
"nvd_published_at" : "2020-04-22T21:15:00Z"
}
}