Stack-based Buffer Overflow
CVE-2026-49014
Summary
In GDAL versions 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".
- LOW
- LOCAL
- HIGH
- UNCHANGED
- NONE
- LOW
- HIGH
- HIGH
CWE-121 - Stack-based Buffer Overflow
A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
References
Advisory Timeline
- Published