Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET SDK images have (false positive) .NET CVEs #5325

Open
richlander opened this issue Apr 2, 2024 · 16 comments
Open

.NET SDK images have (false positive) .NET CVEs #5325

richlander opened this issue Apr 2, 2024 · 16 comments

Comments

@richlander
Copy link
Member

richlander commented Apr 2, 2024

This should never happen. The scanners are reporting false positives (in part) due to stale dependencies.

This has been reported multiple times. I'm starting a new tracking issue. There are lots of scanners. I'm using Docker Scout because it is easy for me to use. Nice product!

.NET SDK 8.0.203 image:

image

There are a mixture of .NET SDK, PowerShell (due to .NET dependencies), and Debian CVEs.

.NET SDK 8.0.300-preview.24201.7 (from https://github.com/dotnet/installer?tab=readme-ov-file#table):

image

A number of the (false positive) .NET CVEs are resolved in 8.0.300, which should be released in May.

Outstanding issues:

  • CVE-2023-29331
    • System.Security.Cryptography.Pkcs 7.0.0
    • /usr/share/dotnet/sdk/8.0.300-preview.24201.7/DotnetTools/dotnet-watch/8.0.300-preview.24201.10/tools/net8.0/any/BuildHost-netcore/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.deps.json
  • CVE-2024-0057
    • NuGet.Packaging 6.7.0.127
    • /usr/share/powershell/.store/powershell.linux.x64/7.4.1/powershell.linux.x64/7.4.1/tools/net8.0/any/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Packaging.dll
    • /usr/share/powershell/.store/powershell.linux.x64/7.4.1/powershell.linux.x64/7.4.1/tools/net8.0/any/Modules/Microsoft.PowerShell.PSResourceGet/_manifest/spdx_2.2/manifest.spdx.json
  • CVE-2024-0056
    • System.Data.SqlClient 4.8.5
    • /usr/share/powershell/.store/powershell.linux.x64/7.4.1/powershell.linux.x64/7.4.1/tools/net8.0/any/Modules/PSReadLine/_manifest/spdx_2.2/manifest.spdx.json

The remaining Debian issues are low severity and have a mix of fix available and not at the time of writing:

The CVE with a fix available should be resolved the next time we rebuild our Debian images.

@lbussell
Copy link
Contributor

lbussell commented Apr 4, 2024

Related: dotnet/sdk#30659

@mrhussaini
Copy link

Any tentative date when these images will be available to download that has no vulnerabilities?

@richlander
Copy link
Member Author

The May images should have a marked improvement.

@mrhussaini
Copy link

Sorry not sure If I understand. IF you do not know the tentative date, can you able to confirm this is will be available to download in beginning or mid or end of the May month?

@richlander
Copy link
Member Author

I know the date. It's always patch Tuesday. We just scanned the May images. It appears that we're down to just one false positive that we'll need to fix in the following month.

Here is the latest fix: dotnet/roslyn#73283.

@MichaelSimons
Copy link
Member

The 8.0.205 release which will be released on patch Tuesday is down to two false positives. 8.0.300 will which will co-release with VS 17.10 will be down to one.

@mrhussaini
Copy link

Tuesday - 05/07 ?
Which of the vulnerabilities, false positives that will be remediated in following month (June)?

@MichaelSimons
Copy link
Member

Tuesday - 05/07 ?

Patch Tuesday is always the second Tuesday of the month. For May, it is the 14th.

Which of the vulnerabilities, false positives that will be remediated in following month (June)?

The last vulnerability that is fixed by dotnet/roslyn#73283 is:

   0C     1H     0M     0L  System.Security.Cryptography.Pkcs 7.0.0
pkg:nuget/System.Security.Cryptography.Pkcs@7.0.0
 
    x HIGH CVE-2023-29331
https://scout.docker.com/v/CVE-2023-29331
      Affected range : >=7.0.0
                     : <=7.0.1
      Fixed version  : 7.0.2
      CVSS Score     : 7.5
      CVSS Vector    : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

@mrhussaini
Copy link

Thanks for the clarification. One last question please (I hope)
So, all the vulnerabilities are remediated and will be available for us to download by 05/14th ?

@MichaelSimons
Copy link
Member

So, all the vulnerabilities are remediated and will be available for us to download by 05/14th ?

No. See my earlier response at #5325 (comment)

@mrhussaini
Copy link

What I understand is with this statement "8.0.300 will which will co-release with VS 17.10 will be down to one."

There will be one false positive vulnerability in 8.0.300 release. Correct? Which will be addressed in June?

@MichaelSimons
Copy link
Member

There will be one false positive vulnerability in 8.0.300 release. Correct?

Yes

Which will be addressed in June?

That is what we are working towards.

@mrhussaini
Copy link

Thanks a lot. Once last question please. Which false positive vulnerability that will be remediated in June? CVE name?

@MichaelSimons
Copy link
Member

Thanks a lot. Once last question please. Which false positive vulnerability that will be remediated in June? CVE name?

Please see my earlier response.

@mrhussaini
Copy link

look like this one : CVE-2023-29331

@richlander
Copy link
Member Author

That is the one Michael mentioned: #5325 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Tracking
Development

No branches or pull requests

4 participants