CVE-2024-45302 — CRLF Injection in RestSharp — CVE Details
CRLF Injection in RestSharp's `RestRequest.AddHeader` method
Summary
Advisory Timeline
- First published August 29, 2024 (774 days ago).
- Last revised October 1, 2024 — 33 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package RestSharp --version 112.0.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: nuget (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| RestSharp | nuget | 107.0.0, 107.0.1, 107.0.2, 107.0.3 (+22 more) | 112.0.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-113
- CWE-74
- CWE-93
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
References
- https://github.com/restsharp/RestSharp/security/advisories/GHSA-4rr6-2v9v-wcpcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-45302ADVISORY
- https://github.com/restsharp/RestSharp/commit/0fba5e727d241b1867bd71efc912594075c2934bWEB
- https://github.com/restsharp/RestSharpPACKAGE
- https://github.com/restsharp/RestSharp/blob/777bf194ec2d14271e7807cc704e73ec18fcaf7e/src/RestSharp/Request/HttpRequestMessageExtensions.cs#L32WEB
Frequently Asked Questions
- What is CVE-2024-45302?
- CRLF Injection in RestSharp's `RestRequest.AddHeader` method This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
- How do I check if my project is affected by CVE-2024-45302?
- CVE-2024-45302 affects RestSharp. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-45302 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions or has limited impact. Remediate within weeks.
Also Known As
Related CVEs
- CVE-2021-27293HIGH
Incorrect Regular Expression in RestSharp
- CVE-2026-106111MEDIUM
ImageSharp: EXR ZIP decoder can expose stale allocator data after a short inflate
- CVE-2026-65829MEDIUM
MPXJ: Potential Path Traversal Vulnerability in Primavera P3 PRX and SureTrak STX readers
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies