CRLF Injection Affecting refit package, versions [,8.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about CRLF Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-REFIT-8344796
  • published7 Nov 2024
  • disclosed4 Nov 2024
  • creditsofiaml

Introduced: 4 Nov 2024

CVE-2024-51501  (opens in a new tab)
CWE-93  (opens in a new tab)

How to fix?

Upgrade Refit to version 8.0.0 or higher.

Overview

Affected versions of this package are vulnerable to CRLF Injection due to header-related attributes: Header, HeaderCollection and Authorize, through the HttpHeaders.TryAddWithoutValidation method. An attacker can manipulate HTTP headers or perform HTTP request smuggling.

Notes:

  1. This is not necessarily a security issue for a command line application, but if such code were present in a web application then it becomes vulnerable to request splitting.

  2. This is a potential vulnerability in applications using Refit, not in Refit itself.

CVSS Scores

version 4.0
version 3.1