r/SQLServer • • May 21 '24

.NET framework patch last week breaks SQL Server CLR decryption/encryption

This is very niche, but Microsoft released two .NET framework updates last week that breaks some CLR functionality, including some encryption methods:
https://support.microsoft.com/en-au/topic/may-14-2024-kb5037932-cumulative-update-for-net-framework-3-5-and-4-7-2-for-windows-10-version-1809-and-windows-server-2019-4085915c-1ba7-4306-9a63-2267537bf586

https://support.microsoft.com/en-au/topic/may-14-2024-kb5037933-cumulative-update-for-net-framework-3-5-and-4-8-for-windows-10-version-1809-and-windows-server-2019-1decbfb6-2c25-4127-8949-a2b6eab36ad0

I work for a software product company, and it broke website functionality for some clients with SSO. Uninstalling it and replacing it with the patch released today resolved the issue. Hoping this saves someone a lot of aggravation.

32 Upvotes

18 comments sorted by

2

u/Empiricist_or_not May 22 '24

Which patch is "the patch released today [that] resolved the issue"?

1

u/agiamba May 24 '24

I don't recall right now. But it was released yesterday, probably .net framework update

1

u/Antique_Soil_8781 May 24 '24

Running into a similar issue and can't find any hotfixes or OOB updates post the last patch Tuesday release. Do you have any more specifics? nothing in the windows update catalog relates

1

u/agiamba May 28 '24

It's one of the two patches in the above links

1

u/ginginh0 May 28 '24

Are you able to confirm any details of the patch?

1

u/agiamba May 28 '24

Nothing other than the 5/20 patch resolved the 5/14 issues

2

u/Over_Woodpecker_3081 Jun 06 '24

There's a feedback item logged in the MS Visual Studio developer .NET community here: May 14 2024 Cumulative Update for .NET Framework 4.8.x breaks SQLCLR hosted SHA2 hash functions - Developer Community (visualstudio.com) for this issue.

1

u/agiamba Jun 08 '24

Any luck?

2

u/Over_Woodpecker_3081 Jun 11 '24

No response from a human yet. Go ahead and vote this item up there, maybe it will help get some attention.

1

u/Over_Woodpecker_3081 Jun 19 '24 edited Jun 19 '24

No-one seems to have upvoted the VS Developer feedback item linked above - please go and do that so it gets some attention.

Just to be clear - upvote the item here: https://developercommunity.visualstudio.com/t/May-14-2024-Cumulative-Update-for-NET-F/10677307, not my comment in this Reddit thread. So far there are zero upvotes on that feedback item.

1

u/Over_Woodpecker_3081 Jul 02 '24

Still no upvotes on the feedback item - if you want this to get any attention please upvote it. It's the up arrow on the *top left* of the linked article, not the vote buttons in the comments below the article.

2

u/Longjumping_One_2308 Jun 03 '24

Having this same issue with Windows 2022 and SQL Server 2019. KB5038282 was applied and broke encryption in CLR. Windows update does not recommend any other update

1

u/[deleted] Jun 01 '24

[removed] — view removed comment

1

u/IHiJump Jun 14 '24

I am, and the .NET update broke that. CRL uses fn_HashBytes.

1

u/[deleted] Jun 14 '24

[removed] — view removed comment

1

u/IHiJump Jun 18 '24

Where are they recommending this?

1

u/[deleted] Jun 18 '24

[removed] — view removed comment

1

u/IHiJump Jul 10 '24

Legacy platform