Advisory

PYSEC-2026-193

Also known as: BIT-gdal-2026-49014, CVE-2026-49014, GHSA-wphc-7cm7-8mf7

Summary

The record has no summary.

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: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-05-27 02:16 UTC
Modified
2026-07-13 16:45 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: PyPA Advisory Database · CC BY 4.0

Sources & licences