Skip to main content

OSGeo GDAL CVE-2026-8086

| EUVDEUVD-2026-28418 LOW
Heap-based Buffer Overflow (CWE-122)
2026-05-07 VulDB GHSA-72pg-5w29-wjx6
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Recon
    Obtain or create GDAL access
  2. Delivery
    Craft malicious HDF4 file with oversized DimensionName
  3. Exploit
    Place file in GDAL processing path
  4. Install
    GDAL opens file with HDF4 backend
  5. C2
    SWnentries function processes dimension metadata
  6. Execute
    Buffer overflow triggered in heap memory
  7. Impact
    Potential crash or memory corruption

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 system access - remote exploitation is not possible; (2) Authenticated user privileges (non-root/unprivileged user acceptable per CVSS PR:L); (3) Ability to provide or place a crafted HDF4 file where GDAL will process it, typically through file upload, shared storage, or direct file creation if the attacker has filesystem write access; (4) GDAL must be built with HDF4 support enabled (--with-hdf4 flag during compilation). The vulnerability is not triggered by default GDAL installations without HDF4 backend. Limiting factors: The buffer overflow is confined to metadata dimension name processing within the HDF4-EOS module, not the main data reading path. Memory protections (DEP/NX bit, heap canaries on some platforms) may prevent exploitation for code execution even if the overflow is triggered. Non-default configurations (disabling HDF4 support, running GDAL in sandboxed environments, restricting HDF4 file processing) effectively eliminate risk.

Impact

The CVSS v4.0 vector (AV:L/AC:L/PR:L) indicates local attack vector with low complexity and requirement for low-level user privileges, not unauthenticated remote exploitation. CVSS impact scores (VC:L/VI:L/VA:L) indicate low confidentiality, integrity, and availability impact - unusual for a heap buffer overflow but suggesting the overflow is constrained in scope or the impacted memory region has limited security consequences. EPSS data is not provided. The CVSS score of 1.9 is exceptionally low for a buffer overflow, suggesting either the memory corruption is difficult to exploit for meaningful impact, is mitigated by memory protections (ASLR, heap hardening), or affects only diagnostic/metadata operations rather than data integrity. The presence of publicly available POC code indicates technical feasibility of triggering the overflow, but the low CVSS impact rating suggests real-world severity is limited. Exploitation requires: (1) local system access, (2) authenticated user privileges (PR:L), (3) ability to provide crafted HDF4 files with malformed DimensionName fields. This is notably different from remote code execution or privilege escalation scenarios. The fix is released and available, making this a straightforward patch priority despite the buffer overflow classification.

Exploit ScenarioDerived

An authenticated local user with access to a system running GDAL (e.g., a shared scientific computing server) crafts a malicious HDF4 file with specially crafted DimensionName fields containing unquoted strings exceeding expected buffer lengths. When GDAL processes this file through the SWnentries function to enumerate dataset dimensions, the buffer overflow occurs in heap memory. While the low CVSS impact suggests the overflow does not directly lead to code execution or significant data corruption, it could cause a denial-of-service crash or potentially corrupt adjacent heap structures if exploitable. The publicly available POC (github.com/biniamf/pocs/tree/main/gdal-swinqdims_bof) demonstrates the triggering mechanism.

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 07, 2026

Heap-based buffer overflow in OSGeo GDAL up to 3.13.0dev-4 within the SWnentries function of the HDF4-EOS module allows local authenticated attackers to cause memory corruption via crafted DimensionName arguments. The vulnerability requires local access and authenticated privileges but can be exploited with publicly available proof-of-concept code. CVSS score of 1.9 reflects limited confidentiality, integrity, and availability impact despite the buffer overflow nature, indicating the vulnerability has constrained real-world severity despite its technical classification.

RemediationAI

Vendor-released patch: Upgrade GDAL to version 3.12.4RC1 or later. The upstream fix (commit 9491e794f1757f08063ea2f7a274ad2994afa636, merged via PR#14361) corrects the infinite loop condition and adds proper string length validation. For users unable to immediately upgrade, disable HDF4 format support in GDAL if not required (rebuild with --without-hdf4), or restrict access to HDF4 file processing to trusted data sources only. Since exploitation requires local authenticated access, network-based isolation (e.g., containerization, restricted user shells) provides limited additional benefit but reduces the attack surface from internal users. Testing should verify that legitimate HDF4 files with both quoted and unquoted dimension names are correctly parsed after patching.

Affected VersionsENISA

gdal 3.13.0dev-4

Affected Packages

pypi gdal fix: 3.13.0

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 HDF4-EOS (Hierarchical Data Format 4 Earth Observing System) subsystem of GDAL, specifically in the SWapi.c file's SWnentries function. This function processes Scientific Workspace metadata entries, including dimension names. The root cause (CWE-122: Heap-based Buffer Overflow) occurs when the function fails to properly validate or bound-check the DimensionName parameter before using it in string operations. The fix involves correcting an infinite loop condition (while(1) to while(metaptrs[0])) and adding proper bounds checking for quoted versus unquoted string length calculations in the utlstr buffer handling. HDF4 is a legacy scientific data format commonly used in geospatial and climate applications; GDAL is the standard open-source library for reading/writing such formats.

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 07, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
May 07, 2026 - 19:22 NVD
5.3 (MEDIUM) 1.9 (LOW)
CVE Published
May 07, 2026 - 18:45 nvd
LOW 1.9

DescriptionCVE.org

A vulnerability was identified in OSGeo gdal up to 3.13.0dev-4. This issue affects the function SWnentries of the file frmts/hdf4/hdf-eos/SWapi.c. Such manipulation of the argument DimensionName leads to heap-based buffer overflow. The attack must be carried out locally. The exploit is publicly available and might be used. Upgrading to version 3.12.4RC1 is capable of addressing this issue. The name of the patch is 9491e794f1757f08063ea2f7a274ad2994afa636. It is advisable to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Exploit
POC
Public exploit code exists
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-8212 LOW POC
1.9 May 09

Heap-based buffer overflow in GDAL's HDF4-EOS SWSDfldsrch function (frmts/hdf4/hdf-eos/SWapi.c) allows local authenticat

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