CVE-2024-45302: CRLF Injection in RestSharp's `RestRequest.AddHeader` method
(updated )
The second argument to RestRequest.AddHeader
(the header value) is vulnerable to CRLF injection. The same applies to RestRequest.AddOrUpdateHeader
and RestClient.AddDefaultHeader
.
References
- github.com/advisories/GHSA-4rr6-2v9v-wcpc
- github.com/restsharp/RestSharp
- github.com/restsharp/RestSharp/blob/777bf194ec2d14271e7807cc704e73ec18fcaf7e/src/RestSharp/Request/HttpRequestMessageExtensions.cs
- github.com/restsharp/RestSharp/commit/0fba5e727d241b1867bd71efc912594075c2934b
- github.com/restsharp/RestSharp/security/advisories/GHSA-4rr6-2v9v-wcpc
- nvd.nist.gov/vuln/detail/CVE-2024-45302
Detect and mitigate CVE-2024-45302 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →