runtime icon indicating copy to clipboard operation
runtime copied to clipboard

CVE-2026-21218: Discrepancy between advisory and available NuGet versions for System.Security.Cryptography.Cose

Open linuxchata opened this issue 9 months ago • 8 comments

There appears to be a discrepancy between the fix information provided in the GitHub Advisory and the actual versions available on NuGet.

According to the GitHub Security Advisory GHSA-qvhc-9v3j-5rfw, CVE-2026-21218 was fixed in version 8.0.24 of System.Security.Cryptography.Cose. However:

  1. Version 8.0.24 does not exist on NuGet
  2. The latest available version for .NET 8.0 is 8.0.2
  3. Version 8.0.2 is still flagged as vulnerable to this CVE on NuGet

Questions:

  • Is there a plan to release a patched version of System.Security.Cryptography.Cose for .NET 8.0?
  • Is the version number in the advisory (8.0.24) incorrect?
  • Should users on .NET 8.0 upgrade to a different framework version to remediate this vulnerability?

Environment:

  • Package: System.Security.Cryptography.Cose
  • Current version: 8.0.2
  • Target framework: .NET 8.0
  • CVE: CVE-2026-21218
  • Related issue: https://github.com/dotnet/runtime/issues/124235

linuxchata avatar Feb 11 '26 21:02 linuxchata

Tagging subscribers to this area: @bartonjs, @vcsjones, @dotnet/area-system-security See info in area-owners.md if you want to be subscribed.

dotnet-policy-service avatar Feb 11 '26 21:02 dotnet-policy-service

@bribrothers

blowdart avatar Feb 11 '26 23:02 blowdart

@linuxchata apologies, 8.0.2 is marked as vulnerable just because the security advisory says fixed in 24, instead of fixed in 2.

The SDK is on patch version 24, but our NuGet packages from .NET 8 don't bump version numbers unless we intentionally publish a new version of that package, so for this package it ended up being 8.0.2. I will edit the advisory to make this more clear. Thank you!

bribrothers avatar Feb 12 '26 00:02 bribrothers

@bribrothers correct me if I'm wrong, but there is still something wrong about versions range. For .NET 9 and .NET 10, the affected versions are:

  • >= 10.0.0, < 10.0.2 (patched in 10.0.3)
  • >= 9.0.0, < 9.0.12 (patched in 9.0.13)

Notice the exclusive bound. So what about versions 10.0.2 and 9.0.12? On Nuget they are not marked as vulnerable.

KeterSCP avatar Feb 12 '26 23:02 KeterSCP

@KeterSCP wow, must have screwed up copy paste there (again...). I've updated 9.0 and 10.0, I'll leave this open until this reflect on https://www.nuget.org/packages/System.Security.Cryptography.Cose

bribrothers avatar Feb 13 '26 01:02 bribrothers

There's still a problem with this package. Build

Warning As Error: Package 'System.Security.Cryptography.Cose' 8.0.2 has a known low severity vulnerability, https://github.com/advisories/GHSA-qvhc-9v3j-5rfw

linuxchata avatar Feb 13 '26 07:02 linuxchata

It has been fix for 8.0.2 version

linuxchata avatar Feb 13 '26 17:02 linuxchata

The 9.0.12 and 10.0.2 NuGet versions are now correctly marked as vulnerable. The issue can be closed. Thanks for the quick action!

KeterSCP avatar Feb 14 '26 17:02 KeterSCP