7.4high
GDAL: scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow
- Severity
- 7.4high CVSS:3.1 by mitre
- Exploit likelihood
- 0.10% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-wphc-7cm7-8mf7BIT-GDAL-2026-49014PYSEC-2026-193
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
| Product or package | Versions | Reported by |
|---|---|---|
| GDAL GDAL | from 3.1.0 up to 3.13.0 | CVE List |
| gdal (PyPI) | from 3.1.0 before 3.13.1 | GitHub Advisory Database, PyPA Advisory Database |
| osgeo gdal | from 3.1.0 up to 3.13.0 | NVD |
| gdal (Bitnami) | from 3.1.0 before 3.13.1 | Bitnami Vulnerability Database |
All scores
| mitre | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En GDAL 3.1.0 hasta 3.13.0, scanForGeometryContainers en el controlador netCDF permite la ejecución de código mediante un desbordamiento de búfer basado en pila. Lee un atributo de geometría en un búfer de pila de tamaño fijo sin validar la longitud del atributo. El atacante incrusta el exploit como un atributo de geometría de tamaño excesivo en un archivo NetCDF manipulado. Esto logra la ejecución de código arbitrario en el servidor que ejecuta GDAL. Esto se encuentra en frmts/netcdf/netcdfsg.cpp.
References
| https://github.com/OSGeo/gdal/issues/14594 | advisory, exploit, issue-tracking, mitigation, report, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-49014 | advisory, web | |
| https://github.com/OSGeo/gdal/pull/14598 | web | |
| https://github.com/OSGeo/gdal/commit/f5ebabc1042f3c59b24e7c8ad45dda242d127f09 | web | |
| https://github.com/OSGeo/gdal | package | |
| https://github.com/OSGeo/gdal/blob/v3.13.1/NEWS.md | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/gdal/PYSEC-2026-193.yaml | web | |
| https://github.com/advisories/GHSA-wphc-7cm7-8mf7 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-49014 changed 2026-05-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wphc-7cm7-8mf7 changed 2026-07-01 | CC-BY-4.0 |
| NVD | CVE-2026-49014 changed 2026-07-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-193 changed 2026-07-13 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-GDAL-2026-49014 changed 2026-09-10 | Apache-2.0 |