OSGeo GDAL Heap-Based Buffer Overflow Vulnerability in HDF4-EOS Grid File Handler

Vulnerability

A heap-based buffer overflow vulnerability has been identified in OSGeo GDAL versions through 3.13.0dev-4. The issue resides in the Grid File Handler component, specifically within the GDSDfldsrch function of the GDapi.c file. The vulnerability is triggered by an unchecked string manipulation operation that strips quotes from a metadata-derived string. When the FieldList metadata value is empty, this operation causes a size_t underflow, leading to an out-of-bounds read and a subsequent heap-buffer overflow. This vulnerability must be approached locally, and the exploit has been disclosed publicly.

Impact

Exploitation of this vulnerability causes a stack-buffer overflow, where the memmove function reads an excessive amount of data from the stack, bypassing memory safety and potentially allowing for arbitrary code execution.

Reproduction

The vulnerability can be reproduced using the 'gdalmdiminfo' command-line tool with a crafted HDF-EOS grid file that exploits the quote-stripping operation in the GDSDfldsrch function. The AddressSanitizer (ASan) will report an out-of-bounds read error, indicating that the vulnerability has been successfully triggered.

Remediation

Upgrading to OSGeo GDAL version 3.13.0RC1 addresses this vulnerability.

Added: May 9, 2026, 11:19 PM
Updated: May 9, 2026, 11:19 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
3.1
exploitability
5.6
remediation
7.7
relevance
7.8
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.