CVE-2026-8212

OSGeo gdal SWapi.c SWSDfldsrch heap-based overflow

Published May 9, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw resides in the SWSDfldsrch function of OSGeo GDAL, where improper bounds checking causes a heap-based buffer overflow. This overflow can corrupt adjacent memory, potentially leading to arbitrary code execution or application crashes. The weakness maps to CWE-119, CWE-122, and CWE-125.

Affected Systems

OSGeo GDAL versions up to and including 3.13.0dev-4 are vulnerable; upgrading to 3.13.0RC1 or later resolves the issue by applying the commit that fixes the overflow.

Risk and Exploitability

The CVSS score of 4.8 indicates medium severity. An EPSS score of < 1% indicates a low exploitation probability, and the vulnerability is not listed in CISA KEV. Because local access is required and an exploit has already been published, operators with local privileges must act promptly to mitigate the risk of local code execution or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GDAL to 3.13.0RC1 or any later release that includes the security fix.
  • Configure the operating system to run GDAL processes with the least privileges necessary and deny write access to directories containing untrusted data to reduce the chance that an attacker can execute the vulnerable function.
  • If the SWSDfldsrch functionality is not required, disable or remove its usage in application workflows to eliminate the attack surface.

Generated by OpenCVE AI on May 19, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r5m4-5vww-w9f5 OSGeo gdal has a heap-based buffer overflow
History
Type Values Removed Values Added
Weaknesses CWE-125
CPEs cpe:2.3:a:osgeo:gdal:3.13.0:beta1:*:*:*:*:*:*
cpe:2.3:a:osgeo:gdal:3.13.0:beta2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title OSGeo gdal SWapi.c SWSDfldsrch heap-based overflow
First Time appeared Osgeo
Osgeo gdal
Weaknesses CWE-119
CWE-122
CPEs cpe:2.3:a:osgeo:gdal:*:*:*:*:*:*:*:*
Vendors & Products Osgeo
Osgeo gdal
References
Metrics cvssV2_0

{'score': 4.3, 'vector': 'AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': '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'}

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-122

    Heap-based Buffer Overflow

  • CWE-125

    Out-of-bounds Read

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
May 11, 2026, 2:56 PM
Reserved
May 9, 2026, 7:09 AM
Status
Analyzed
Published
May 9, 2026, 11:16 PM
Modified
Jul 24, 2026, 8:10 AM