CVEBrief

Home / restsharp / RestSharp / CVE-2024-45302

CVE-2024-45302: is it exploited, and which versions of RestSharp are affected and fixed?

CVE-2024-45302 is an improper Neutralization of CRLF Sequences vulnerability in RestSharp. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: RestSharp from 107.0.0-preview.1 before 112.0.0 (GitHub advisory GHSA-4rr6-2v9v-wcpc). Fixed in 112.0.0 (GitHub advisory GHSA-4rr6-2v9v-wcpc). Severity: Medium (6.1, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:27 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:08 UTC
Affected
RestSharp from 107.0.0-preview.1 before 112.0.0
GitHub advisory GHSA-4rr6-2v9v-wcpc
Fixed in
112.0.0
GitHub advisory GHSA-4rr6-2v9v-wcpc
Severity
Medium 6.1
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
0.32% in 30 days
higher than 26% of CVEs; FIRST, December 2, 2026

What is CVE-2024-45302?

CRLF Injection in RestSharp's `RestRequest.AddHeader` method

RestSharp is a Simple REST and HTTP API Client for .NET. The second argument to `RestRequest.AddHeader` (the header value) is vulnerable to CRLF injection. The same applies to `RestRequest.AddOrUpdateHeader` and `RestClient.AddDefaultHeader`. The way HTTP headers are added to a request is via the `HttpHeaders.TryAddWithoutValidation` method which does not check for CRLF characters in the header value. This means that any headers from a `RestSharp.RequestHeaders` object are added to the request in such a way that they are vulnerable to CRLF-injection. In general, CRLF-injection into a HTTP header (when using HTTP/1.1) means that one can inject additional HTTP headers or smuggle whole HTTP requests. If an application using the RestSharp library passes a user-controllable value through to a header, then that application becomes vulnerable to CRLF-injection. This is not necessarily a security issue for a command line application like the one above, but if such code were present in a web application then it becomes vulnerable to request splitting (as shown in the PoC) and thus Server Side Request Forgery. Strictly speaking this is a potential vulnerability in applications using RestSharp, not in RestSharp itself, but I would argue that at the very least there needs to be a warning about this behaviour in the RestSharp documentation. RestSharp has addressed this issue in version 112.0.0. All users are advised to upgrade. There are no known workarounds for this vulnerability.

From the CVE record by GitHub_M, last updated August 30, 2024, 14:55 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
restsharpRestSharp>= 107, < 112.0.0

As the CVE record by GitHub_M states it, last updated August 30, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
NuGetRestSharp>= 107.0.0-preview.1, < 112.0.0112.0.0GHSA-4rr6-2v9v-wcpc

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 1, 2024. Summary: CRLF Injection in RestSharp's `RestRequest.AddHeader` method.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
restsharprestsharpfrom 107.0.0 before 112.0.0application

NVD analysis (status Analyzed), last modified June 17, 2026, 07:53 UTC.

How severe is CVE-2024-45302?

ScoreVersionVectorSource
Medium 6.1CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:HGitHub_M
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-45302 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, August 30, 2024)
EPSS
0.32% probability of exploitation activity in the next 30 days, percentile 26.5 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
August 26, 2024
Published
August 29, 2024, 21:18 UTC
CVE record updated
August 30, 2024, 14:55 UTC by GitHub_M
NVD
Analyzed, last modified June 17, 2026, 07:53 UTC
Last checked
CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:27 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect RestSharp?

Every CVE in RestSharp

Questions about CVE-2024-45302

Is CVE-2024-45302 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.32% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of RestSharp are affected by CVE-2024-45302?

RestSharp from 107.0.0-preview.1 before 112.0.0, per the GitHub advisory GHSA-4rr6-2v9v-wcpc. The tables above give every range the sources list.

Which version fixes CVE-2024-45302?

112.0.0, per the GitHub advisory GHSA-4rr6-2v9v-wcpc. Check the vendor's advisory before you rely on it.

How severe is CVE-2024-45302?

Medium (6.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2024-45302?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.