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

CVE-2021-44790: Apache HTTP Server Buffer Overflow Flaw

CVE-2021-44790 is a buffer overflow vulnerability in Apache HTTP Server's mod_lua multipart parser that can be triggered by crafted request bodies. This article covers technical details, affected versions, impact, and mitigation.

Published: March 4, 2026

CVE-2021-44790 Overview

CVE-2021-44790 is a buffer overflow vulnerability in the Apache HTTP Server's mod_lua module, specifically affecting the multipart parser functionality. A carefully crafted request body can trigger a buffer overflow when the r:parsebody() function is called from Lua scripts. This vulnerability affects Apache HTTP Server version 2.4.51 and earlier, potentially allowing attackers to execute arbitrary code or crash the server.

Critical Impact

This buffer overflow vulnerability in mod_lua allows remote attackers to potentially execute arbitrary code or cause denial of service on vulnerable Apache HTTP Server installations through malicious multipart request bodies.

Affected Products

  • Apache HTTP Server 2.4.51 and earlier
  • Fedora 34, 35, and 36
  • Debian Linux 10.0 and 11.0
  • Apple macOS and Mac OS X 10.15.7 (various security updates)
  • Oracle HTTP Server 12.2.1.3.0 and 12.2.1.4.0
  • Oracle Communications Element Manager, Operations Monitor, Session Report Manager, and Session Route Manager
  • Oracle Instantis EnterpriseTrack 17.1, 17.2, and 17.3
  • Oracle ZFS Storage Appliance Kit 8.8
  • Tenable Tenable.sc
  • NetApp Cloud Backup

Discovery Timeline

  • 2021-12-20 - CVE-2021-44790 published to NVD
  • 2025-05-01 - Last updated in NVD database

Technical Details for CVE-2021-44790

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-bounds Write), a type of memory corruption issue that occurs when the mod_lua multipart parser processes specially crafted HTTP request bodies. The vulnerability resides in the r:parsebody() function, which is used by Lua scripts running within the Apache HTTP Server to parse multipart form data from incoming requests.

When processing multipart request bodies, the parser fails to properly validate the size of input data before writing it to a fixed-size buffer. An attacker can exploit this by sending a maliciously crafted request with oversized or malformed multipart content, causing data to be written beyond the allocated buffer boundaries. This out-of-bounds write can corrupt adjacent memory, potentially leading to arbitrary code execution with the privileges of the Apache web server process.

The Apache httpd team noted at the time of disclosure that while they were not aware of an active exploit, the crafting of one was considered possible.

Root Cause

The root cause of CVE-2021-44790 lies in insufficient bounds checking within the mod_lua multipart parser. When the r:parsebody() function processes multipart MIME content from HTTP POST requests, it allocates a buffer to store parsed data. However, the code fails to adequately verify that incoming data fits within the allocated buffer size before performing write operations. This lack of proper boundary validation allows attackers to overflow the buffer by submitting carefully constructed multipart content that exceeds expected size limits.

Attack Vector

The attack is network-based and does not require authentication or user interaction. An attacker can remotely exploit this vulnerability by sending an HTTP request with a specially crafted multipart request body to an Apache server that has mod_lua enabled and uses Lua scripts that call the r:parsebody() function. The malicious payload is delivered through the HTTP request body, making this attack feasible against any publicly accessible Apache server with the vulnerable configuration.

The exploitation flow involves:

  1. Identifying a target Apache HTTP Server with mod_lua enabled
  2. Locating endpoints that process multipart form data through Lua scripts
  3. Crafting a malicious multipart request body designed to overflow the parser's buffer
  4. Sending the request to trigger the buffer overflow condition
  5. Potentially achieving code execution or causing a denial of service

Detection Methods for CVE-2021-44790

Indicators of Compromise

  • Unexpected Apache httpd crashes or service restarts, particularly when processing multipart POST requests
  • Anomalous memory access patterns or segmentation faults in Apache error logs
  • Large or malformed multipart HTTP POST requests targeting Lua-enabled endpoints
  • Evidence of exploitation attempts in web access logs showing unusual Content-Type headers with multipart boundaries

Detection Strategies

  • Monitor Apache error logs for segmentation faults, memory corruption errors, or unexpected crashes related to mod_lua
  • Implement Web Application Firewall (WAF) rules to detect and block abnormally large or malformed multipart request bodies
  • Use intrusion detection systems to flag HTTP requests with suspicious multipart boundary patterns or oversized content
  • Deploy endpoint detection solutions that can identify memory corruption exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for mod_lua to capture detailed information about Lua script execution and request parsing
  • Set up alerting for Apache service crashes or abnormal restarts that may indicate exploitation attempts
  • Monitor network traffic for unusual patterns of multipart POST requests, especially from single sources
  • Implement application-level monitoring to track resource usage during request processing

How to Mitigate CVE-2021-44790

Immediate Actions Required

  • Update Apache HTTP Server to version 2.4.52 or later, which contains the security fix for this vulnerability
  • If immediate patching is not possible, disable mod_lua if it is not required for your deployment
  • Review and audit Lua scripts that utilize r:parsebody() functionality
  • Implement rate limiting and request size restrictions for endpoints that process multipart data

Patch Information

Apache has addressed this vulnerability in Apache HTTP Server version 2.4.52. Organizations should apply the official security update as soon as possible. Multiple vendors have also released their own patches and advisories:

  • Apache HTTP Server Vulnerabilities - Official Apache security advisory
  • Debian Security DSA-5035 - Debian security update
  • Oracle Security Alert CPUJAN2022 - Oracle January 2022 CPU
  • Oracle Security Alert CPUAPR2022 - Oracle April 2022 CPU
  • Tenable Security Notification TNS-2022-01 - Tenable.sc security update
  • Apple Support Article HT213255 - macOS security update

Workarounds

  • Disable mod_lua entirely if Lua scripting is not required in your Apache configuration by commenting out or removing LoadModule lua_module directives
  • Restrict access to Lua-enabled endpoints using Apache's access control directives to limit exposure to trusted networks only
  • Implement a reverse proxy or WAF in front of Apache to filter and validate multipart request bodies before they reach the server
  • Configure Apache's LimitRequestBody directive to restrict maximum request body sizes and reduce attack surface
bash
# Configuration example to disable mod_lua
# In httpd.conf or apache2.conf, comment out the following line:
# LoadModule lua_module modules/mod_lua.so

# Alternatively, restrict request body size
LimitRequestBody 1048576

# Restrict access to Lua endpoints
<Location "/lua-scripts">
    Require ip 192.168.1.0/24
</Location>

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechApache Http Server

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability86.34%

  • 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
  • CWE References
  • CWE-787
  • Technical References
  • Packet Storm Buffer Overflow Exploit

  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • Full Disclosure Mailing List Post

  • OpenWall OSS-Security Discussion

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202208-20

  • NetApp Security Advisory NTAP-20211224

  • Apple Support Article HT213255

  • Apple Support Article HT213256

  • Apple Support Article HT213257

  • Debian Security DSA-5035

  • Tenable Security Notification TNS-2022-01

  • Tenable Security Notification TNS-2022-03
  • Vendor Resources
  • Apache HTTP Server Vulnerabilities

  • Oracle Security Alert CPUAPR2022

  • Oracle Security Alert CPUJAN2022
  • Related CVEs
  • CVE-2021-39275: Apache HTTP Server Buffer Overflow Flaw

  • CVE-2022-23943: Apache HTTP Server Buffer Overflow Flaw

  • CVE-2022-28330: Apache HTTP Server Buffer Overflow Flaw

  • CVE-2023-38709: Apache HTTP Server 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