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-2021-44026

CVE-2021-44026: Roundcube Webmail SQLi Vulnerability

CVE-2021-44026 is a SQL injection vulnerability in Roundcube Webmail that allows attackers to execute malicious database queries via search parameters. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-44026 Overview

CVE-2021-44026 is a SQL Injection vulnerability affecting Roundcube Webmail versions before 1.3.17 and 1.4.x before 1.4.12. The vulnerability exists in the search functionality, specifically through the search or search_params parameters, allowing attackers to inject malicious SQL commands through user-controllable input. This vulnerability has been added to the CISA Known Exploited Vulnerabilities Catalog, indicating active exploitation in the wild.

Critical Impact

Unauthenticated attackers can exploit this SQL injection vulnerability to compromise the underlying database, potentially extracting sensitive email data, user credentials, and configuration information. This vulnerability is actively exploited in the wild.

Affected Products

  • Roundcube Webmail versions prior to 1.3.17
  • Roundcube Webmail versions 1.4.x prior to 1.4.12
  • Fedora 33 and Fedora 34 (via packaged Roundcube)
  • Debian Linux 9.0, 10.0, and 11.0 (via packaged Roundcube)

Discovery Timeline

  • 2021-11-19 - CVE-2021-44026 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2021-44026

Vulnerability Analysis

This SQL injection vulnerability occurs in Roundcube Webmail's addressbook component, specifically in the contact search functionality. The application fails to properly validate and sanitize user-supplied input through the _search request parameter before using it to access session data. When the search and search_params session items are retrieved based on user input without proper type checking, an attacker can manipulate the flow to inject malicious SQL queries.

The vulnerability affects the addressbook export and function modules (program/steps/addressbook/export.inc and program/steps/addressbook/func.inc), where the application directly uses request parameters to index into session arrays without validating that the retrieved data is of the expected type (array).

Root Cause

The root cause of this vulnerability is insufficient input validation and improper type checking when handling session-stored search parameters. The original code used a type cast (array) on potentially untrusted session data rather than properly validating that the data was already an array. This allowed attackers to control the structure and content of data that would subsequently be used in database queries.

The vulnerable code paths directly accessed $_SESSION['search'][$_REQUEST['_search']] without verifying the integrity and type of the stored data, creating an opportunity for SQL injection through manipulated session content.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can craft malicious HTTP requests containing specially crafted values in the _search parameter. By manipulating how the application retrieves and processes session-stored search data, the attacker can inject SQL commands that execute against the backend database.

The attack flow involves:

  1. Sending requests to the addressbook export or search functionality
  2. Exploiting the insufficient validation of the _search parameter
  3. Causing the application to process attacker-controlled data as part of SQL queries
  4. Achieving unauthorized database access, data extraction, or modification
text
// Security patch in program/steps/addressbook/export.inc
// Source: https://github.com/roundcube/roundcubemail/commit/c8947ecb762d9e89c2091bda28d49002817263f1

 $RCMAIL->request_security_check(rcube_utils::INPUT_GET);
 
 // Use search result
-if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) {
+if (!empty($_REQUEST['_search']) && isset($_SESSION['contact_search'][$_REQUEST['_search']])
+    && is_array($_SESSION['contact_search'][$_REQUEST['_search']])
+) {
     $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name');
-    $search  = (array)$_SESSION['search'][$_REQUEST['_search']];
+    $search  = $_SESSION['contact_search'][$_REQUEST['_search']];
     $records = array();
 
     // Get records from all sources
text
// Security patch in program/steps/addressbook/func.inc
// Source: https://github.com/roundcube/roundcubemail/commit/c8947ecb762d9e89c2091bda28d49002817263f1

 {
     global $RCMAIL;
 
-    if (($search_request = $_REQUEST['_search']) && isset($_SESSION['search'][$search_request])) {
-        $search   = (array)$_SESSION['search'][$search_request];
+    if (($search_request = $_REQUEST['_search']) && isset($_SESSION['contact_search'][$search_request])
+        && is_array($_SESSION['contact_search'][$search_request])
+    ) {
+        $search   = $_SESSION['contact_search'][$search_request];
         $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name');
         $afields  = $return ? $RCMAIL->config->get('contactlist_fields') : array('name', 'email');
         $records  = array();

Detection Methods for CVE-2021-44026

Indicators of Compromise

  • Unusual SQL error messages in Roundcube web server logs, particularly related to addressbook queries
  • Abnormal request patterns to /addressbook/export or addressbook-related endpoints containing suspicious _search parameter values
  • Evidence of data exfiltration or unauthorized database queries in database audit logs
  • Unexpected modifications to contact data or database records

Detection Strategies

  • Monitor web application firewall (WAF) logs for SQL injection patterns targeting Roundcube addressbook endpoints
  • Implement database query auditing to detect anomalous queries originating from the Roundcube application
  • Deploy intrusion detection system (IDS) rules to identify SQL injection payloads in HTTP requests to Roundcube
  • Review Roundcube access logs for requests containing encoded SQL commands or union-based injection attempts

Monitoring Recommendations

  • Enable verbose logging for the Roundcube application and underlying database
  • Configure real-time alerting for database errors or suspicious query patterns
  • Monitor for unauthorized access to sensitive database tables containing user credentials and email content
  • Implement network traffic analysis to detect data exfiltration attempts

How to Mitigate CVE-2021-44026

Immediate Actions Required

  • Upgrade Roundcube Webmail to version 1.3.17 or later (for 1.3.x branch) or version 1.4.12 or later (for 1.4.x branch) immediately
  • If immediate patching is not possible, consider temporarily disabling the addressbook export functionality
  • Review database audit logs for signs of prior exploitation
  • Reset database credentials and rotate any potentially exposed secrets

Patch Information

Roundcube has released security patches addressing this vulnerability. The fixes are available in the following versions:

  • Roundcube 1.3.17 - Patched release for the 1.3.x branch
  • Roundcube 1.4.12 - Patched release for the 1.4.x branch

The patches rename session items from search and search_params to contact_search and contact_search_params, and add explicit is_array() type checking to prevent type juggling attacks. Security commits are available at GitHub Roundcube Commit c8947ecb and GitHub Roundcube Commit ee809bde.

Distribution-specific patches are available via Debian Security Advisory DSA-5013 and Fedora package updates.

Workarounds

  • Implement a Web Application Firewall (WAF) with rules to block SQL injection attempts targeting the _search parameter
  • Restrict network access to the Roundcube installation to trusted networks only
  • Consider placing the Roundcube database behind a database firewall with query whitelisting
  • Monitor and audit all database queries for anomalous patterns until patching can be completed
bash
# Configuration example: Apache mod_security rule to block suspicious search parameters
# Add to your Roundcube virtual host configuration

SecRule ARGS:_search "@detectSQLi" \
    "id:1001,\
    phase:2,\
    deny,\
    status:403,\
    msg:'Potential SQL Injection in Roundcube search parameter',\
    log,\
    auditlog"

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechRoundcube

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability64.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-89
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement 1

  • Fedora Package Announcement 2

  • Debian Security Advisory DSA-5013

  • CISA Known Exploited Vulnerability
  • Vendor Resources
  • Debian Bug Report

  • GitHub Roundcube Commit 1

  • GitHub Roundcube Commit 2
  • Related CVEs
  • CVE-2026-35537: Roundcube Webmail Deserialization Flaw

  • CVE-2026-26079: Roundcube Webmail CSS Injection Vulnerability

  • CVE-2026-25916: Roundcube Webmail XSS Vulnerability

  • CVE-2024-42009: Roundcube Webmail 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