---
id: CVE-2026-8212
aliases:
  - GHSA-r5m4-5vww-w9f5
  - BIT-gdal-2026-8212
  - PYSEC-2026-4
title: OSGeo gdal has a heap-based buffer overflow
summary: OSGeo gdal has a heap-based buffer overflow
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: gdal
product: gdal
ecosystem: pip
affected:
  - gdal < 3.13.0RC1
patched:
  - gdal 3.13.0RC1
published: '2026-05-10'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:55.269820363Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-r5m4-5vww-w9f5'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-8212'
  - url: 'https://github.com/OSGeo/gdal/issues/14398'
  - url: >-
      https://github.com/OSGeo/gdal/commit/3e04c0385630e4d42517046d9a4967dfccfeb7fd
  - url: 'https://github.com/OSGeo/gdal'
  - url: 'https://github.com/OSGeo/gdal/releases/tag/v3.13.0RC1'
  - url: 'https://github.com/biniamf/pocs/tree/main/gdal-swsdfldsrch_oob-read'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/gdal/PYSEC-2026-4.yaml
  - url: 'https://vuldb.com/submit/808127'
  - url: 'https://vuldb.com/vuln/362429'
  - url: 'https://vuldb.com/vuln/362429/cti'
tags:
  - osv
  - pip
epss: 0.00205
epssPercentile: 0.10792
ingestedAt: '2026-09-12T03:13:01.724Z'
---

## Overview

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.

## Affected packages

- `gdal < 3.13.0RC1`

## Remediation

Upgrade to a patched release:

- `gdal 3.13.0RC1`
