# CVE-2019-25050: PYSEC-2021-888 - netCDF in GDAL 2.4.2 through 3.0.4 has a stack-based buffer overflow in nc4_get_att (called from…

Source: https://junglewise.ai/threats/cve-2019-25050-pysec-2021-888-netcdf-in-gdal-2-4-2-through-3-0-4-has-a-stack  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-07-20  
License: CC BY 4.0 with a link back

CVE-2019-25050 · Severity: low · CVSS 3.1 · Published 2021-07-20

netCDF in GDAL 2.4.2 through 3.0.4 has a stack-based buffer overflow in nc4_get_att (called from nc4_get_att_tc and nc_get_att_text) and in uffd_cleanup (called from netCDFDataset::~netCDFDataset and netCDFDataset::~netCDFDataset).

Technologies: [GDAL (PyPI)](https://junglewise.ai/threats/technologies/gdal). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2019-25050 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2019-25050 being exploited in the wild.

**How severe is CVE-2019-25050?** Low severity, with a CVSS score of 3.1, published 20 July 2021.

**Which products and versions are affected?** GDAL (PyPI) GIT:introduced=0,fixed=767e3a56144f676ca738ef8f700e0e56035bd05a,fixed=27b9bf644bcf1208f7d6594bdd104cc8a8bb0646|ECOSYSTEM:introduced=2.4.2,fixed=3.1.0.

**Is there a fix for CVE-2019-25050?** Yes. GDAL (PyPI): upgrade to 3.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2019-25050?** 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.1.0 or later

  ```sh
  pip install "GDAL>=3.1.0"
  ```


## Affected products

- GDAL (PyPI) GIT:introduced=0,fixed=767e3a56144f676ca738ef8f700e0e56035bd05a,fixed=27b9bf644bcf1208f7d6594bdd104cc8a8bb0646|ECOSYSTEM:introduced=2.4.2,fixed=3.1.0

## Identifiers

- CVE-2019-25050
- PYSEC-2021-888

## Related threats

- [OSGeo GDAL stack buffer overflow in netCDF driver](https://junglewise.ai/threats/cve-2026-49014-osgeo-gdal-stack-buffer-overflow-in-netcdf-driver)
- [OSGeo GDAL heap buffer overflow in Grid File Handler](https://junglewise.ai/threats/cve-2026-8213-osgeo-gdal-heap-buffer-overflow-in-grid-file-handler)
- [OSGeo GDAL heap buffer overflow in SWSDfldsrch](https://junglewise.ai/threats/cve-2026-8212-osgeo-gdal-heap-buffer-overflow-in-swsdfldsrch)
- [OSGeo GDAL out-of-bounds read in GDfieldinfo](https://junglewise.ai/threats/cve-2026-8088-osgeo-gdal-out-of-bounds-read-in-gdfieldinfo)
- [OSGeo GDAL heap buffer overflow in HDF4-EOS driver](https://junglewise.ai/threats/cve-2026-8087-osgeo-gdal-heap-buffer-overflow-in-hdf4-eos-driver)
