# CVE-2021-27293: Incorrect Regular Expression in RestSharp

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.51%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-07-12T10:47:01.000Z
- Modified: 2026-06-17T03:44:37.553Z
- Also known as: GHSA-9pq7-rcxv-47vq
- Weaknesses: CWE-185, CWE-697
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- RestSharp (NuGet): before 106.11.8-alpha.0.13
- restsharp restsharp: up to 106.11.7; 106.11.8

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/restsharp/RestSharp/issues/1556> (exploit, patch, third-party-advisory, web)
- <https://restsharp.dev/> (product)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27293> (advisory)
- <https://github.com/restsharp/RestSharp/commit/be39346784b68048b230790d15333574341143bc> (web)
- <https://restsharp.dev> (web)

## Sources

- CVE List: [CVE-2021-27293](https://www.cve.org/CVERecord?id=CVE-2021-27293), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-9pq7-rcxv-47vq](https://github.com/advisories/GHSA-9pq7-rcxv-47vq), CC-BY-4.0, modified 2024-02-17
- NVD: [CVE-2021-27293](https://nvd.nist.gov/vuln/detail/CVE-2021-27293), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27293 · Whole record: https://cve.day/CVE-2021-27293.json · Rebuilt by cve.day 2026-11-25T22:58:02.506Z
