Loading...
Skip to main content

CVE-2021-27293 — Incorrect Regular Expression in RestSharp — CVE...

HIGH

Incorrect Regular Expression in RestSharp

Published July 14, 2021Updated February 17, 2024Source: osv

Summary

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.

Advisory Timeline

  • First published July 14, 2021 (1916 days ago).
  • Last revised February 17, 2024 — 947 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

NuGet
Update RestSharp to 106.11.8-alpha.0.13 or later
dotnet add package RestSharp --version 106.11.8-alpha.0.13

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: nuget (1).

PackageEcosystemAffectedFixed In
RestSharp
nuget
1.0.0, 100.3.0, 101.0.0, 101.1.0 (+89 more)106.11.8-alpha.0.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2021-27293?
Incorrect Regular Expression in RestSharp This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2021-27293?
CVE-2021-27293 affects RestSharp. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-27293 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-9pq7-rcxv-47vq

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies