Advisory

GHSA-wphc-7cm7-8mf7

Also known as: BIT-gdal-2026-49014, CVE-2026-49014, PYSEC-2026-193

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-27 03:30 UTC
Modified
2026-07-01 18:26 UTC

Affected packages and fixes

gdal

PyPI · All systems

Affected

  • introduced 3.1.0, fixed 3.13.1 (ecosystem)

Fixed versions

3.13.1

Fix

  • Fixed version 3.13.1
    pip install --upgrade gdal==3.13.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences