Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-51501

CVE-2024-51501: Refit .NET Library SSRF Vulnerability

CVE-2024-51501 is a CRLF injection vulnerability in Refit .NET library that enables SSRF attacks through header manipulation. Attackers can inject malicious headers to smuggle HTTP requests. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: January 22, 2026

CVE-2024-51501 Overview

CVE-2024-51501 is a critical CRLF injection vulnerability affecting Refit, an automatic type-safe REST library for .NET Core, Xamarin, and .NET. The vulnerability exists in the handling of HTTP header values through the Header, HeaderCollection, and Authorize attributes, which fail to properly validate user-controllable input for CRLF (Carriage Return Line Feed) characters.

Critical Impact

Applications using Refit that pass user-controllable values to HTTP headers are vulnerable to CRLF injection, enabling HTTP header injection, request smuggling, and Server-Side Request Forgery (SSRF) attacks in web application contexts.

Affected Products

  • Refit library versions prior to 7.2.22
  • Refit library versions 8.x prior to 8.0.0
  • Applications using vulnerable Refit versions that pass user input to header attributes

Discovery Timeline

  • 2024-11-04 - CVE-2024-51501 published to NVD
  • 2024-11-08 - Last updated in NVD database

Technical Details for CVE-2024-51501

Vulnerability Analysis

This vulnerability stems from improper input validation in the Refit library's HTTP header handling mechanism. When HTTP headers are added to a request, Refit utilizes the HttpHeaders.TryAddWithoutValidation method to append header values. This method does not perform validation checks for CRLF characters (\r\n) within header values.

In the HTTP/1.1 protocol, CRLF sequences serve as delimiters between headers and between the headers and body of an HTTP message. When an attacker can inject CRLF characters into a header value, they can effectively terminate the current header and inject additional headers or even complete HTTP requests.

The vulnerable code path can be traced to the RequestBuilderImplementation.cs file in the Refit repository. When web applications using Refit pass unsanitized user input through attributes like Header, HeaderCollection, or Authorize, the application becomes susceptible to request splitting attacks.

Root Cause

The root cause of this vulnerability is the use of HttpHeaders.TryAddWithoutValidation method for adding headers without first sanitizing or validating the header values for control characters. This design choice prioritizes flexibility over security, allowing malicious payloads containing CRLF sequences to pass through unchecked.

The CWE-93 (Improper Neutralization of CRLF Sequences in HTTP Headers) classification accurately describes this flaw, where user-controllable data is inserted into HTTP headers without proper encoding or validation of line-termination characters.

Attack Vector

The attack is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability through the following mechanism:

When a web application accepts user input and passes it to a Refit header attribute, an attacker can craft malicious input containing CRLF sequences followed by additional HTTP headers or a complete HTTP request. This enables:

  1. HTTP Header Injection: Injecting arbitrary headers into the outgoing request
  2. HTTP Request Smuggling: Crafting a second HTTP request within the injected payload
  3. Server-Side Request Forgery (SSRF): Manipulating the application to make unintended requests to internal services

The vulnerability is particularly dangerous in web application contexts where user input flows to API clients built with Refit. For detailed technical analysis and proof-of-concept examples, refer to the GitHub Security Advisory GHSA-3hxg-fxwm-8gf7.

Detection Methods for CVE-2024-51501

Indicators of Compromise

  • Unexpected HTTP requests originating from application servers to internal resources
  • Log entries showing malformed or duplicated HTTP headers
  • Evidence of SSRF attacks in web application logs
  • Anomalous API call patterns with unusual header combinations

Detection Strategies

  • Monitor outbound HTTP requests for headers containing encoded or decoded CRLF sequences (%0d%0a, \r\n)
  • Implement web application firewall (WAF) rules to detect CRLF injection attempts in user input
  • Analyze application logs for request splitting patterns or unexpected internal network requests
  • Review .NET dependency manifests for vulnerable Refit library versions

Monitoring Recommendations

  • Enable verbose logging on API gateways and reverse proxies to capture full request headers
  • Implement network segmentation monitoring to detect SSRF attempts targeting internal services
  • Deploy runtime application self-protection (RASP) solutions to identify injection attempts
  • Monitor for unusual traffic patterns from application servers to internal endpoints

How to Mitigate CVE-2024-51501

Immediate Actions Required

  • Upgrade Refit library to version 7.2.22 or 8.0.0 immediately
  • Audit application code for instances where user input is passed to Refit header attributes
  • Implement input validation to strip or reject CRLF characters from any data used in HTTP headers
  • Review and restrict network egress from application servers to limit SSRF impact

Patch Information

The Refit maintainers have addressed this vulnerability in release versions 7.2.22 and 8.0.0. All users of the Refit library are strongly advised to upgrade to these patched versions. The security advisory and patch details are available in the GitHub Security Advisory.

Workarounds

  • There are no known workarounds for this vulnerability according to the vendor advisory
  • As a defense-in-depth measure, implement strict input validation that rejects CRLF characters before passing data to Refit
  • Consider implementing a custom DelegatingHandler to sanitize all header values
  • Apply network-level controls to limit the impact of potential SSRF exploitation
bash
# Update Refit package to patched version using .NET CLI
dotnet add package Refit --version 7.2.22

# Or for version 8.x
dotnet add package Refit --version 8.0.0

# Verify installed version
dotnet list package | grep -i refit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechRefit

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-93
  • Technical References
  • GitHub Source Code Reference

  • GitHub Security Advisory GHSA-3hxg-fxwm-8gf7
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English