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

CVE-2021-20271: RPM Package Manager RCE Vulnerability

CVE-2021-20271 is a remote code execution flaw in RPM Package Manager affecting signature verification. Attackers can exploit modified package headers to corrupt databases and execute arbitrary code. This article covers impact details, affected versions, and mitigation strategies.

Published: March 4, 2026

CVE-2021-20271 Overview

A flaw was found in RPM's signature check functionality when reading a package file. This vulnerability allows an attacker who can convince a victim to install a seemingly verifiable package, whose signature header was modified, to cause RPM database corruption and execute code. The highest threat from this vulnerability is to data integrity, confidentiality, and system availability.

Critical Impact

Attackers can bypass RPM signature verification to execute arbitrary code and corrupt the RPM database, compromising system integrity on Linux distributions using RPM package management.

Affected Products

  • RPM Package Manager (versions prior to fix, including 4.15.0-alpha/beta/rc1 and 4.16.0-alpha/beta2/beta3/rc1)
  • Red Hat Enterprise Linux 8.0
  • Fedora 32, 33, and 34
  • StarWind Virtual SAN v8 (build 14398)

Discovery Timeline

  • 2021-03-26 - CVE-2021-20271 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-20271

Vulnerability Analysis

This vulnerability (CWE-345: Insufficient Verification of Data Authenticity) exists in the way RPM handles signature header data during package installation. When processing an RPM package file, the signature verification mechanism fails to properly validate the integrity of signature header data before copying it into the main package header. An attacker can craft a malicious RPM package that appears to have a valid signature but contains modified signature header data that bypasses verification checks.

The flaw enables code execution because RPM trusts the signature header data without adequate validation, allowing the injection of malicious payloads that execute during package installation. Additionally, the corruption of the RPM database can lead to system instability and potential denial of service conditions.

Root Cause

The root cause lies in insufficient validation when copying data from the signature header to the main header during package processing. RPM was not carefully verifying the count and type of signature tags being translated and merged, allowing malformed or manipulated signature data to be processed as trusted input.

Attack Vector

The attack requires local access and user interaction—specifically, convincing a user to install a malicious RPM package. The attacker crafts a package with a modified signature header that passes initial verification checks but contains malicious data. When the victim installs the package using standard RPM tools, the corrupted signature data is processed, leading to database corruption and potential code execution.

The following patch from the RPM project demonstrates how the fix addresses this vulnerability by implementing stricter validation of signature header data:

c
    rpmRC rc;
};

+struct taglate_s {
+    rpmTagVal stag;
+    rpmTagVal xtag;
+    rpm_count_t count;
+} const xlateTags[] = {
+    { RPMSIGTAG_SIZE, RPMTAG_SIGSIZE, 1 },
+    { RPMSIGTAG_PGP, RPMTAG_SIGPGP, 0 },
+    { RPMSIGTAG_MD5, RPMTAG_SIGMD5, 16 },
+    { RPMSIGTAG_GPG, RPMTAG_SIGGPG, 0 },
+    /* { RPMSIGTAG_PGP5, RPMTAG_SIGPGP5, 0 }, */ /* long obsolete, dont use */
+    { RPMSIGTAG_PAYLOADSIZE, RPMTAG_ARCHIVESIZE, 1 },
+    { RPMSIGTAG_FILESIGNATURES, RPMTAG_FILESIGNATURES, 0 },
+    { RPMSIGTAG_FILESIGNATURELENGTH, RPMTAG_FILESIGNATURELENGTH, 1 },
+    { RPMSIGTAG_VERITYSIGNATURES, RPMTAG_VERITYSIGNATURES, 0 },
+    { RPMSIGTAG_VERITYSIGNATUREALGO, RPMTAG_VERITYSIGNATUREALGO, 1 },
+    { RPMSIGTAG_SHA1, RPMTAG_SHA1HEADER, 1 },
+    { RPMSIGTAG_SHA256, RPMTAG_SHA256HEADER, 1 },
+    { RPMSIGTAG_DSA, RPMTAG_DSAHEADER, 0 },
+    { RPMSIGTAG_RSA, RPMTAG_RSAHEADER, 0 },
+    { RPMSIGTAG_LONGSIZE, RPMTAG_LONGSIGSIZE, 1 },
+    { RPMSIGTAG_LONGARCHIVESIZE, RPMTAG_LONGARCHIVESIZE, 1 },
+    { 0 }
+};
+
/** \ingroup header
 * Translate and merge legacy signature tags into header.
 * @param h		header (dest)

Source: GitHub RPM Commit d6a86b5e69e46cc283b1e06c92343319beb42e21

The fix introduces a taglate_s structure that explicitly defines the expected tag mappings and counts for signature data, ensuring strict validation during the translation and merge process.

Detection Methods for CVE-2021-20271

Indicators of Compromise

  • Unexpected RPM database corruption or integrity errors during package operations
  • Suspicious RPM packages from untrusted or non-official sources being installed on systems
  • Package installation failures followed by unexpected system behavior or unauthorized processes
  • Modified or corrupted files in /var/lib/rpm/ database directory

Detection Strategies

  • Monitor RPM installation activities for packages sourced from non-standard repositories
  • Implement file integrity monitoring on the RPM database (/var/lib/rpm/)
  • Use SentinelOne's behavioral AI to detect anomalous process execution following package installations
  • Audit system logs for RPM signature verification warnings or errors

Monitoring Recommendations

  • Enable detailed logging for all RPM package management operations
  • Deploy endpoint detection and response (EDR) solutions to monitor for post-exploitation activities
  • Implement network segmentation to limit exposure of systems with vulnerable RPM versions
  • Regularly audit installed packages against known-good baseline configurations

How to Mitigate CVE-2021-20271

Immediate Actions Required

  • Update RPM to the latest patched version available for your distribution
  • Only install packages from trusted, official repositories with valid signatures
  • Verify RPM database integrity using rpm --rebuilddb after applying patches
  • Review recent package installations for any packages from untrusted sources

Patch Information

Security patches are available from multiple vendors. Apply the appropriate updates for your distribution:

  • Red Hat Enterprise Linux: Refer to the Red Hat Bug Report for official patches
  • Fedora: Updates available via standard Fedora package repositories (see Fedora Package Announcements)
  • Gentoo: Apply GLSA 202107-43
  • StarWind Virtual SAN: Review the StarWind Security Advisory

The core fix is available in commit d6a86b5e69e46cc283b1e06c92343319beb42e21 in the RPM GitHub repository.

Workarounds

  • Restrict RPM package installation to trusted sources only and enforce GPG signature verification
  • Implement strict access controls to prevent unprivileged users from installing packages
  • Use package management tools that perform additional integrity verification before installation
  • Consider deploying application whitelisting to prevent execution of unauthorized binaries
bash
# Verify GPG signature enforcement is enabled
grep -E "^gpgcheck" /etc/yum.conf /etc/dnf/dnf.conf

# Ensure GPG check is enabled (should output gpgcheck=1)
# If not, add or modify the following in /etc/yum.conf or /etc/dnf/dnf.conf:
# gpgcheck=1
# repo_gpgcheck=1

# Rebuild RPM database after patching
rpm --rebuilddb

# Verify RPM database integrity
rpm -Va --nofiles --nodigest

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRpm

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-345
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202107-43

  • StarWind Security Advisory
  • Vendor Resources
  • Red Hat Bug Report

  • GitHub RPM Commit
  • Related CVEs
  • CVE-2026-2625: rust-rpm-sequoia DoS Vulnerability

  • CVE-2021-35938: Rpm Package Manager Privilege Escalation

  • CVE-2021-35937: RPM Privilege Escalation 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