Vulnerabilities in pkg:pypi/GDAL
PACKAGECVE-2026-8212 is a LOW (CVSS 5.3) osgeo gdal has a heap-based vulnerability (CWE-125: Out-of-bounds Read) affecting GDAL libraries in the PyPI ecosystem. The issue involves osgeo gdal has a heap-based buffer overflow. Remediation is available by upgrading affected packages to version 3.13.0RC1.
pkg:pypi/GDAL
Vulnerability advisories affecting package pkg:pypi/GDAL. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-r5m4-5vww-w9f5 | CVE-2026-8212 | LOW | OSGeo gdal has a heap-based buffer overflow |
| GHSA-j3f5-rw74-g4rv | CVE-2026-8088 | LOW | OSGeo GDAL vulnerable to out-of-bounds read |
| GHSA-h9rh-5ffh-h669 | CVE-2026-8087 | LOW | OSGeo GDAL vulnerable to heap-based buffer overflow |
CVE-2026-8212 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2026-8212
To remediate this vulnerability, upgrade all affected GDAL dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install GDAL>=3.13.0RC1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show GDAL
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-8212, inspect your installed packages using pip:
pip show GDAL
Analyze the terminal output to locate any version of GDAL in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.13.0RC1), your application is affected.
Note: The pip show GDAL command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In GDAL, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-8212 Affected GDAL Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
GDAL
|
PyPI |
< 3.13.0RC1
|
3.13.0RC1
|
References
Frequently Asked Questions
What is CVE-2026-8212?
Which GDAL versions are affected?
What version fixes CVE-2026-8212?
Is GDAL affected?
What is the CVSS score of CVE-2026-8212?
What CWE is associated with CVE-2026-8212?
How can I check PyPI dependencies for CVE-2026-8212?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r5m4-5vww-w9f5",
"modified" : "2026-05-29T22:23:28Z",
"published" : "2026-05-10T00:33:21Z",
"aliases" : [ "CVE-2026-8212" ],
"summary" : "OSGeo gdal has a heap-based buffer overflow",
"details" : "A flaw has been found in OSGeo gdal up to 3.13.0dev-4. Affected by this vulnerability is the function SWSDfldsrch of the file frmts/hdf4/hdf-eos/SWapi.c. Executing a manipulation can lead to heap-based buffer overflow. The attack requires local access. The exploit has been published and may be used. Upgrading to version 3.13.0RC1 addresses this issue. This patch commit sha is 3e04c0385630e4d42517046d9a4967dfccfeb7fd. The affected component should be upgraded.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "GDAL"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.13.0RC1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8212"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/issues/14398"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/commit/3e04c0385630e4d42517046d9a4967dfccfeb7fd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OSGeo/gdal"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/releases/tag/v3.13.0RC1"
}, {
"type" : "WEB",
"url" : "https://github.com/biniamf/pocs/tree/main/gdal-swsdfldsrch_oob-read"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gdal/PYSEC-2026-4.yaml"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/submit/808127"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/362429"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/vuln/362429/cti"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119", "CWE-125" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-29T22:23:28Z",
"nvd_published_at" : "2026-05-09T23:16:33Z"
}
}