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
    • 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-2026-42167

CVE-2026-42167: ProFTPD mod_sql RCE Vulnerability

CVE-2026-42167 is a remote code execution flaw in ProFTPD mod_sql that allows attackers to execute arbitrary code through malicious usernames. This article covers technical details, affected versions, and mitigation.

Published: April 30, 2026

CVE-2026-42167 Overview

CVE-2026-42167 is a SQL Injection vulnerability in the mod_sql module of ProFTPD before version 1.3.10rc1 that allows remote attackers to execute arbitrary code. The vulnerability exists in scenarios where USER request logging is enabled with username expansion (such as %U), and the SQL backend supports command execution capabilities like PostgreSQL's COPY TO PROGRAM.

Critical Impact

Remote attackers can achieve arbitrary code execution on vulnerable ProFTPD servers without authentication by crafting malicious usernames that exploit SQL injection in the logging functionality.

Affected Products

  • ProFTPD versions before 1.3.10rc1
  • ProFTPD installations using mod_sql with USER request logging enabled
  • Configurations using SQL backends that support command execution (e.g., PostgreSQL with COPY TO PROGRAM)

Discovery Timeline

  • April 28, 2026 - CVE-2026-42167 published to NVD
  • April 29, 2026 - Last updated in NVD database

Technical Details for CVE-2026-42167

Vulnerability Analysis

This vulnerability is classified as CWE-89 (SQL Injection) and represents a critical security flaw in how ProFTPD's mod_sql module handles user-supplied input during authentication logging. The attack exploits the intersection of two features: FTP authentication logging with username expansion and SQL backend command execution capabilities.

When ProFTPD is configured to log USER requests with expansions like %U, the username provided by the client is incorporated into SQL statements. If proper sanitization is not performed, an attacker can inject malicious SQL commands through the username field. When combined with a database backend that supports command execution—such as PostgreSQL's COPY TO PROGRAM feature—this SQL injection can be escalated to full remote code execution on the server.

The attack is particularly dangerous because it occurs during the authentication phase, meaning no valid credentials are required. The attacker simply needs to connect to the FTP service and provide a specially crafted username.

Root Cause

The root cause is improper input validation and sanitization of the username field before it is used in SQL logging statements. The mod_sql module fails to adequately escape or parameterize user input when constructing SQL queries for logging purposes. This allows specially crafted usernames containing SQL metacharacters and injection payloads to modify the intended SQL statement structure.

Attack Vector

The attack is network-based and requires no prior authentication or user interaction. An attacker connects to the vulnerable ProFTPD server and sends a USER command with a malicious payload embedded in the username. The payload exploits the SQL injection to execute database commands, which can then leverage database-specific features to achieve operating system command execution.

For PostgreSQL backends, the attack chain typically involves:

  1. Injecting SQL to terminate the current statement
  2. Using COPY TO PROGRAM to execute arbitrary shell commands
  3. Commands execute with the privileges of the database or ProFTPD service

The vulnerability mechanism involves the mod_sql module processing USER commands and logging them via SQL statements. When username expansion like %U is used, attacker-controlled input flows directly into SQL queries without proper sanitization, enabling injection attacks. Technical details and proof-of-concept information are available in the ZeroPath blog post and the GitHub PoC repository.

Detection Methods for CVE-2026-42167

Indicators of Compromise

  • Unusual or malformed usernames in FTP authentication logs containing SQL syntax (quotes, semicolons, COPY, PROGRAM)
  • Database logs showing unexpected COPY TO PROGRAM statements or other command execution attempts
  • Failed authentication attempts with usernames containing SQL injection patterns
  • Unexpected processes spawned by the database server or ProFTPD service

Detection Strategies

  • Monitor FTP logs for authentication attempts with usernames containing SQL metacharacters such as single quotes, double dashes, semicolons, or keywords like SELECT, UNION, COPY
  • Implement database query logging to detect anomalous SQL statements originating from ProFTPD connections
  • Deploy network intrusion detection rules to identify SQL injection patterns in FTP USER commands
  • Use behavioral analysis to detect child processes spawned by database or FTP services

Monitoring Recommendations

  • Enable verbose logging on ProFTPD servers to capture full USER command content
  • Configure database auditing to log all command execution attempts
  • Implement file integrity monitoring on systems running vulnerable ProFTPD versions
  • Set up alerts for any process execution originating from database service accounts

How to Mitigate CVE-2026-42167

Immediate Actions Required

  • Upgrade ProFTPD to version 1.3.10rc1 or later immediately
  • If immediate upgrade is not possible, disable mod_sql or remove USER request logging with %U expansion
  • Review ProFTPD configuration files for vulnerable logging configurations
  • Audit database permissions to restrict or remove command execution capabilities where not required

Patch Information

The vulnerability has been addressed in ProFTPD version 1.3.10rc1. Organizations should upgrade to this version or later to remediate the vulnerability. Detailed release information is available in the ProFTPD Release Notes for 1.3.10rc1. Additional discussion can be found in GitHub Issue #2052.

Workarounds

  • Remove or modify SQLLog directives that use %U expansion for USER commands
  • Restrict database user permissions to prevent use of COPY TO PROGRAM and similar command execution features
  • Implement network segmentation to limit access to FTP services from untrusted networks
  • Use a Web Application Firewall (WAF) or FTP proxy that can filter SQL injection patterns in authentication requests
bash
# Configuration example - Disable vulnerable logging in proftpd.conf
# Comment out or remove SQLLog directives using %U expansion
# Before (vulnerable):
# SQLLog USER "INSERT INTO login_log (username) VALUES ('%U')"

# After (mitigated - remove or comment the directive):
# SQLLog USER disabled or removed entirely

# Alternatively, restrict PostgreSQL COPY TO PROGRAM capability
# In postgresql.conf or via REVOKE statements:
# REVOKE EXECUTE ON FUNCTION pg_read_file FROM proftpd_user;

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechProftpd

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.24%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • ProFTPD Release Notes 1.3.10rc1

  • GitHub PoC for CVE-2026-42167

  • GitHub Issue #2052 Discussion

  • ZeroPath Blog on ProFTPD Vulnerability
  • Related CVEs
  • CVE-2024-57392: ProFTPD Buffer Overflow RCE Vulnerability

  • CVE-2020-9273: ProFTPD Use-After-Free RCE Vulnerability

  • CVE-2026-44331: ProFTPD SQL Injection Vulnerability

  • CVE-2021-47865: ProFTPD 1.3.7a DoS 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