CVE-2024-45302: RestSharp is a Simple REST and HTTP API Client for .NET
CVE-2024-45302 is a medium-severity flaw (CVSS 6.1) affecting restsharp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-45302?
restsharp: upgrade to 112.0.0. Exact commands for each OS are on this page.
Is CVE-2024-45302 being exploited?
CVE-2024-45302 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-45302 affect?
CVE-2024-45302 affects restsharp. Severity is medium (CVSS 6.1). 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
How urgent is CVE-2024-45302?
Priority 32/100. Public exploit reference