swagger-api / swagger-api/swagger-codegen

CVE-2021-27293 (High) detected in restsharp.105.1.0.nupkg

Open
#11,488 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

security vulnerability
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

CVE-2021-27293 - High Severity Vulnerability

Vulnerable Library - restsharp.105.1.0.nupkg

Simple REST and HTTP API Client

Library home page: https://api.nuget.org/packages/restsharp.105.1.0.nupkg

Dependency Hierarchy:

  • restsharp.105.1.0.nupkg (Vulnerable Library)

Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed

Found in base branches: 3.0.0, master

Vulnerability 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.

Publish Date: 2021-07-12

URL: CVE-2021-27293

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-9pq7-rcxv-47vq

Release Date: 2021-07-12

Fix Resolution: RestSharp - 106.11.8-alpha.0.13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies RestSharp 105.1.0 as vulnerable in the 3.0.0 and master branches; start by locating the dependency declaration that selects this package. Update the dependency to RestSharp 106.11.8-alpha.0.13 or later, then verify that the vulnerable version is no longer present.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.