Live threats

All CVEs / Restsharp

CVE-2021-27293Restsharp

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Jul 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-697
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Restsharp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
NuGet RestSharp < 106.11.8-alpha.0.13 106.11.8-alpha.0.13 dotnet add package RestSharp --version 106.11.8-alpha.0.13

Per OSV / GitHub Advisories (GHSA-9pq7-rcxv-47vq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
restsharprestsharp≤ 106.11.7
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8
restsharprestsharp106.11.8

Official sources

References

Links published by the sources. Open them with care.