CVE-2021-27293
HIGH 7.5CVSS 3.1Incorrect Regular Expression in RestSharp
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.
- Published
- 12 Jul 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-185CWE-697
- Also known as
- GHSA-9pq7-rcxv-47vq
- Sources
- NVDJSONOSV GHSA-9pq7-rcxv-47vqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:*:*:*:*:*:*:*:* |
<= 106.11.7 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.10:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.11:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.12:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.2:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.3:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.4:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.6:*:*:*:*:*:* |
= 106.11.8 | |
| NVD | restsharp | restsharpcpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.7:*:*:*:*:*:* |
= 106.11.8 | |
| OSV | NuGet | RestSharp | < 106.11.8-alpha.0.13 | 106.11.8-alpha.0.13 |
References
- https://github.com/restsharp/RestSharp/issues/1556 · Exploit, Patch, Third Party Advisory, WEB
- https://restsharp.dev/ · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-27293 · ADVISORY
- https://github.com/restsharp/RestSharp/commit/be39346784b68048b230790d15333574341143bc · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 Jul 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 Jul 2021)