VDB
Sign up
HIGH7.5

GHSA-9pq7-rcxv-47vq

Incorrect Regular Expression in RestSharp

Quick fix

GHSA-9pq7-rcxv-47vq — RestSharp: upgrade to the fixed version with the command below.

dotnet add package RestSharp --version 106.11.8-alpha.0.13

Details

RestSharp < 106.11.8-alpha.0.13 uses a regular expression which is vulnerable to Regular Expression Denial of Service (ReDoS) when converting strings into DateTimes. If a server responds with a malicious string, the client using RestSharp will be stuck processing it for an exceedingly long time. Thus the remote server can trigger Denial of Service.

Are you affected?

Enter the version of the package you're using.

Affected packages

NuGet/RestSharp
Introduced in: 0Fixed in: 106.11.8-alpha.0.13
Fixdotnet add package RestSharp --version 106.11.8-alpha.0.13

References