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

CVE-2026-8213: OSGeo GDAL Buffer Overflow Vulnerability

CVE-2026-8213 is a heap-based buffer overflow flaw in OSGeo GDAL's Grid File Handler that affects versions up to 3.13.0dev-4. Attackers can exploit this locally through malicious grid files. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: May 18, 2026

CVE-2026-8213 Overview

CVE-2026-8213 is a heap-based buffer overflow in the OSGeo GDAL library affecting versions up to 3.13.0dev-4. The flaw resides in the GDSDfldsrch function within frmts/hdf4/hdf-eos/GDapi.c, which is part of the Grid File Handler used to parse HDF4-EOS metadata. The function performs memmove operations to strip surrounding quotes from a FieldList metadata value without first verifying that the value is properly quoted or that its length is sufficient, leading to out-of-bounds memory access on the heap. Exploitation requires local access and a crafted HDF4-EOS file. The issue is tracked under [CWE-119] and was resolved in GDAL 3.13.0RC1 via commit 3e04c0385630e4d42517046d9a4967dfccfeb7fd.

Critical Impact

A local attacker who can supply a malformed HDF4-EOS file to a GDAL-based application can trigger a heap buffer overflow, potentially causing process crashes or limited memory corruption.

Affected Products

  • OSGeo GDAL versions up to and including 3.13.0dev-4
  • Applications and geospatial tooling embedding the affected GDAL HDF4-EOS driver
  • Fixed in GDAL 3.13.0RC1 and later

Discovery Timeline

  • 2026-05-09 - CVE-2026-8213 published to the National Vulnerability Database
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-8213

Vulnerability Analysis

The vulnerability lives in the HDF4-EOS Grid File Handler implementation in frmts/hdf4/hdf-eos/GDapi.c, with an identical defect in frmts/hdf4/hdf-eos/SWapi.c. The GDSDfldsrch routine calls EHgetmetavalue(metaptrs, "FieldList", name) to retrieve a field list string from HDF4-EOS metadata. The code then unconditionally executes memmove(name, name + 1, strlen(name) - 2) followed by writing a null terminator at name[strlen(name) - 2]. When the returned name is shorter than two characters or not wrapped in quotes, strlen(name) - 2 underflows or the indexing reads outside the allocated heap buffer. The EPSS score for this issue is low, reflecting the local attack vector and limited exploitation surface.

Root Cause

The root cause is missing input validation on the metadata value returned by EHgetmetavalue. The original code assumes the field list is always at least two characters long and surrounded by double quotes. No length check or quote check was performed before the memmove call, allowing a heap out-of-bounds read and arithmetic underflow on the length argument.

Attack Vector

An attacker with local file delivery capability supplies a crafted HDF4-EOS dataset whose FieldList metadata entry is either empty, unterminated, or missing the leading and trailing quote characters. When a GDAL-based application opens the file and traverses the grid metadata, GDSDfldsrch triggers the out-of-bounds memory access. The impact is limited to the privileges of the process that invoked GDAL.

c
/* Patched code from frmts/hdf4/hdf-eos/GDapi.c */
/* Get field list and strip off leading and trailing quotes */
if (EHgetmetavalue(metaptrs, "FieldList", name) == 0)
{
    const size_t len = strlen(name);
    if (len >= 2 && name[0] == '"' && name[len-1] == '"')
    {
        memmove(name, name + 1, strlen(name) - 2);
        name[strlen(name) - 2] = 0;
    }
}
else
{
    name[0] = '\0';
}

/* Search for desired field within merged field list */

Source: GitHub Commit 3e04c038

The patch adds a return-code check on EHgetmetavalue, validates that the buffer length is at least two bytes, and confirms that the field list is bounded by double-quote characters before invoking memmove. The identical guard is applied in SWapi.c.

Detection Methods for CVE-2026-8213

Indicators of Compromise

  • Unexpected crashes or segmentation faults in processes that link against libgdal when opening HDF4 or HDF-EOS datasets
  • AddressSanitizer or Valgrind reports of heap-buffer-overflow in GDSDfldsrch or related HDF4-EOS handlers
  • Presence of HDF4-EOS files from untrusted sources in geospatial processing pipelines

Detection Strategies

  • Inventory installed GDAL versions across workstations, build agents, and container images and flag any version at or below 3.13.0dev-4
  • Run fuzzing or sanitizer-instrumented builds of GDAL against ingested HDF4-EOS samples to surface heap overflow conditions
  • Review application logs for repeated GDAL driver errors when parsing HDF4-EOS grid metadata

Monitoring Recommendations

  • Monitor endpoints and servers for abnormal termination of GDAL utilities such as gdalinfo, gdal_translate, and ogr2ogr
  • Track file ingestion of .hdf and .he4 artifacts originating from outside trusted data providers
  • Alert on core dump generation by processes that load the HDF4 driver shared object

How to Mitigate CVE-2026-8213

Immediate Actions Required

  • Upgrade GDAL to version 3.13.0RC1 or later on all systems that process HDF4-EOS files
  • Rebuild and redeploy container images and Python wheels (for example rasterio, fiona) that bundle a vulnerable GDAL
  • Restrict who can place HDF4-EOS files into automated processing pipelines until patching is complete

Patch Information

The upstream fix is commit 3e04c0385630e4d42517046d9a4967dfccfeb7fd, included in the v3.13.0RC1 release. The commit modifies both frmts/hdf4/hdf-eos/GDapi.c and frmts/hdf4/hdf-eos/SWapi.c to validate the FieldList metadata value before performing pointer arithmetic. See the GitHub Release Notes for v3.13.0RC1 and the upstream issue discussion for full context.

Workarounds

  • Disable the HDF4 driver at GDAL build time or via the GDAL_SKIP=HDF4 environment variable if HDF4 support is not required
  • Validate HDF4-EOS inputs in a sandboxed process with reduced privileges and resource limits before passing them to production tooling
  • Constrain file system permissions so only trusted accounts can introduce HDF4 datasets into ingest directories
bash
# Skip the HDF4 driver to neutralize the vulnerable code path
export GDAL_SKIP="HDF4 HDF4Image"
gdalinfo --formats | grep -i hdf4

# Verify the installed GDAL version after upgrade
gdal-config --version

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechGdal

  • SeverityLOW

  • CVSS Score1.9

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-119
  • Technical References
  • GitHub GDAL Repository

  • GitHub Commit Details

  • GitHub Issue Discussion

  • GitHub Release Notes

  • GitHub Proof of Concept

  • VulDB Submission Report

  • VulDB #362430

  • VulDB #362430 CTI Analysis
  • Related CVEs
  • CVE-2026-8212: OSGeo GDAL Buffer Overflow Vulnerability

  • CVE-2026-4738: OSGeo GDAL Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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