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

CVE-2026-33987: FreeRDP Buffer Overflow Vulnerability

CVE-2026-33987 is a buffer overflow flaw in FreeRDP's persistent cache handler that causes memory corruption when realloc fails. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2026-33987 Overview

CVE-2026-33987 is a heap buffer overflow vulnerability (CWE-122) in FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability exists in the persistent_cache_read_entry_v3() function within libfreerdp/cache/persistent.c. Prior to version 3.24.2, the code updates persistent->bmpSize before calling winpr_aligned_recalloc(). If the reallocation fails, bmpSize becomes inflated while bmpData continues to point to the old, smaller buffer, creating a dangerous state that can lead to integrity and availability impacts.

Critical Impact

A local attacker with low privileges could exploit this heap buffer overflow to cause high integrity and availability impacts through memory corruption when the persistent cache is processed during a Remote Desktop session.

Affected Products

  • FreeRDP versions prior to 3.24.2
  • Systems using FreeRDP's persistent bitmap cache feature
  • Applications built against vulnerable FreeRDP library versions

Discovery Timeline

  • 2026-03-30 - CVE-2026-33987 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-33987

Vulnerability Analysis

This heap buffer overflow vulnerability stems from improper memory management in FreeRDP's persistent cache implementation. The core issue lies in the order of operations within the persistent_cache_read_entry_v3() function. When processing cache entries, the function updates the bmpSize field to reflect the expected new buffer size before actually performing the memory reallocation via winpr_aligned_recalloc().

If the reallocation operation fails (returns NULL), the code does not properly handle this error condition. The bmpSize variable remains inflated to the new, larger value while bmpData still points to the original, smaller memory buffer. This creates a classic heap buffer overflow scenario where subsequent operations that rely on bmpSize to determine buffer boundaries will operate on memory beyond the actual allocated space.

The vulnerability requires local access and user interaction for exploitation, as an attacker would need to craft a malicious persistent cache file that triggers the memory allocation failure and subsequent buffer overflow condition during a Remote Desktop session.

Root Cause

The root cause is a Time-of-Check Time-of-Use (TOCTOU) variant issue combined with improper error handling. The code modifies state (bmpSize) before confirming the success of the operation (winpr_aligned_recalloc()) that requires that state change. When reallocation fails, there is no rollback of the bmpSize value, leaving the internal state inconsistent with actual memory allocation. This violates secure coding principles that require state changes only after successful completion of dependent operations.

Attack Vector

The attack vector is local with low privileges required and user interaction needed. An attacker could exploit this vulnerability by:

  1. Crafting a malicious persistent bitmap cache file designed to trigger memory allocation failure
  2. Placing this cache file where the FreeRDP client will read it during session establishment
  3. Waiting for a user to initiate a Remote Desktop session that processes the malicious cache
  4. The memory allocation failure leads to inconsistent state between bmpSize and actual buffer size
  5. Subsequent cache operations write beyond the allocated buffer boundaries, corrupting heap memory

This could result in denial of service through application crash, or potentially allow manipulation of adjacent heap data structures for integrity attacks.

Detection Methods for CVE-2026-33987

Indicators of Compromise

  • Unexpected crashes or segmentation faults in FreeRDP client processes during session establishment
  • Abnormal memory allocation patterns in libfreerdp cache operations
  • Corrupted or unusually large persistent cache files in FreeRDP cache directories
  • Application logs showing memory allocation failures followed by cache processing errors

Detection Strategies

  • Monitor FreeRDP client processes for abnormal termination signals (SIGSEGV, SIGABRT)
  • Implement file integrity monitoring on FreeRDP persistent cache directories
  • Deploy endpoint detection rules to identify heap corruption patterns in Remote Desktop clients
  • Use memory debugging tools (Valgrind, AddressSanitizer) in development environments to detect buffer overflows

Monitoring Recommendations

  • Enable verbose logging in FreeRDP to capture memory allocation failures
  • Monitor system logs for repeated crashes in FreeRDP-based applications
  • Implement application crash reporting to identify potential exploitation attempts
  • Track unusual file modifications in user-specific FreeRDP cache locations

How to Mitigate CVE-2026-33987

Immediate Actions Required

  • Upgrade FreeRDP to version 3.24.2 or later immediately
  • Disable persistent bitmap caching if upgrade is not immediately possible
  • Review and clear existing persistent cache files from affected systems
  • Monitor FreeRDP client systems for signs of exploitation or crashes

Patch Information

The vulnerability has been patched in FreeRDP version 3.24.2. The fix is available in commit 1a890eb43492b5eb707cb3dd6fc908f696e8fc1c. The patch ensures that bmpSize is only updated after successful memory reallocation, preventing the inconsistent state that leads to heap buffer overflow. For detailed information about the vulnerability, refer to the GitHub Security Advisory GHSA-ff8h-p5vc-wcwc.

Workarounds

  • Disable persistent bitmap caching by setting /cache:bitmap:off in FreeRDP connection parameters
  • Remove existing persistent cache files from ~/.local/share/freerdp/ or equivalent cache directories
  • Restrict file system permissions on FreeRDP cache directories to prevent malicious cache file placement
  • Consider using alternative RDP clients until the upgrade can be performed
bash
# Configuration example - Disable persistent bitmap caching
# Add to FreeRDP connection command
xfreerdp /v:server.example.com /cache:bitmap:off

# Remove existing cache files (Linux/macOS)
rm -rf ~/.local/share/freerdp/cache/

# Set restrictive permissions on cache directory
chmod 700 ~/.local/share/freerdp/

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechFreerdp

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Vendor Resources
  • GitHub FreeRDP Commit

  • GitHub Security Advisory GHSA-ff8h-p5vc-wcwc
  • Related CVEs
  • CVE-2026-33982: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33984: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33986: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-29774: FreeRDP Buffer Overflow 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