GHSA-vx2x-9cff-fhjw: DSInternals.Common DSInternals Credential Roaming Elevation Of Vulnerability

MODERATE
CVSS 6.3
Published
Advisory Summary

GHSA-vx2x-9cff-fhjw is a MODERATE (CVSS 6.3) dsinternals credential roaming elevation of vulnerability (General Security Weakness) affecting DSInternals.Common libraries in the NuGet ecosystem. The issue involves dsinternals credential roaming elevation of privilege vulnerability. Remediation is available by upgrading affected packages to version 4.8.

GHSA-vx2x-9cff-fhjw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-vx2x-9cff-fhjw
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification General Security Weakness
Affected Product DSInternals.Common
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix GHSA-vx2x-9cff-fhjw

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

DSInternals.Common fixed: 4.8
Upgrade DSInternals.Common to 4.8
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 DSInternals.Common

How to Check if You Are Affected

To determine whether your application is affected by GHSA-vx2x-9cff-fhjw, inspect your project dependencies for DSInternals.Common:

inspect dependencies for DSInternals.Common

Analyze the terminal output to locate any version of DSInternals.Common in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.8), 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 DSInternals.Common, 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

### Impact A vulnerability exists in the `DSInternals.Common.Data.RoamedCredential.Save()` method, which incorrectly parses the `msPKIAccountCredentials` LDAP attribute values. As a consequence, a malicious actor would be able to modify the file system of the computer where an application using this function is executed with administrative privileges. A [similar security issue](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-30170) used to be present in the Windows operating system, as DSInternals re-implements the Credential Roaming feature of Windows. ### Exploitability The vulnerability can be exploited under the following circumstances: - An attacker is able to modify the `msPKIAccountCredentials` attribute of a user account in Active Directory. This attribute is used by the Credential Roaming feature of Windows and each AD user can modify their own roamed credentials. AND - A 3rd party application uses the `DSInternals.Common` library to export roamed credentials from Active Directory to a file system. AND - The application has administrative privileges on the local system. The probability of any 3rd-party product using the `DSInternals.Common` library being affected by this vulnerability is extremely low. ### Patches The issue had been fixed in DSInternals 4.8. ### References https://www.mandiant.com/resources/blog/apt29-windows-credential-roaming

GHSA-vx2x-9cff-fhjw Affected DSInternals.Common Versions

1 component(s)
Fixed Versions:
4.8
Product / Package Ecosystem Affected Versions Fixed Version
DSInternals.Common
NuGet
≥ 2.21
< 4.8
4.8

References

Frequently Asked Questions

What is GHSA-vx2x-9cff-fhjw?
GHSA-vx2x-9cff-fhjw is a security vulnerability in DSInternals.Common involving DSInternals Credential Roaming Elevation of Privilege Vulnerability under General Security Weakness.
Which DSInternals.Common versions are affected?
Affected versions include releases prior to 4.8 across affected packages: DSInternals.Common.
What version fixes GHSA-vx2x-9cff-fhjw?
Upgrading to 4.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is DSInternals.Common affected?
Yes, DSInternals.Common is affected in releases prior to 4.8. Upgrade your dependency to 4.8 or later.
What is the CVSS score of GHSA-vx2x-9cff-fhjw?
GHSA-vx2x-9cff-fhjw has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with GHSA-vx2x-9cff-fhjw?
GHSA-vx2x-9cff-fhjw is classified under General Security Weakness.
How can I check NuGet dependencies for GHSA-vx2x-9cff-fhjw?
Run the dependency tree command: 'inspect dependencies for DSInternals.Common'. 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-vx2x-9cff-fhjw",
  "modified" : "2022-12-06T21:13:49Z",
  "published" : "2022-12-06T21:13:49Z",
  "aliases" : [ ],
  "summary" : "DSInternals Credential Roaming Elevation of Privilege Vulnerability",
  "details" : "### Impact\n\nA vulnerability exists in the `DSInternals.Common.Data.RoamedCredential.Save()` method, which incorrectly parses the `msPKIAccountCredentials` LDAP attribute values. As a consequence, a malicious actor would be able to modify the file system of the computer where an application using this function is executed with administrative privileges.\n\nA [similar security issue](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-30170) used to be present in the Windows operating system, as DSInternals re-implements the Credential Roaming feature of Windows.\n\n### Exploitability\n\nThe vulnerability can be exploited under the following circumstances:\n- An attacker is able to modify the `msPKIAccountCredentials` attribute of a user account in Active Directory. This attribute is used by the Credential Roaming feature of Windows and each AD user can modify their own roamed credentials. AND\n- A 3rd party application uses the `DSInternals.Common` library to export roamed credentials from Active Directory to a file system. AND\n- The application has administrative privileges on the local system.\n\nThe probability of any 3rd-party product using the `DSInternals.Common` library being affected by this vulnerability is extremely low.\n\n### Patches\n\nThe issue had been fixed in DSInternals 4.8.\n\n### References\n\nhttps://www.mandiant.com/resources/blog/apt29-windows-credential-roaming\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "DSInternals.Common"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.21"
      }, {
        "fixed" : "4.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/MichaelGrafnetter/DSInternals/security/advisories/GHSA-vx2x-9cff-fhjw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-30170"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/MichaelGrafnetter/DSInternals"
  }, {
    "type" : "WEB",
    "url" : "https://www.mandiant.com/resources/blog/apt29-windows-credential-roaming"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-06T21:13:49Z",
    "nvd_published_at" : null
  }
}