CRLF Injection Affecting refit package, versions [,8.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.54% (41st 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 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 Base Scores

version 4.0
version 3.1