Your business’ toughest competition might be criminal. See why.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response

    Managed EDR

    Get full endpoint visibility, detection, and response

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    ebooks
    ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeThreat Library
CVE-2023-36049

CVE-2023-36049


Published: 2/20/2025

Written by: Nadine Rozell

Red caution sign overlaid on a picture of a laptop with a hand on the trackpad
Glitch effectGlitch effect


What is CVE-2023-36049 vulnerability?

CVE-2023-36049 is a flaw in the System.Net.WebRequest and System.Net.FtpWebRequest components of the .NET framework.

Specifically, it is an FTP Command Injection vulnerability. If an application accepts a user-supplied URI and uses it to connect to an FTP server, the .NET framework failed to properly validate the input for special characters—specifically Carriage Return (CR) and Line Feed (LF).

By injecting these characters, an attacker can append entirely new FTP commands to the session, executing actions the application developer never intended, such as deleting files or uploading malware.

When was it discovered?

The vulnerability was publicly disclosed and patched by Microsoft on November 14, 2023 (Patch Tuesday). It was reported by Piotr Bazydło of Trend Micro's Zero Day Initiative (ZDI).

Affected products & versions

This vulnerability is widespread, affecting nearly all supported versions of .NET at the time of disclosure.

Product

Versions Affected

Fixed Versions / Patch Links

.NET Framework

3.5, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

November 2023 Security Rollup

.NET Core / .NET

.NET 6.0, 7.0, 8.0 (RC2)

.NET 6.0.25, 7.0.14, 8.0.0

Visual Studio

2022 (v17.2, 17.4, 17.6, 17.7)

Visual Studio 2022 v17.8+


CVE-2023-36049 technical description

The vulnerability exists in the FormatFtpCommand method within System.Net.FtpControlStream. This method is responsible for formatting commands sent to an FTP server.

In a standard FTP transaction, commands are terminated by a CRLF sequence (\r\n). The vulnerability arises because the affected .NET component did not verify if the parameters passed to it already contained CRLF characters.

An attacker can exploit this by providing a malicious URI. For example, if an app connects to ftp://server.com/path/file, an attacker might input:

ftp://server.com/path/file%0d%0aDELE%20important.config

When the application processes this, the %0d%0a is decoded into a CRLF, effectively breaking the single command into two:

  • The original (benign) command.

  • A new, malicious command (DELE important.config) that the FTP server executes immediately.

Tactics, techniques & procedures (TTPs)

Attackers exploiting CVE-2023-36049 generally follow this pattern:

  • Reconnaissance: Identifying web applications or services that accept user input (like a URL) and perform backend FTP operations (e.g., "Import from URL" features).

  • Exploitation: Submitting a crafted URI containing URL-encoded CRLF characters (%0d%0a) followed by malicious FTP commands.

  • Privilege Escalation / Impact:

    • Arbitrary File Write: Injecting STOR commands to upload web shells or malicious binaries to the FTP server.

    • Arbitrary File Deletion: Injecting DELE commands to remove critical configuration or log files.

    • Permission Changes: Injecting CHMOD or similar commands to weaken file permissions.

Indicators of compromise

Detecting this activity requires looking at both application logs and network traffic:

  • Network Signatures: Intrusion Detection Systems (IDS) can flag FTP packets containing multiple commands in a single sequence, or unexpected commands like DELE or STOR originating from an application that should only be reading files (RETR).

  • Application Logs: Look for error logs in System.Net indicating "Protocol Violation" or "CRLF found in header" if the injection attempts fail or are partially caught.

  • FTP Server Logs: Unusual sequences of commands coming from the IP address of your .NET application server.

Known proof-of-concepts & exploits

Technical write-ups and Proof-of-Concept (PoC) exploits were released by the Zero Day Initiative (ZDI) shortly after the patch.

These PoCs demonstrate how to use the System.Net.WebRequest class to delete files on a target FTP server without authentication (if the app connects anonymously) or using the app's stored credentials. While not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, the availability of PoCs makes it a viable target for attackers.

How to detect CVE-2023-36049 vulnerability?

  • Vulnerability Scanning: Use tools like Tenable Nessus (Plugin ID 185887) or Microsoft Defender to identify .NET runtimes and Framework installations that have not received the November 2023 update.

  • Code Review: Scan your own codebase for usage of WebRequest.Create or FtpWebRequest where the URI is constructed using unvalidated user input.

Impact & risk of CVE-2023-36049 vulnerability

The impact is rated High to Critical (CVSS 8.8 - 9.8).

If an attacker successfully exploits this, they can manipulate files on the backend FTP server with the same privileges as the application. This could lead to:

  • Remote Code Execution (RCE): If the attacker uploads a malicious script (e.g., .aspx, .php) to a directory accessible via a web server.

  • Data Loss: Deletion of critical business data.

  • Service Disruption: Corrupting application configuration files.

Mitigation & remediation strategies

There is no workaround; patching is mandatory.

  • Apply Security Updates: Install the Microsoft .NET Framework November 2023 Security and Quality Rollup immediately. This update modifies System.Net to properly sanitize input and reject CRLF characters in FTP parameters.

  • Sanitize Input: As a defense-in-depth measure, developers should validate all user-supplied URIs to ensure they conform to expected formats and do not contain control characters like \r or \n before passing them to .NET networking classes.

  • Least Privilege: Ensure that the credentials used by your application to connect to FTP servers have the minimum necessary permissions (e.g., Read-Only access if the app only needs to download files).

CVE-2023-36049 Vulnerability FAQs

It is a vulnerability in the .NET Framework that allows for "CRLF Injection." Attackers can supply a malicious URL to an application, which then unknowingly sends extra, unauthorized commands (like "delete file") to an FTP server the application connects to.

This is not a virus that "infects" a system on its own. It is an exploit vector. An attacker uses it to trick a vulnerable server into damaging another server (the FTP server) or elevating their own privileges by modifying files they shouldn't have access to.

Yes. Any system running outdated versions of .NET (pre-November 2023) remains vulnerable. It is a stable, logic-based flaw that will work reliably until patched.

The primary fix is installing the November 2023 Windows/Microsoft Update for .NET. Additionally, organizations should review custom applications to ensure they do not pass unvalidated user input directly to FTP connection requests.

Glitch effectBlurry glitch effect

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy