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

CVE-2026-33986: FreeRDP Buffer Overflow Vulnerability

CVE-2026-33986 is a buffer overflow vulnerability in FreeRDP's H.264 codec that causes memory corruption when reallocation fails. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 2, 2026

CVE-2026-33986 Overview

A heap-based buffer overflow vulnerability exists in FreeRDP, a free implementation of the Remote Desktop Protocol. The vulnerability is located in the yuv_ensure_buffer() function within libfreerdp/codec/h264.c. Prior to version 3.24.2, the function updates h264->width and h264->height values before completing the memory reallocation loop. If any winpr_aligned_recalloc() call fails during this process, the function returns FALSE but the width and height values are already inflated, leading to a heap buffer overflow condition.

Critical Impact

Successful exploitation of this vulnerability could allow an attacker to achieve remote code execution by sending specially crafted RDP data to a vulnerable FreeRDP client, potentially compromising system integrity, confidentiality, and availability.

Affected Products

  • FreeRDP versions prior to 3.24.2
  • Applications and systems utilizing FreeRDP's H.264 codec implementation
  • RDP client implementations based on the FreeRDP library

Discovery Timeline

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

Technical Details for CVE-2026-33986

Vulnerability Analysis

This vulnerability stems from improper memory management within FreeRDP's H.264 video codec implementation. The yuv_ensure_buffer() function is responsible for allocating and managing YUV data buffers used during video decoding. When the function is called to resize buffers for different video dimensions, it prematurely updates the h264->width and h264->height context variables before ensuring all memory reallocations succeed.

The vulnerability is classified as CWE-122 (Heap-based Buffer Overflow). When a memory allocation failure occurs mid-loop, the function returns an error state but leaves the H264 context in an inconsistent state where the dimension fields indicate larger buffer sizes than what was actually allocated. Subsequent operations that rely on these inflated dimensions will read or write beyond allocated heap memory boundaries.

Root Cause

The root cause of this vulnerability is a logic error in the state management of the H264 context structure. The h264->width and h264->height fields are updated at the beginning of the buffer reallocation process rather than after all memory operations complete successfully. This violates the principle of atomic state updates where all related changes should only be committed once the entire operation succeeds.

The problematic code path allows for a partial failure scenario where some YUV plane buffers may be reallocated successfully while others fail, leaving the context in an undefined state with mismatched dimension metadata and actual buffer sizes.

Attack Vector

An attacker can exploit this vulnerability over the network by sending a malicious RDP stream to a FreeRDP client. The attack requires user interaction (the user must connect to or receive data from a malicious RDP server). The attacker can craft H.264 encoded video data that triggers specific buffer reallocation sequences designed to:

  1. Request progressively larger buffer sizes to stress memory allocation
  2. Trigger an allocation failure at a strategic point in the reallocation loop
  3. Exploit the resulting heap buffer overflow when the client processes subsequent video frames with incorrect buffer boundaries
c
 		h264->iStride[2] = (stride + 1) / 2;
 	}

-	h264->width = width;
-	h264->height = height;
-
 	for (size_t x = 0; x < nPlanes; x++)
 	{
 		BYTE* tmp1 = winpr_aligned_recalloc(h264->pYUVData[x], h264->iStride[x], pheight, 16);

Source: GitHub Commit Changes

The patch removes the premature assignment of width and height values, deferring these updates until after all memory allocations have completed successfully.

Detection Methods for CVE-2026-33986

Indicators of Compromise

  • Unexpected crashes or memory corruption errors in FreeRDP client processes
  • Abnormal memory consumption patterns during RDP sessions
  • Core dumps or crash logs indicating heap corruption in libfreerdp components
  • Suspicious RDP connections from untrusted servers requesting unusual video codec parameters

Detection Strategies

  • Monitor for process crashes in FreeRDP-based applications with heap corruption signatures
  • Implement network-level inspection for RDP traffic with anomalous H.264 codec negotiation parameters
  • Deploy endpoint detection rules for heap overflow exploitation attempts targeting FreeRDP processes
  • Use memory sanitizers (ASan, MSan) in development and testing environments to detect heap overflows

Monitoring Recommendations

  • Enable verbose logging for RDP connections to identify connections from untrusted endpoints
  • Monitor system logs for FreeRDP process terminations with SIGSEGV or SIGABRT signals
  • Implement alerting for repeated connection failures or crashes from the same source
  • Track FreeRDP library versions across your environment to identify vulnerable deployments

How to Mitigate CVE-2026-33986

Immediate Actions Required

  • Update FreeRDP to version 3.24.2 or later immediately
  • Audit all systems and applications that may bundle or depend on FreeRDP libraries
  • Restrict RDP connections to trusted servers only until patching is complete
  • Consider temporarily disabling H.264 codec support if immediate patching is not possible

Patch Information

FreeRDP has released version 3.24.2 which addresses this vulnerability. The fix ensures that the h264->width and h264->height context variables are only updated after all memory reallocations in the loop complete successfully. This prevents the heap buffer overflow condition that occurs when allocation failures leave the context in an inconsistent state.

For detailed information about the security fix, refer to the GitHub Security Advisory and the commit implementing the patch.

Workarounds

  • Disable H.264 codec support in FreeRDP configuration to prevent exploitation through this vector
  • Restrict network connectivity to allow RDP connections only to known, trusted servers
  • Deploy network segmentation to limit exposure of systems running vulnerable FreeRDP versions
  • Use application-level firewalls to filter or inspect RDP traffic for anomalous codec parameters
bash
# Configuration example
# Disable H.264 codec in FreeRDP client (command line)
xfreerdp /gfx:avc420:off /gfx:avc444:off /v:trusted-server.example.com

# For environments using FreeRDP configuration files, ensure H.264 codecs are disabled
# until patching to version 3.24.2 or later is complete

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

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

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33982: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33984: FreeRDP Buffer Overflow Vulnerability

  • CVE-2026-33987: 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