Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
File-parsing overflow triggered by an attacker-supplied NetCDF file: AV:L and AC:L for reliable local triggering, PR:L since a low-priv channel must submit the file, full C/I/A from code execution.
AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4Blast Radius
ecosystem impact- 2 pypi packages depend on gdal (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 3.1.0.
DescriptionNVD
In GDAL 3.1.0 through 3.13.0, scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow. It reads a geometry attribute into a fixed-size stack buffer without validating the attribute length. The attacker embeds the exploit as an oversized geometry attribute in a crafted NetCDF file. This achieves arbitrary code execution on the server running GDAL. This is in frmts/netcdf/netcdfsg.cpp.
AnalysisAI
Arbitrary code execution in GDAL 3.1.0 through 3.13.0 arises from a stack-based buffer overflow in the netCDF driver's scanForGeometryContainers routine (frmts/netcdf/netcdfsg.cpp), which reads a geometry attribute into a fixed-size stack buffer without validating its length. An attacker who can get a GDAL-based service to parse a crafted NetCDF file containing an oversized geometry attribute can overflow the buffer and run code in the context of the process. Publicly available exploit code exists per the SSVC 'poc' status, but EPSS is very low (0.01%, 3rd percentile) and it is not on the CISA KEV list, so no active exploitation is confirmed.
Technical ContextAI
GDAL (Geospatial Data Abstraction Library) is a foundational open-source raster/vector translation library maintained by OSGeo (CPE cpe:2.3:a:osgeo:gdal) and embedded in a large share of GIS, mapping, and geospatial processing stacks (QGIS, PostGIS, MapServer, Python/R geospatial toolchains, cloud imagery pipelines). The flaw lives in the netCDF driver, which parses NetCDF scientific-data files, specifically the simple-geometries (netcdfsg) code that scans geometry container attributes. The root cause is CWE-121 (stack-based buffer overflow): scanForGeometryContainers copies an attacker-controlled geometry attribute into a fixed-length stack array without bounds-checking the attribute length, so an oversized value overwrites adjacent stack memory including saved registers/return data, enabling control-flow hijack.
RemediationAI
Patch available per vendor advisory: upgrade to a fixed GDAL release above 3.13.0 once published by OSGeo - track the fix via the upstream issue https://github.com/OSGeo/gdal/issues/14594 and confirm the exact patched version there before deploying, as no tagged fix version is present in the supplied data (do not rely on an assumed version number). If patching cannot be done immediately, the most effective compensating control is to stop GDAL from parsing untrusted NetCDF input: disable or unregister the netCDF driver (for example by building/configuring GDAL without netCDF support or restricting GDAL_SKIP/allowed drivers), which removes the vulnerable code path at the cost of losing NetCDF read capability. Additionally, restrict which principals can submit NetCDF files to any GDAL-backed ingestion endpoint and validate/quarantine uploaded geospatial files, sandbox the GDAL process (least-privilege service account, seccomp/container isolation), so a successful overflow cannot execute code with broad rights. Cross-reference the vuldb advisory (https://vuldb.com/vuln/365851) for tracking.
GDAL through 3.0.1 has a poolDestroy double free in OGRExpatRealloc in ogr/ogr_expat.cpp when the 10MB threshold is exce
Buffer Overflow vulnerability in gdal 3.10.2 allows a local attacker to cause a denial of service via the OGRSpatialRefe
A buffer overflow vulnerability in GDAL versions before 3.11.0 within the zlib infback9 module allows remote attackers t
tif_getimage.c in LibTIFF through 4.0.10, as used in GDAL through 3.0.1 and other products, has an integer overflow that
Heap-based buffer overflow in OSGeo GDAL's Grid File Handler (GDSDfldsrch function in frmts/hdf4/hdf-eos/GDapi.c) affect
Heap-based buffer overflow in GDAL's HDF4-EOS SWSDfldsrch function (frmts/hdf4/hdf-eos/SWapi.c) allows local authenticat
Heap-based buffer overflow in OSGeo GDAL up to version 3.13.0dev-4 allows local authenticated attackers to corrupt memor
Out-of-bounds read in OSGeo GDAL up to version 3.13.0dev-4 occurs in the HDF-EOS Grid File Handler when parsing malforme
Heap-based buffer overflow in OSGeo GDAL up to 3.13.0dev-4 within the SWnentries function of the HDF4-EOS module allows
Out-of-bounds read in OSGeo GDAL up to version 3.13.0dev-4 affects the GDfieldinfo function in HDF-EOS module when proce
Same weakness CWE-121 – Stack-based Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: HighShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-32039
GHSA-wphc-7cm7-8mf7