Description
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.
Metrics
CVSS 3.1 7.8/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| GDAL | GDAL | >= 3.1.0, <= 3.13.0 |
References
- https://github.com/OSGeo/gdal/issues/14594Issue Tracking, Mitigation, Vendor Advisory
- https://github.com/OSGeo/gdal/issues/14594Issue Tracking, Mitigation, Vendor Advisory
Timeline
- Published
- May 27, 2026
- Last modified
- Jul 24, 2026
- NVD status
- Analyzed