Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain or create GDAL access
-
DeliveryCraft malicious HDF4 file with oversized DimensionName
-
ExploitPlace file in GDAL processing path
-
InstallGDAL opens file with HDF4 backend
-
C2SWnentries function processes dimension metadata
-
ExecuteBuffer overflow triggered in heap memory
-
ImpactPotential 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
GDAL through 3.0.1 has a poolDestroy double free in OGRExpatRealloc in ogr/ogr_expat.cpp when the 10MB threshold is exce
Buffer Overflow vulnerability in gdal 3.10.2 allows a local attacker to cause a denial of service via the OGRSpatialRefe
A buffer overflow vulnerability in GDAL versions before 3.11.0 within the zlib infback9 module allows remote attackers t
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
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
Heap-based buffer overflow in OSGeo GDAL up to version 3.13.0dev-4 allows local authenticated attackers to corrupt memor
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
Heap-based buffer overflow in OSGeo GDAL's Grid File Handler (GDSDfldsrch function in frmts/hdf4/hdf-eos/GDapi.c) affect
Heap-based buffer overflow in GDAL's HDF4-EOS SWSDfldsrch function (frmts/hdf4/hdf-eos/SWapi.c) allows local authenticat
Out-of-bounds read in OSGeo GDAL up to version 3.13.0dev-4 affects the GDfieldinfo function in HDF-EOS module when proce
EUVD-2026-28418
GHSA-72pg-5w29-wjx6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB