Incorrect Regular Expression in RestSharp
High severity
GitHub Reviewed
Published
Jul 14, 2021
to the GitHub Advisory Database
•
Updated Feb 1, 2023
Description
Published by the National Vulnerability Database
Jul 12, 2021
Reviewed
Jul 13, 2021
Published to the GitHub Advisory Database
Jul 14, 2021
Last updated
Feb 1, 2023
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.
References