CVE-2021-27293

Source
https://cve.org/CVERecord?id=CVE-2021-27293
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27293.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-27293
Aliases
Published
2021-07-12T11:15:08.100Z
Modified
2026-07-08T05:59:30.281747570Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "106.11.8-alpha0\\.10"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.10"
                },
                {
                    "introduced": "106.11.8-alpha0\\.11"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.11"
                },
                {
                    "introduced": "106.11.8-alpha0\\.12"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.12"
                },
                {
                    "introduced": "106.11.8-alpha0\\.2"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.2"
                },
                {
                    "introduced": "106.11.8-alpha0\\.3"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.3"
                },
                {
                    "introduced": "106.11.8-alpha0\\.4"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.4"
                },
                {
                    "introduced": "106.11.8-alpha0\\.6"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.6"
                },
                {
                    "introduced": "106.11.8-alpha0\\.7"
                },
                {
                    "last_affected": "106.11.8-alpha0\\.7"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "restsharp:restsharp",
            "cpes": [
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.10:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.11:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.12:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.2:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.3:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.4:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.6:*:*:*:*:*:*",
                "cpe:2.3:a:restsharp:restsharp:106.11.8:alpha0.7:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/restsharp/restsharp

Affected ranges

Type
GIT
Repo
https://github.com/restsharp/restsharp
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:restsharp:restsharp:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "106.11.7"
        }
    ]
}

Affected versions

103.*
103.2
103.3
103.4
104.*
104.0
104.1
104.2
104.3.3
104.5.0
105.*
105.0
105.0.1
105.1.0
105.2.1
105.2.2
105.2.3
106.*
106.10.0
106.10.1
106.11.0
106.11.1
106.11.2
106.11.3
106.11.4
106.11.7
106.2
106.2.1
106.2.2
106.3
106.3.1
106.6.10
106.6.7
106.6.8
106.7
106.7.0
106.8.9
106.9.0
Other
legacy
v102.*
v102.6
v102.7
v103.*
v103.0
v103.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-27293.json"