Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-51501

CRITICAL 10.0EPSS 55%

CRLF injection in Refit's [Header], [HeaderCollection] and [Authorize] attributes

Also known as GHSA-3hxg-fxwm-8gf7

Mitigation

  • Upgrade Refit to 7.2.22 or later.

Who should check

  • Projects that depend on NuGet package Refit (< 7.2.22)
  • Anyone running reactiveui refit < 7.2.22

Vulnerability facts

Affected
Refit < 7.2.22
Fixed in
7.2.22
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
10.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: High
  • Integrity impact on other systems: High
  • Availability impact on other systems: High
EPSS
0.82% chance of exploitation in 30 days (percentile 55, 2026-11-26)
CWE
CWE-93
Published
Modified

Description

Refit is an automatic type-safe REST library for .NET Core, Xamarin and .NET The various header-related Refit attributes (Header, HeaderCollection and Authorize) are vulnerable to CRLF injection. The way HTTP headers are added to a request is via the `HttpHeaders.TryAddWithoutValidation` method. This method does not check for CRLF characters in the header value. This means that any headers added to a refit request 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 Refit 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 Refit and not in Refit itself. This issue has been addressed in release versions 7.2.22 and 8.0.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected and fixed versions

Package / productAffectedFixedSource
NuGet Refit< 7.2.227.2.22osv
reactiveui refit< 7.2.22—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-51501. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-51501.md
Affected: Refit < 7.2.22
Fixed in: 7.2.22

Steps:
1. Search this machine and project for Refit (NuGet), reactiveui refit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-51501 being exploited?

There is no confirmed exploitation: CVE-2024-51501 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.82% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-51501?

Critical: CVSS 10.0 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-51501?

Refit < 7.2.22.

Is there a fix for CVE-2024-51501?

Yes. Fixed in 7.2.22. Upgrade Refit to 7.2.22 or later.

How do I check if I'm affected by CVE-2024-51501?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors