microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.13k stars 1.26k forks source link

Vulnerability Issue CVE-2024-0057 : System.Security.Cryptography.X509Certificates@4.3.2 #199

Open asb1208 opened 5 months ago

asb1208 commented 5 months ago

We have latest stable version i.e 4.3.2 for System.Security.Cryptography.X509Certificates as recommended but still shows the issue of vulnerability with CVE-2024-0057.

We are using dot net 4.6.1 as target framework for our solutions, please let us know by when this issue will be resolved in next version of System.Security.Cryptography.X509Certificates

Issue Details: [CVE-2024-0057]-(https://www.cve.org/CVERecord?id=CVE-2024-0057)

X509Certificates Code Link: https://referencesource.microsoft.com/#System.Security/system/security/cryptography/x509/x509ui.cs,a0e6c16c340ea6f4,references

Explanation: The Microsoft.NETCore.App.Runtime packages are vulnerable due to Improper Certificate Validation. The Build() method of the X509Chain class mishandles errors thrown during certificate chaining. Consequently, this may yield incorrect failure codes back to users of the certificate chaining APIs. A remote attacker can exploit this vulnerability with a crafted certificate that may bypass the security controls of applications that depend on the aforementioned failure codes.