# 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::ReadFro…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.54%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-31T00:00:00.000Z
- Modified: 2026-09-08T08:47:17.554Z
- Also known as: PYSEC-2022-43065, BIT-GDAL-2021-45943
- Weaknesses: CWE-787
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- osgeo gdal: from 3.3.0 up to 3.4.0
- debian debian_linux: 9.0; 10.0; 11.0
- fedoraproject fedora: 34; 35
- oracle spatial_and_graph: 19c; 21c
- gdal (PyPI): before 1ca6a3e5168c200763fa46d8aa7e698d0b757e7e; from 3.3.0 before 3.4.1
- gdal (Bitnami): from 3.3.0 before 3.4.1

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41993> (exploit, advisory, issue-tracking, mailing-list, patch, third-party-advisory, web)
- <https://github.com/OSGeo/gdal/pull/4944> (exploit, advisory, patch, third-party-advisory, web)
- <https://github.com/google/oss-fuzz-vulns/blob/main/vulns/gdal/OSV-2021-1651.yaml> (advisory, third-party-advisory, web)
- <https://github.com/OSGeo/gdal/commit/1ca6a3e5168c200763fa46d8aa7e698d0b757e7e> (advisory, fix, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00004.html> (advisory, mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JBPJGXY7IYY65NVJBLP3RONXE7ZBVCNU/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P23E4DEHY5FJCR5VJ46I6TO32DT7Y3T4/> (vendor-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (advisory, patch, third-party-advisory, web)
- <https://www.debian.org/security/2022/dsa-5239> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00040.html> (advisory, mailing-list, third-party-advisory, web)
- <https://security.gentoo.org/glsa/202210-15> (advisory, third-party-advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45943> (web)

## Sources

- CVE List: [CVE-2021-45943](https://www.cve.org/CVERecord?id=CVE-2021-45943), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45943](https://nvd.nist.gov/vuln/detail/CVE-2021-45943), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-43065](https://osv.dev/vulnerability/PYSEC-2022-43065), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-GDAL-2021-45943](https://osv.dev/vulnerability/BIT-GDAL-2021-45943), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-45943 · Whole record: https://cve.day/CVE-2021-45943.json · Rebuilt by cve.day 2026-11-25T22:58:06.322Z
