OSGeo gdal
cpe:2.3:a:osgeo:gdal:*:*:*:*:*:*:*
- <= 3.13.0dev-4
A heap-based buffer overflow vulnerability has been identified in OSGeo GDAL versions through 3.13.0dev-4. The issue arises in the HDF4-EOS processing module, specifically within the 'SWnentries' function of 'frmts/hdf4/hdf-eos/SWapi.c'. The vulnerability is triggered by unbounded string concatenation into a caller-allocated buffer, based on incorrect assumptions about the formatting of metadata values. This flaw allows for local exploitation, potentially leading to arbitrary memory corruption.
Exploitation of this vulnerability causes a heap buffer overflow, which can lead to a segmentation fault (SIGSEGV) and a denial-of-service condition. Additionally, there is a potential for controlled out-of-bounds writes to the heap, which could be exploited to execute arbitrary code.
The vulnerability can be reproduced by using a crafted HDF-EOS swath file that contains unquoted 'DimensionName' values, which bypass HDF library validation. This file can be processed with the 'gdalmdiminfo' utility, part of the GDAL distribution, which will trigger the buffer overflow while the application is built with AddressSanitizer and UndefinedBehaviorSanitizer enabled.
Users are advised to upgrade to GDAL version 3.12.4RC1, which addresses this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.