CVE-2026-49014: OSGeo GDAL stack buffer overflow in netCDF driver

CVE-2026-49014 · Severity: high · CVSS 7.4 · Published 2026-05-27

GDAL, a widely used library for processing geospatial data, contains a vulnerability in its netCDF file driver. An attacker could provide a specially crafted data file that, when opened by a server or application using GDAL, allows them to execute unauthorized code. This could lead to a full system compromise, data theft, or service disruption.

Technologies: GDAL (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2026-49014 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-49014 being exploited in the wild.
How severe is CVE-2026-49014?
High severity, with a CVSS score of 7.4, published 27 May 2026.
Which products and versions are affected?
GDAL (PyPI) >= 3.1.0, < 3.13.1, ECOSYSTEM:introduced=3.1.0,fixed=3.13.1.
Is there a fix for CVE-2026-49014?
Yes. GDAL (PyPI): upgrade to 3.13.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-49014 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-49014?
Check whether you run GDAL (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • GDAL (PyPI): upgrade to 3.13.1 or later
    pip install "GDAL>=3.13.1"

Technical details

A stack-based buffer overflow exists in GDAL's netCDF driver within the `scanForGeometryContainers` function in `frmts/netcdf/netcdfsg.cpp`. The vulnerability is caused by reading a geometry attribute into a fixed-size stack buffer using `nc_get_att_text()` without first validating the attribute's length. An attacker can exploit this by embedding an oversized geometry attribute in a malicious NetCDF file. While the attack vector is local, it requires no specific privileges or user interaction beyond the library attempting to parse the file. The issue is addressed in version 3.13.1 by implementing length checks before reading attributes.

Affected products

  • OSGeo GDAL 3.1.0 - 3.13.0

Identifiers

  • CVE-2026-49014
  • GHSA-wphc-7cm7-8mf7
  • PYSEC-2026-193

Timeline

  • 2026-05-17: disclosed: Issue reported to OSGeo/gdal GitHub repository
  • 2026-05-18: patched: Fix merged into master branch
  • 2026-05-27: advisory: GitHub Advisory and NVD entry published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.