Approved changes feed: RSS · Atom

cpe:2.3:a:restsharp:restsharp:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorRestsharp (a8e3ba3d-7311-5ac7-8d98-c22b1e354486)
ProductRestsharp (b19e55f8-2ef5-5fa7-aeea-fd36a3737820)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*

Notes

Imported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/restsharp/restsharp purl2cpe 2026-06-01 10:11:12.797786
pkg:gitlab/gitlab-org/restsharp purl2cpe 2026-06-01 10:11:12.797788
pkg:nuget/RestSharp purl2cpe 2026-06-01 10:11:12.797790
pkg:rpm/fedora/restsharp purl2cpe 2026-06-01 10:11:12.797791
pkg:rpm/opensuse/restsharp purl2cpe 2026-06-01 10:11:12.797792
pkg:sourceforge/restsharp.mirror purl2cpe 2026-06-01 10:11:12.797794

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2024-45302 vulnerable 2026-06-08 06:45:55.844567 CRLF Injection in RestSharp's `RestRequest.AddHeader` method
MEDIUM (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`. 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.
Published: 2024-08-29T21:18:43.261Z
Updated: 2024-08-30T14:55:34.162Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2021-27293 vulnerable 2026-06-08 05:31:20.970883 Details available
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.
Published: 2021-07-12T10:47:01.000Z
Updated: 2024-08-03T20:48:16.148Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.

Inspect record JSON

Open JSON directly

Open this panel to browse, search, copy or download the JSON record.