NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2026-49014: GDAL: scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow

highCVSS 3.1 7.4GHSA-wphc-7cm7-8mf7

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.

Published May 27, 2026 · Updated Jul 1, 2026

Affected packages

gdal

Ecosystem
PyPI
Affected
>= 3.1.0, < 3.13.1
Fixed in
3.13.1
Check
pip show gdal

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology