CVE-2024-51501

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-51501
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-51501.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-51501
Aliases
Published
2024-11-04T22:56:50.231Z
Modified
2025-12-01T17:46:58.200850Z
Severity
  • 10.0 (Critical) CVSS_V4 - 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 Calculator
Summary
CRLF injection in Refit's [Header], [HeaderCollection] and [Authorize] attributes
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/51xxx/CVE-2024-51501.json",
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-93"
    ]
}
References

Affected packages

Git / github.com/reactiveui/refit

Affected ranges

Type
GIT
Repo
https://github.com/reactiveui/refit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "7.2.22"
        }
    ]
}

Affected versions

1.*

1.0.0
1.1.0
1.2.0
1.3.0

2.*

2.0.0
2.0.1
2.0.2
2.1.0
2.2.0
2.2.1
2.3.0
2.4.0
2.4.1

6.*

6.4.1
6.5.1

7.*

7.0.0
7.0.0-beta.1
7.1.0
7.1.1
7.1.2
7.2.0
7.2.1

8.*

8.0.0

v3.*

v3.0.0
v3.0.1

v4.*

v4.0.0
v4.0.1
v4.2.0
v4.3.0
v4.4.17
v4.6.107
v4.6.15
v4.6.16
v4.6.30
v4.6.48
v4.6.58
v4.6.85
v4.6.90
v4.6.99
v4.7.5
v4.7.51
v4.7.9
v4.8.14

v5.*

v5.0.15
v5.0.23
v5.1.27
v5.1.54
v5.1.67
v5.2.1

v6.*

v6.0-preview.121
v6.0-preview.128
v6.0-preview.34
v6.0-preview.37
v6.0-preview.84
v6.0-preview.86
v6.0-preview.94
v6.0-preview.96
v6.0.1
v6.0.15
v6.0.21
v6.0.24
v6.0.38
v6.0.8
v6.0.94
v6.1.15
v6.2.14
v6.2.16
v6.3.2

Database specific

source

"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-51501.json"