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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gdal | 3.13.1+dfsg-1 | — |
| Debian 13 | gdal | No fix yet | — |
| Debian 12 | gdal | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | gdal | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | gdal310 +6 | 3.10.3-3.amzn2023.0.2 | ALAS2023-2026-1833 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | gdal | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | gdal | >= 3.1.0, < 3.13.1 | 3.13.1 | GHSA-wphc-7cm7-8mf7 |
Advisories 2
- USN-8812-1 gdal vulnerabilities Ubuntu Security Notices (USN) · Sep 25, 2026
- ALAS2023-2026-1833 Important: gdal310 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 22, 2026