Skip to content

Fix transitive System.Formats.Asn1 CVE (GHSA-447r-wph3-92pm) - #32

Merged
darinkes merged 1 commit into
mainfrom
fix-asn1-cve
Jul 14, 2026
Merged

Fix transitive System.Formats.Asn1 CVE (GHSA-447r-wph3-92pm)#32
darinkes merged 1 commit into
mainfrom
fix-asn1-cve

Conversation

@darinkes

Copy link
Copy Markdown
Owner

Closes #19.

System.Security.Cryptography.Cng 5.0.0 (needed for ECDsaCng/RSACng on netstandard2.0) drags in System.Formats.Asn1 5.0.0, which has a High-severity advisory. A net8.0 consumer of the netstandard2.0 asset inherits it.

Fix: pin System.Formats.Asn1 to the patched 8.0.2 in the non-net48 group, forcing the transitive up.

Verified with a net8.0 consumer:

  • Before: System.Formats.Asn1 5.0.0 High GHSA-447r-wph3-92pm
  • After: no vulnerable packages; System.Formats.Asn1 resolves to 8.0.2.

Library test suite (17) still passes. Minimal, single-line change — no new target framework, unlike #20.

@darinkes
darinkes merged commit 38da088 into main Jul 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update nuget package SSH.NET

1 participant