Skip to main content

OSGeo GDAL CVE-2026-8212

| EUVDEUVD-2026-28948 LOW
Heap-based Buffer Overflow (CWE-122)
2026-05-09 VulDB GHSA-r5m4-5vww-w9f5
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Place malformed HDF4 file
  2. Delivery
    Local user/service opens file with GDAL
  3. Exploit
    SWSDfldsrch parses FieldList metadata
  4. Execution
    Bounds check bypassed
  5. Persist
    memmove writes past heap buffer
  6. Impact
    Heap corruption detected or code execution achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) Local file system access to place or upload a malformed HDF4 file that will be processed by GDAL; (2) GDAL must be compiled with HDF4 support enabled (the vulnerable SWapi.c and GDapi.c modules must be included); (3) The application must call gdal.Open() or equivalent HDF4-reading function on the malicious file; (4) Authenticated access to the system or application accepting the file (CVSS PR:L indicates low privilege, not unauthenticated). The vulnerability is triggered automatically when GDAL parses HDF4 metadata - no special GDAL configuration or feature enablement is required beyond HDF4 driver support. Non-default condition: HDF4 driver must be compiled in (many light-weight GDAL builds omit it). Limitation: Remote exploitation is NOT possible; attacker must have local access or ability to cause a local process to open the file.

Impact

CVSS 1.9 with AV:L/AC:L/PR:L indicates local, low-complexity, low-privilege exploitation with low confidentiality/integrity/availability impact - a ratings signal that contradicts the severity of heap buffer overflow. However, CVSS 4.0 shows E:P (exploit proof-of-concept exists), and the public exploit code corroborates this. The low impact scores (VC:L/VI:L/VA:L) likely reflect that the overflow is containable within the process or the attacker's ability to reliably convert memory corruption to code execution is limited. Real-world risk is moderate: the vulnerability requires local file access and authentication (PR:L), but GDAL is often used by server-side geospatial applications processing untrusted HDF4 uploads. An authenticated local user or a service processing malicious HDF4 files can crash the process (denial of service) or potentially escalate to code execution if memory layout permits. The patch is mature (RC1 release), and the PoC is public, creating urgency for patching. SSVC framing: Exploitation confirmed (PoC available), automatable (no user interaction required once file is processed), technical impact on integrity/availability (memory corruption). This should be high priority for systems accepting HDF4 file uploads.

Exploit ScenarioDerived

An attacker creates a malformed HDF4 file with a crafted FieldList metadata attribute that either lacks proper quotes or is unusually short. When a local user or a server-side application (e.g., a geospatial data processing service) opens this file using GDAL, the SWSDfldsrch function attempts to parse the field list. The unvalidated memmove writes beyond the heap buffer allocated for the name variable, corrupting adjacent heap structures. This can crash the GDAL process (DoS) or, with carefully chosen heap layout and memory content, lead to information disclosure or code execution.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 09, 2026

Heap-based buffer overflow in GDAL's HDF4-EOS SWSDfldsrch function (frmts/hdf4/hdf-eos/SWapi.c) allows local authenticated attackers to cause memory corruption through manipulation of malformed HDF4 files. The vulnerability stems from unsafe string manipulation that fails to validate metadata field list format before stripping quotes, enabling out-of-bounds writes. Affects GDAL up to version 3.13.0dev-4; patch available in version 3.13.0RC1. Publicly available exploit code exists.

RemediationAI

Vendor-released patch: Upgrade GDAL to version 3.13.0RC1 or later. The fix commit 3e04c0385630e4d42517046d9a4967dfccfeb7fd adds return-status validation and bounds checking before string manipulation in both SWapi.c and GDapi.c. For installations unable to upgrade immediately, disable HDF4 driver compilation (--without-hdf4 at build time) if HDF4 support is not essential. Alternatively, implement strict file upload validation: reject HDF4 files with malformed metadata or implement sandboxed processing of HDF4 inputs (e.g., containerized GDAL instances with resource limits). Note: Disabling HDF4 support may impact geospatial workflows relying on HDF4 EOS data (MODIS, etc.). Patch validation: confirm 3e04c0385630e4d42517046d9a4967dfccfeb7fd is present in your GDAL build; check GDAL version with gdalinfo --version.

Affected VersionsENISA

gdal 3.13.0dev-4

Affected Packages

pypi gdal fix: 3.13.0RC1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the SWSDfldsrch function within GDAL's HDF4-EOS API layer, specifically in quote-stripping logic applied to HDF4 field list metadata. The root cause (CWE-122: Heap-based Buffer Overflow) occurs when the code performs memmove(name, name + 1, strlen(name) - 2) without first validating that the name buffer actually contains quoted strings or that the computed lengths are safe. If EHgetmetavalue returns a malformed or empty string, or a string without proper quotes, the memmove operation writes beyond allocated heap boundaries. The patch adds bounds checking (len >= 2 && name[0] '"' && name[len-1] '"') and validates EHgetmetavalue return status before performing string manipulation. This affects HDF4 file parsing in GDAL's geospatial raster data handling, triggered when opening or reading HDF4 files with crafted metadata.

Know when Gdal gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 1.9 LOW
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

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
May 09, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
May 09, 2026 - 23:22 NVD
5.3 (MEDIUM) 1.9 (LOW)
CVE Published
May 09, 2026 - 22:30 nvd
LOW 1.9

DescriptionCVE.org

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 is called 3e04c0385630e4d42517046d9a4967dfccfeb7fd. The affected component should be upgraded.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Gdal

View all
CVE-2019-17545 CRITICAL
9.8 Oct 14

GDAL through 3.0.1 has a poolDestroy double free in OGRExpatRealloc in ogr/ogr_expat.cpp when the 10MB threshold is exce

CVE-2025-29480 MEDIUM POC
5.5 Apr 07

Buffer Overflow vulnerability in gdal 3.10.2 allows a local attacker to cause a denial of service via the OGRSpatialRefe

CVE-2026-4738 CRITICAL
9.4 Mar 24

A buffer overflow vulnerability in GDAL versions before 3.11.0 within the zlib infback9 module allows remote attackers t

CVE-2019-17546 HIGH
8.8 Oct 14

tif_getimage.c in LibTIFF through 4.0.10, as used in GDAL through 3.0.1 and other products, has an integer overflow that

CVE-2026-49014 HIGH
7.8 May 27

Arbitrary code execution in GDAL 3.1.0 through 3.13.0 arises from a stack-based buffer overflow in the netCDF driver's s

CVE-2026-8087 LOW POC
1.9 May 07

Heap-based buffer overflow in OSGeo GDAL up to version 3.13.0dev-4 allows local authenticated attackers to corrupt memor

CVE-2026-8084 LOW POC
1.9 May 07

Out-of-bounds read in OSGeo GDAL up to version 3.13.0dev-4 occurs in the HDF-EOS Grid File Handler when parsing malforme

CVE-2026-8213 LOW POC
1.9 May 09

Heap-based buffer overflow in OSGeo GDAL's Grid File Handler (GDSDfldsrch function in frmts/hdf4/hdf-eos/GDapi.c) affect

CVE-2026-8086 LOW POC
1.9 May 07

Heap-based buffer overflow in OSGeo GDAL up to 3.13.0dev-4 within the SWnentries function of the HDF4-EOS module allows

CVE-2026-8088 LOW POC
1.9 May 07

Out-of-bounds read in OSGeo GDAL up to version 3.13.0dev-4 affects the GDfieldinfo function in HDF-EOS module when proce

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy