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

- Severity: High 7.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-15T21:25:44.755Z
- Modified: 2026-07-25T18:24:52.936Z
- Related: CVE-2026-49014, GHSA-wphc-7cm7-8mf7, EUVD-2026-32039, PYSEC-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`.

(As written by Julia Security Advisories.)

## Affected

- GDAL_jll (Julia): from 3.2.0+0 before 305.1300.100+0

## References

- <https://github.com/OSGeo/gdal/blob/v3.13.1/NEWS.md> (web)
- <https://github.com/OSGeo/gdal/commit/f5ebabc1042f3c59b24e7c8ad45dda242d127f09> (web)
- <https://github.com/OSGeo/gdal/issues/14594> (web)
- <https://github.com/OSGeo/gdal/pull/14598> (web)
- <https://github.com/advisories/GHSA-wphc-7cm7-8mf7> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gdal/PYSEC-2026-193.yaml> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49014> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-766](https://osv.dev/vulnerability/JLSEC-2026-766), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-766 · Whole record: https://cve.day/JLSEC-2026-766.json · Rebuilt by cve.day 2026-11-25T22:56:26.230Z
