The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2023-22551

CVE-2023-22551: FTP Project Memory Leak DoS Vulnerability

CVE-2023-22551 is a denial of service vulnerability in FTP Project caused by memory leaks from improper malloc/free handling. Attackers can exhaust system memory through repeated connections. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: February 4, 2026

CVE-2023-22551 Overview

CVE-2023-22551 is a memory leak vulnerability in the FTP project (also known as "Implementation of a simple FTP client and server") that allows remote attackers to cause a denial of service through memory exhaustion. The vulnerability exists because memory is allocated using malloc during client connection handling but is never properly freed when connections are terminated.

Critical Impact

Remote attackers can exhaust server memory by repeatedly establishing and terminating FTP connections, leading to service unavailability without requiring authentication.

Affected Products

  • ftp_project ftp (through commit 96c1a35)

Discovery Timeline

  • 2023-01-01 - CVE-2023-22551 published to NVD
  • 2025-04-07 - Last updated in NVD database

Technical Details for CVE-2023-22551

Vulnerability Analysis

This vulnerability is a classic memory leak issue that occurs in the FTP server's connection handling logic. When a client connects to the FTP server, memory is allocated to store connection state and session information. However, when the client disconnects or the connection is terminated, the allocated memory is never reclaimed through proper deallocation.

The root cause is the use of malloc() for dynamic memory allocation without corresponding free() calls during connection cleanup. Over time, as clients connect and disconnect, the server's memory consumption grows unbounded until system resources are exhausted, resulting in denial of service.

Root Cause

The vulnerability stems from improper memory management in the FTP server implementation. Specifically, the connection handling code allocates memory for each incoming client connection but fails to implement proper cleanup routines. This is a fundamental programming error where dynamically allocated memory is never released back to the operating system.

The missing free() calls indicate that the connection teardown logic was either incomplete or improperly implemented, leaving orphaned memory blocks that accumulate with each connection cycle.

Attack Vector

The attack vector is network-based and requires no authentication or special privileges. An attacker can exploit this vulnerability by:

  1. Establishing a TCP connection to the FTP server on the listening port
  2. Allowing the server to allocate memory for the new connection
  3. Terminating the connection without completing the FTP handshake
  4. Repeating this process rapidly to accelerate memory exhaustion

This attack is particularly effective because it requires minimal bandwidth and can be automated to rapidly deplete server resources. The server will continue accepting connections and leaking memory until system resources are exhausted, at which point the service becomes unavailable or crashes.

Detection Methods for CVE-2023-22551

Indicators of Compromise

  • Steadily increasing memory consumption on the FTP server process over time
  • High volume of short-lived TCP connections to the FTP service port
  • Server process memory usage that does not decrease after client disconnections
  • System-level out-of-memory conditions or OOM killer activity targeting the FTP process

Detection Strategies

  • Monitor FTP server process memory usage for continuous upward trends without corresponding decreases
  • Implement connection rate limiting and alert on unusual patterns of rapid connect/disconnect activity
  • Configure system monitoring to alert when FTP process memory exceeds baseline thresholds
  • Analyze network traffic for patterns of incomplete FTP sessions or rapid connection cycling

Monitoring Recommendations

  • Deploy memory usage monitoring with alerting thresholds for the FTP server process
  • Implement network flow analysis to detect connection flooding patterns
  • Configure log aggregation to correlate connection events with memory consumption metrics
  • Establish baseline memory profiles and alert on significant deviations

How to Mitigate CVE-2023-22551

Immediate Actions Required

  • Review deployment necessity and consider replacing with a well-maintained FTP server implementation
  • Implement connection rate limiting at the network or firewall level to slow potential exploitation
  • Configure process memory limits using operating system controls (e.g., ulimit, cgroups) to prevent system-wide impact
  • Deploy network-level monitoring to detect and block connection flooding attacks

Patch Information

This vulnerability affects the FTP project through commit 96c1a35. Users should check the GitHub Issue Discussion for updates on available fixes. Given this is a simple educational FTP implementation, organizations are strongly advised to migrate to a mature, actively maintained FTP server solution for production environments.

Workarounds

  • Implement firewall rules to restrict FTP access to trusted IP addresses only
  • Deploy a reverse proxy or connection broker that can limit connection rates per source IP
  • Use containerization with memory limits to isolate the FTP service and prevent system-wide resource exhaustion
  • Schedule periodic service restarts during maintenance windows to reclaim leaked memory
bash
# Configuration example - Limit process memory using cgroups (Linux)
# Create a memory-limited cgroup for the FTP service
sudo cgcreate -g memory:/ftp_service
sudo cgset -r memory.limit_in_bytes=512M /ftp_service
sudo cgexec -g memory:/ftp_service ./ftp_server

# Alternative: Use systemd service limits
# Add to [Service] section of systemd unit file:
# MemoryLimit=512M
# MemoryAccounting=true

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechFtp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability9.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • GitHub Issue Discussion
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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