GHSA-g4vj-cjjj-v7hg: NuGet.Packaging Defense Vulnerability

LOW
CWE-345
Published
Advisory Summary

GHSA-g4vj-cjjj-v7hg is a LOW defense vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting NuGet.Packaging libraries in the NuGet ecosystem. The issue involves defense in depth update for nuget client. Remediation is available by upgrading affected packages to version 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1.

GHSA-g4vj-cjjj-v7hg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g4vj-cjjj-v7hg
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product NuGet.Packaging
Package Ecosystem NuGet
Published Date
Last Updated

How to Fix GHSA-g4vj-cjjj-v7hg

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

NuGet.Packaging fixed: 4.9.7
Upgrade NuGet.Packaging to 4.9.7
NuGet.Packaging fixed: 5.11.7
Upgrade NuGet.Packaging to 5.11.7
NuGet.Packaging fixed: 6.8.2
Upgrade NuGet.Packaging to 6.8.2
NuGet.Packaging fixed: 6.11.2
Upgrade NuGet.Packaging to 6.11.2
NuGet.Packaging fixed: 6.12.5
Upgrade NuGet.Packaging to 6.12.5
NuGet.Packaging fixed: 6.14.3
Upgrade NuGet.Packaging to 6.14.3
NuGet.Packaging fixed: 7.0.3
Upgrade NuGet.Packaging to 7.0.3
NuGet.Packaging fixed: 7.3.1
Upgrade NuGet.Packaging to 7.3.1
NuGet.Protocol fixed: 4.9.7
Upgrade NuGet.Protocol to 4.9.7
NuGet.Protocol fixed: 5.11.7
Upgrade NuGet.Protocol to 5.11.7
NuGet.Protocol fixed: 6.8.2
Upgrade NuGet.Protocol to 6.8.2
NuGet.Protocol fixed: 6.11.2
Upgrade NuGet.Protocol to 6.11.2
NuGet.Protocol fixed: 6.12.5
Upgrade NuGet.Protocol to 6.12.5
NuGet.Protocol fixed: 6.14.3
Upgrade NuGet.Protocol to 6.14.3
NuGet.Protocol fixed: 7.0.3
Upgrade NuGet.Protocol to 7.0.3
NuGet.Protocol fixed: 7.3.1
Upgrade NuGet.Protocol to 7.3.1
NuGet.CommandLine fixed: 4.9.7
Upgrade NuGet.CommandLine to 4.9.7
NuGet.CommandLine fixed: 5.11.7
Upgrade NuGet.CommandLine to 5.11.7
NuGet.CommandLine fixed: 6.8.2
Upgrade NuGet.CommandLine to 6.8.2
NuGet.CommandLine fixed: 6.11.2
Upgrade NuGet.CommandLine to 6.11.2
NuGet.CommandLine fixed: 6.12.5
Upgrade NuGet.CommandLine to 6.12.5
NuGet.CommandLine fixed: 6.14.3
Upgrade NuGet.CommandLine to 6.14.3
NuGet.CommandLine fixed: 7.0.3
Upgrade NuGet.CommandLine to 7.0.3
NuGet.CommandLine fixed: 7.3.1
Upgrade NuGet.CommandLine to 7.3.1
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 NuGet.Packaging

How to Check if You Are Affected

To determine whether your application is affected by GHSA-g4vj-cjjj-v7hg, inspect your project dependencies for NuGet.Packaging:

inspect dependencies for NuGet.Packaging

Analyze the terminal output to locate any version of NuGet.Packaging in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.9.7), 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In NuGet.Packaging, 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 This update adds validation of the package ID and version during package download, in addition to the existing package signature validation. ### Patches #### NuGet The following NuGet.exe, NuGet.CommandLine, NuGet.Packaging, and NuGet.Protocol versions have been patched: |Affected versions|Patched version| |--|--| |>= 4.9.0, <= 4.9.6|4.9.7| |>= 5.11.0, <= 5.11.6|5.11.7| |>= 6.8.0, <= 6.8.1|6.8.2| |>= 6.11.0, <= 6.11.1|6.11.2| |>= 6.12.0, <= 6.12.4|6.12.5| |>= 6.14.0, <= 6.14.2|6.14.3| |>= 7.0.0, <= 7.0.2|7.0.3| |7.3.0|7.3.1| #### .NET SDK * .NET 8.0.126 SDK * .NET 8.0.420 SDK * .NET 9.0.116 SDK * .NET 9.0.313 SDK * .NET 10.0.106 SDK * .NET 10.0.202 SDK ### Workarounds N/A ### References https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-9r3h-v4hx-rhfr ### Credit [splitline](https://x.com/_splitline_) with [DEVCORE](https://devco.re/)

GHSA-g4vj-cjjj-v7hg Affected NuGet.Packaging Versions

24 component(s)
Fixed Versions:
4.9.75.11.76.8.26.11.26.12.56.14.37.0.37.3.1
Product / Package Ecosystem Affected Versions Fixed Version
NuGet.Packaging
NuGet
≥ 4.9.0
< 4.9.7
4.9.7
NuGet.Packaging
NuGet
≥ 5.11.0
< 5.11.7
5.11.7
NuGet.Packaging
NuGet
≥ 6.8.0
< 6.8.2
6.8.2
NuGet.Packaging
NuGet
≥ 6.11.0
< 6.11.2
6.11.2
NuGet.Packaging
NuGet
≥ 6.12.0
< 6.12.5
6.12.5
NuGet.Packaging
NuGet
≥ 6.14.0
< 6.14.3
6.14.3
NuGet.Packaging
NuGet
≥ 7.0.0
< 7.0.3
7.0.3
NuGet.Packaging
NuGet
≥ 7.3.0
< 7.3.1
All 1 versions
7.3.0
7.3.1
NuGet.Protocol
NuGet
≥ 4.9.0
< 4.9.7
4.9.7
NuGet.Protocol
NuGet
≥ 5.11.0
< 5.11.7
5.11.7
NuGet.Protocol
NuGet
≥ 6.8.0
< 6.8.2
6.8.2
NuGet.Protocol
NuGet
≥ 6.11.0
< 6.11.2
6.11.2
NuGet.Protocol
NuGet
≥ 6.12.0
< 6.12.5
6.12.5
NuGet.Protocol
NuGet
≥ 6.14.0
< 6.14.3
6.14.3
NuGet.Protocol
NuGet
≥ 7.0.0
< 7.0.3
7.0.3
NuGet.Protocol
NuGet
≥ 7.3.0
< 7.3.1
All 1 versions
7.3.0
7.3.1
NuGet.CommandLine
NuGet
≥ 4.9.0
< 4.9.7
4.9.7
NuGet.CommandLine
NuGet
≥ 5.11.0
< 5.11.7
5.11.7
NuGet.CommandLine
NuGet
≥ 6.8.0
< 6.8.2
6.8.2
NuGet.CommandLine
NuGet
≥ 6.11.0
< 6.11.2
6.11.2
NuGet.CommandLine
NuGet
≥ 6.12.0
< 6.12.5
6.12.5
NuGet.CommandLine
NuGet
≥ 6.14.0
< 6.14.3
6.14.3
NuGet.CommandLine
NuGet
≥ 7.0.0
< 7.0.3
7.0.3
NuGet.CommandLine
NuGet
≥ 7.3.0
< 7.3.1
All 1 versions
7.3.0
7.3.1

References

Frequently Asked Questions

What is GHSA-g4vj-cjjj-v7hg?
GHSA-g4vj-cjjj-v7hg is a security vulnerability in NuGet.Packaging involving Defense in Depth update for NuGet Client under CWE-345: Insufficient Verification of Data Authenticity.
Which NuGet.Packaging versions are affected?
Affected versions include releases prior to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1 across affected packages: NuGet.Packaging, NuGet.Protocol, NuGet.CommandLine.
What version fixes GHSA-g4vj-cjjj-v7hg?
Upgrading to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is NuGet.Packaging affected?
Yes, NuGet.Packaging is affected in releases prior to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1. Upgrade your dependency to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1 or later.
Is NuGet.Protocol affected?
Yes, NuGet.Protocol is affected in releases prior to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1. Upgrade your dependency to 4.9.7, 5.11.7, 6.8.2, 6.11.2, 6.12.5, 6.14.3, 7.0.3, 7.3.1 or later.
What CWE is associated with GHSA-g4vj-cjjj-v7hg?
GHSA-g4vj-cjjj-v7hg is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check NuGet dependencies for GHSA-g4vj-cjjj-v7hg?
Run the dependency tree command: 'inspect dependencies for NuGet.Packaging'. 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-g4vj-cjjj-v7hg",
  "modified" : "2026-04-14T23:42:30Z",
  "published" : "2026-04-14T23:42:30Z",
  "aliases" : [ ],
  "summary" : "Defense in Depth update for NuGet Client",
  "details" : "### Impact\nThis update adds validation of the package ID and version during package download, in addition to the existing package signature validation.\n\n### Patches\n\n#### NuGet\n\nThe following NuGet.exe, NuGet.CommandLine, NuGet.Packaging, and NuGet.Protocol versions have been patched:\n\n|Affected versions|Patched version|\n|--|--|\n|>= 4.9.0, <= 4.9.6|4.9.7|\n|>= 5.11.0, <= 5.11.6|5.11.7|\n|>= 6.8.0, <= 6.8.1|6.8.2|\n|>= 6.11.0, <= 6.11.1|6.11.2|\n|>= 6.12.0, <= 6.12.4|6.12.5|\n|>= 6.14.0, <= 6.14.2|6.14.3|\n|>= 7.0.0, <= 7.0.2|7.0.3|\n|7.3.0|7.3.1|\n\n#### .NET SDK\n\n* .NET 8.0.126 SDK\n* .NET 8.0.420 SDK\n* .NET 9.0.116 SDK\n* .NET 9.0.313 SDK\n* .NET 10.0.106 SDK\n* .NET 10.0.202 SDK\n\n### Workarounds\nN/A\n\n### References\nhttps://github.com/NuGet/NuGetGallery/security/advisories/GHSA-9r3h-v4hx-rhfr\n\n### Credit\n[splitline](https://x.com/_splitline_) with [DEVCORE](https://devco.re/)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.9.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.9.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.11.0"
      }, {
        "fixed" : "5.11.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.11.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.8.0"
      }, {
        "fixed" : "6.8.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.8.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.11.0"
      }, {
        "fixed" : "6.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.11.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.12.0"
      }, {
        "fixed" : "6.12.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.12.4"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.14.0"
      }, {
        "fixed" : "6.14.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.14.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.0.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Packaging"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.3.0"
      }, {
        "fixed" : "7.3.1"
      } ]
    } ],
    "versions" : [ "7.3.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.9.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.9.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.11.0"
      }, {
        "fixed" : "5.11.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.11.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.8.0"
      }, {
        "fixed" : "6.8.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.8.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.11.0"
      }, {
        "fixed" : "6.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.11.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.12.0"
      }, {
        "fixed" : "6.12.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.12.4"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.14.0"
      }, {
        "fixed" : "6.14.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.14.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.0.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.3.0"
      }, {
        "fixed" : "7.3.1"
      } ]
    } ],
    "versions" : [ "7.3.0" ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.9.0"
      }, {
        "fixed" : "4.9.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.9.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.11.0"
      }, {
        "fixed" : "5.11.7"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.11.6"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.8.0"
      }, {
        "fixed" : "6.8.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.8.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.11.0"
      }, {
        "fixed" : "6.11.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.11.1"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.12.0"
      }, {
        "fixed" : "6.12.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.12.4"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.14.0"
      }, {
        "fixed" : "6.14.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.14.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.0.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.CommandLine"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.3.0"
      }, {
        "fixed" : "7.3.1"
      } ]
    } ],
    "versions" : [ "7.3.0" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/NuGet/NuGet.Client/security/advisories/GHSA-g4vj-cjjj-v7hg"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NuGet/NuGetGallery/security/advisories/GHSA-9r3h-v4hx-rhfr"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/NuGet/NuGet.Client"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-14T23:42:30Z",
    "nvd_published_at" : null
  }
}