CVE-2021-27293Restsharp
High 7.5 No auth needed
Follow: this CVE · Restsharp · Restsharp We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Restsharp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| restsharp | restsharp | ≤ 106.11.7 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
| restsharp | restsharp | 106.11.8 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch Third Party Advisory
- restsharp.dev Product