Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlace malformed HDF4 file
-
DeliveryLocal user/service opens file with GDAL
-
ExploitSWSDfldsrch parses FieldList metadata
-
ExecutionBounds check bypassed
-
Persistmemmove writes past heap buffer
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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 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
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 OSGeo GDAL up to 3.13.0dev-4 within the SWnentries function of the HDF4-EOS module allows
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-28948
GHSA-r5m4-5vww-w9f5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB