CVE-2026-8212: GDAL OSGeo Gdal Has A Heap-based Vulnerability

LOW
Advisory Identifier: GHSA-r5m4-5vww-w9f5
CVSS 5.3
CWE-125 CWE-119
Published
Advisory Summary

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

CVE-2026-8212 at a Glance

CVE Identifier CVE-2026-8212
GHSA Identifier GHSA-r5m4-5vww-w9f5
Severity LOW
CVSS v3.1 Base Score 5.3
CWE Classification CWE-125: Out-of-bounds Read
Affected Product GDAL
Package Ecosystem PyPI
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

GDAL fixed: 3.13.0RC1
pip install GDAL>=3.13.0RC1
Verify Direct and Transitive Dependencies

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

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.

CVE-2026-8212 Affected GDAL Versions

1 component(s)
Fixed Versions:
3.13.0RC1
Product / Package Ecosystem Affected Versions Fixed Version
GDAL
PyPI
< 3.13.0RC1
3.13.0RC1

References

Frequently Asked Questions

What is CVE-2026-8212?
CVE-2026-8212 is a security vulnerability in GDAL involving OSGeo gdal has a heap-based buffer overflow under CWE-125: Out-of-bounds Read.
Which GDAL versions are affected?
Affected versions include releases prior to 3.13.0RC1 across affected packages: GDAL.
What version fixes CVE-2026-8212?
Upgrading to 3.13.0RC1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is GDAL affected?
Yes, GDAL is affected in releases prior to 3.13.0RC1. Upgrade your dependency to 3.13.0RC1 or later.
What is the CVSS score of CVE-2026-8212?
CVE-2026-8212 has a CVSS v3.1 base score of 5.3 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-8212?
CVE-2026-8212 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check PyPI dependencies for CVE-2026-8212?
Run the dependency tree command: 'pip show GDAL'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}