CVE-2021-45943 Memory corruption in n/a
A heap-based buffer overflow in GDAL allows attackers to execute arbitrary code or cause denial of service via crafted PCIDSK files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-45943?
CVE-2021-45943 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 31 Dec 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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).
Weakness: CWE-787
Which versions are affected by CVE-2021-45943?
2 open source packages ship an affected version, including gdal. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
gdal Bitnami | From 3.3.0 | 3.4.1 |
gdal PyPI | From 3.3.0 | 3.4.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Oracle Spatial and Graph, Osgeo Gdal.
How do I fix CVE-2021-45943?
Upgrade gdal to 3.4.1 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-45943 being exploited?
There is no known exploitation of CVE-2021-45943 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BIT-gdal-2021-45943, DEBIAN-CVE-2021-45943, DSA-5239-1, GHSA-x54c-x29c-rpr5, MGASA-2022-0137, PYSEC-2022-43065 and 1 more.