# CVE-2024-51501: CRLF injection in Refit's \[Header\], \[HeaderCollection\] and \[Authorize\] attributes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.82% (percentile 55, 2026-11-26)
- **CWE:** CWE-93
- **Aliases:** GHSA-3hxg-fxwm-8gf7
- **Published:** 2024-11-04T22:56:50.231Z
- **Modified:** 2026-06-17T08:05:48.977Z

## Who should check

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

## 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

- NuGet `Refit`: affected \< 7.2.22; fixed 7.2.22 (osv)
- reactiveui refit: \< 7.2.22 (cvelist)

## Mitigation

- Upgrade Refit to 7.2.22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/reactiveui/refit/security/advisories/GHSA-3hxg-fxwm-8gf7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-51501>
- patch: <https://github.com/reactiveui/refit/commit/483b1d8df18098f137ca0eca056b7e9ec19f70dd>
- other: <https://github.com/reactiveui/refit/blob/258a771f44417c6e48e103ac921fe4786f3c2a1e/Refit/RequestBuilderImplementation.cs#L1328>
- other: <https://github.com/reactiveui/refit>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-51501>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3hxg-fxwm-8gf7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-51501> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-51501>
