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-2026-24881

CVE-2026-24881: GnuPG Buffer Overflow Vulnerability

CVE-2026-24881 is a stack-based buffer overflow in GnuPG affecting versions before 2.5.17. Attackers can exploit crafted CMS messages to cause denial of service or achieve remote code execution. This post covers technical details, affected versions, impact, and mitigation strategies.

Published: January 30, 2026

CVE-2026-24881 Overview

A stack-based buffer overflow vulnerability exists in GnuPG versions prior to 2.5.17. The vulnerability occurs when gpg-agent processes a specially crafted CMS (S/MIME) EnvelopedData message containing an oversized wrapped session key during PKDECRYPT--kem=CMS handling. Successful exploitation can result in denial of service and potentially remote code execution due to memory corruption.

Critical Impact

This vulnerability allows remote attackers to trigger a stack-based buffer overflow through malicious S/MIME messages, potentially leading to denial of service or arbitrary code execution on systems running vulnerable GnuPG versions.

Affected Products

  • GnuPG versions prior to 2.5.17
  • Systems using gpg-agent for S/MIME (CMS) message decryption
  • Applications relying on GnuPG for cryptographic operations involving CMS EnvelopedData

Discovery Timeline

  • 2026-01-27 - CVE-2026-24881 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-24881

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow). The flaw resides in the gpg-agent component, which handles cryptographic agent operations for GnuPG. When processing CMS (Cryptographic Message Syntax) EnvelopedData messages used in S/MIME encryption, the agent fails to properly validate the size of wrapped session keys before copying them to a stack-allocated buffer.

The attack requires no authentication and can be triggered remotely through the network, though it requires certain conditions to be met for successful exploitation, making it moderately complex to exploit reliably. The vulnerability affects the confidentiality, integrity, and availability of affected systems.

Root Cause

The root cause is improper bounds checking in the PKDECRYPT--kem=CMS handling code path within gpg-agent. When a CMS EnvelopedData message is received with a wrapped session key that exceeds the expected size, the code copies the oversized data into a fixed-size stack buffer without adequate validation. This leads to a classic stack-based buffer overflow condition where adjacent stack memory, including return addresses and saved registers, can be overwritten.

Attack Vector

The vulnerability can be exploited remotely over the network by sending a maliciously crafted S/MIME message to a target system. The attack flow involves:

  1. An attacker crafts a CMS EnvelopedData message with an abnormally large wrapped session key
  2. The victim's email client or application processes the S/MIME message using GnuPG
  3. The gpg-agent process attempts to decrypt the message via the PKDECRYPT--kem=CMS code path
  4. The oversized session key overflows the stack buffer, corrupting adjacent memory
  5. Depending on the attacker's payload, this results in denial of service or potentially arbitrary code execution

The vulnerability can be triggered through any application that uses GnuPG for S/MIME message processing, including email clients configured to decrypt encrypted messages automatically. For more technical details, refer to the GnuPG Task T8044 and the Openwall OSS Security Discussion.

Detection Methods for CVE-2026-24881

Indicators of Compromise

  • Unexpected crashes or termination of gpg-agent processes
  • Core dumps or crash reports from gpg-agent indicating stack corruption
  • Suspicious S/MIME encrypted messages with abnormally large encrypted content
  • Anomalous memory access patterns in GnuPG-related processes

Detection Strategies

  • Monitor for repeated gpg-agent process crashes or restarts that may indicate exploitation attempts
  • Implement email gateway filtering to inspect S/MIME message structures for anomalous wrapped key sizes
  • Deploy endpoint detection solutions to identify stack buffer overflow exploitation patterns
  • Use application crash monitoring to detect abnormal gpg-agent terminations

Monitoring Recommendations

  • Enable verbose logging for gpg-agent to capture detailed operation logs
  • Configure system audit logging to track gpg-agent process execution and termination events
  • Implement network traffic analysis to identify potentially malicious S/MIME message patterns
  • Monitor for unusual memory allocation patterns in cryptographic processing pipelines

How to Mitigate CVE-2026-24881

Immediate Actions Required

  • Upgrade GnuPG to version 2.5.17 or later immediately
  • Restrict processing of S/MIME messages from untrusted sources until patching is complete
  • Consider temporarily disabling automatic S/MIME message decryption in email clients
  • Implement network-level filtering for suspicious S/MIME content at email gateways

Patch Information

GnuPG has addressed this vulnerability in version 2.5.17. Administrators should update their GnuPG installations to this version or later. Detailed information about the fix is available in the GnuPG Task T8044. For environments where immediate upgrading is not feasible, review the workarounds section below for interim protective measures.

Workarounds

  • Disable S/MIME (CMS) processing in gpg-agent if not required for business operations
  • Configure email clients to not automatically decrypt S/MIME messages, requiring manual decryption for reviewed messages only
  • Implement email filtering rules to quarantine S/MIME encrypted messages for manual review
  • Use application sandboxing or containerization to limit the impact of potential exploitation
bash
# Verify GnuPG version to confirm patch status
gpg --version

# If version is below 2.5.17, update GnuPG
# On Debian/Ubuntu systems:
sudo apt update && sudo apt install gnupg

# On RHEL/CentOS systems:
sudo dnf update gnupg2

# On macOS with Homebrew:
brew upgrade gnupg

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGnupg

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.06%

  • 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-121
  • Technical References
  • GnuPG Task T8044

  • Openwall OSS Security Discussion
  • Related CVEs
  • CVE-2026-24882: GnuPG Buffer Overflow Vulnerability

  • CVE-2026-24883: GnuPG Denial of Service Vulnerability

  • CVE-2021-33560: Libgcrypt Information Disclosure Flaw

  • CVE-2025-30258: GnuPG Verification DoS Vulnerability
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