Skip to content
OpenAdvisories
High · 7.4 CVE-2026-49014 BIT-gdal-2026-49014EUVD-2026-32039GHSA-wphc-7cm7-8mf7PYSEC-2026-193

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

Published May 27, 2026 · Updated May 27, 2026 · Assigned by mitre

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.

Affected products

VendorProductAffectedFixed
GDAL GDAL 3.1.0 – ≤ 3.13.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gdal 3.13.1+dfsg-1 —
Debian 13 gdal No fix yet —
Debian 12 gdal No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 gdal No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS gdal 3.12.2+dfsg-1ubuntu0.1~esm1 USN-8812-1
Ubuntu Pro 24.04 LTS gdal 3.8.4+dfsg-3ubuntu3+esm1 USN-8812-1
Ubuntu Pro 22.04 LTS gdal 3.4.1+dfsg-1ubuntu0.1~esm1 USN-8812-1
Ubuntu Pro 20.04 LTS gdal 3.0.4+dfsg-1ubuntu0.1~esm1 USN-8812-1
Ubuntu Pro 18.04 LTS gdal 2.2.3+dfsg-2ubuntu0.1~esm1 USN-8812-1
Ubuntu Pro 16.04 LTS gdal 1.11.3+dfsg-3ubuntu0.1~esm2 USN-8812-1
Ubuntu Pro 14.04 LTS gdal 1.10.1+dfsg-5ubuntu1+esm3 USN-8812-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 gdal310 +6 3.10.3-3.amzn2023.0.2 ALAS2023-2026-1833

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gdal No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gdal >= 3.1.0, < 3.13.1 3.13.1 GHSA-wphc-7cm7-8mf7

Advisories 2

References