Microsoft.Data.SqlClient installs System.Security.Crytography.Pkcs 9.x.x which is vulnerable

オープン
#4,958 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp, sql

調査の方向性

The vulnerable package is System.Security.Cryptography.Pkcs pulled in as a transitive dependency of Microsoft.Data.SqlClient; the payload names no file or test. Start from the project's package references and the dependency declared for the target framework, then check which Pkcs version resolves. Done would mean the dependency is updated or pinned so the reported version no longer resolves, confirmed by a restore and a vulnerability audit.

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

I updated 4 packages, only to still get my packages listed as Vulnerable due to the real issue is Microsoft.Data.SqlClient. A couple of years ago this same thing happened, and I got an email my packages shouldn't have been listed as vulnerable, but it happened again.

VS Solution Explorer shows the error
To reproduce

Create a NuGet package that references the latest Microsoft.Data.SqlClient 7.1.1

Expected behavior

Not listing my NUGet packages as Vulnerable

Further technical details

Microsoft.Data.SqlClient version: (found on the nuGet or Microsoft.Data.SqlClient.dll)
.NET target: .NET 10

Additional context
Issue has been explained.

主要言語
C#
スター
1k
フォーク
352
平均マージ
4日 10時間
マージ済み PR(30日)
98

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/SqlClient のほかの issue

dotnet/SqlClient の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。