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-44331

CVE-2026-44331: ProFTPD SQL Injection Vulnerability

CVE-2026-44331 is a SQL injection vulnerability in ProFTPD through 1.3.9a that allows remote attackers to inject SQL commands via crafted reverse DNS lookups. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-44331 Overview

CVE-2026-44331 is a SQL injection vulnerability [CWE-89] in ProFTPD versions through 1.3.9a, prior to commit 7666224. The flaw resides in the sqltab_fetch_clients_cb() function within contrib/mod_wrap2_sql.c. When the server is configured with UseReverseDNS on, attacker-supplied hostnames returned from a reverse DNS lookup are passed unescaped into SQL queries. A remote attacker who controls the reverse DNS records for their connecting IP address can inject arbitrary SQL commands. Exploitation is constrained by the character set permitted in valid DNS names, which limits but does not eliminate practical attack payloads.

Critical Impact

Remote unauthenticated attackers can inject SQL commands into the access-control database used by mod_wrap2_sql, potentially bypassing IP-based restrictions, modifying data, or extracting sensitive information.

Affected Products

  • ProFTPD versions through 1.3.9a (before commit 7666224)
  • Deployments using the mod_wrap2_sql contrib module
  • Servers configured with UseReverseDNS on

Discovery Timeline

  • 2026-05-05 - CVE-2026-44331 published to the National Vulnerability Database
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-44331

Vulnerability Analysis

The vulnerability exists in mod_wrap2_sql, a ProFTPD sub-module that supplies IP-based access control data through SQL backends. The function sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c constructs SQL lookups using the client's resolved hostname when reverse DNS resolution is enabled. Because the hostname value is concatenated into the query without proper escaping, an attacker who controls the PTR record for their source IP can craft a hostname containing SQL metacharacters. The injected payload is executed against the configured access-control database during connection establishment, before authentication occurs.

Root Cause

The root cause is missing input sanitization on hostname strings that originate from external DNS infrastructure. ProFTPD treats reverse-resolved hostnames as trusted input and passes them directly into SQL statements. The mod_wrap2_sql lookup path lacks parameterized queries or escaping for the name field used in client lookups.

Attack Vector

An attacker configures a malicious PTR record for an IP address they control, embedding SQL syntax inside the hostname. They then initiate a connection to the target ProFTPD server. During the reverse DNS lookup performed by ProFTPD, the crafted hostname is retrieved and inserted into the SQL access-control query. Exploitation does not require authentication, but DNS hostname character restrictions narrow the available payload syntax. The high attack complexity reflects the need to control authoritative DNS for the source IP and the constraints on permissible characters.

c
 /*
  * ProFTPD: mod_wrap2_sql -- a mod_wrap2 sub-module for supplying IP-based
  *                           access control data via SQL tables
- * Copyright (c) 2002-2016 TJ Saunders
+ * Copyright (c) 2002-2026 TJ Saunders
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by

Source: ProFTPD commit 7666224 — the patch properly escapes the name value used in SQL lookups for allowed and denied clients.

Detection Methods for CVE-2026-44331

Indicators of Compromise

  • Connections from IP addresses whose PTR records contain SQL metacharacters such as single quotes, semicolons, comments, or UNION keywords.
  • Unexpected SQL errors logged by the database backend serving mod_wrap2_sql lookups during client connection events.
  • Modifications to the access-control tables consulted by mod_wrap2_sql that do not correspond to administrator activity.

Detection Strategies

  • Inspect ProFTPD logs for resolved hostnames containing non-standard DNS characters and correlate with database query logs.
  • Enable SQL query logging on the backend database and alert on syntactically anomalous statements originating from the ProFTPD service account.
  • Compare resolved hostnames against the strict DNS label grammar [RFC 1035] and flag entries containing characters outside [A-Za-z0-9.-].

Monitoring Recommendations

  • Forward ProFTPD authentication and connection logs to a centralized log platform for anomaly review.
  • Monitor for spikes in connection attempts from IP ranges with attacker-controlled reverse DNS zones.
  • Track changes to mod_wrap2_sql tables and alert on unexpected INSERT, UPDATE, or DROP operations.

How to Mitigate CVE-2026-44331

Immediate Actions Required

  • Upgrade ProFTPD to a build that includes commit 7666224 or later from the official repository.
  • If patching is not immediately feasible, set UseReverseDNS off in proftpd.conf to eliminate the attack path.
  • Audit mod_wrap2_sql access-control tables for unauthorized rows or modifications.

Patch Information

The upstream fix is published in ProFTPD commit 766622456440fbca33abd7927c523673a11d1ed1, tracked in GitHub Issue #2057. The patch escapes the name value before it is used in SQL queries within contrib/mod_wrap2_sql.c.

Workarounds

  • Disable reverse DNS resolution by configuring UseReverseDNS off until the patched version is deployed.
  • Switch mod_wrap2 to a non-SQL backend such as file-based access control while patching is planned.
  • Restrict the database account used by mod_wrap2_sql to read-only access on a minimal set of tables to limit injection impact.
bash
# /etc/proftpd/proftpd.conf - temporary mitigation
UseReverseDNS off
IdentLookups off

# Verify configuration and restart the service
proftpd -t -c /etc/proftpd/proftpd.conf
systemctl restart proftpd

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechProftpd

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.03%

  • 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
  • GitHub Commit Update

  • GitHub Issue #2057
  • Related CVEs
  • CVE-2026-42167: ProFTPD mod_sql RCE Vulnerability

  • CVE-2021-47865: ProFTPD 1.3.7a DoS Vulnerability

  • CVE-2021-46854: ProFTPD Information Disclosure Flaw

  • CVE-2024-57392: ProFTPD Buffer Overflow RCE 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