Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. RestSharp
  4. ›
  5. CVE-2024-45302

CVE-2024-45302: CRLF Injection in RestSharp's `RestRequest.AddHeader` method

August 29, 2024 (updated October 1, 2024)

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

Code Behaviors & Features

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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 107.0.0-preview.1 before 112.0.0

Fixed versions

  • 112.0.0

Solution

Upgrade to version 112.0.0 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')

Source file

nuget/RestSharp/CVE-2024-45302.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:32 +0000.