GitHub Advisoryadvisory · PyPI

GHSA-wphc-7cm7-8mf7 GDAL: scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow

HIGH Published 2026-05-27 Modified 2026-07-01 Official page ↗
Aliases
CVE-2026-49014
Ecosystem
PyPI
Packages
gdal
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-121
Reviewed
2026-07-01

Affected packages

• PyPI gdal: >= 3.1.0, < 3.13.1 → fixed in 3.13.1

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.

Related

Alias · CVE (1)

  • CVE-2026-49014 In GDAL 3.1.0 through 3.13.0, scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow. vulnerability

Weakness · CWE (1)

  • CWE-121 Stack-based Buffer Overflow weakness

References