CVE-2026-49014: GDAL ScanForGeometryContainers Vulnerability
HIGHCVE-2026-49014 is a HIGH (CVSS 7.4) scanforgeometrycontainers vulnerability (CWE-121: Stack-based Buffer Overflow) affecting GDAL libraries in the PyPI ecosystem. The issue involves scanforgeometrycontainers in the netcdf driver allows code execution via a stack-based buffer overflow. Remediation is available by upgrading affected packages to version 3.13.1.
CVE-2026-49014 at a Glance
Security Impact
CVSS: 7.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-49014
To remediate this vulnerability, upgrade all affected GDAL dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install gdal>=3.13.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show gdal
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-49014, inspect your installed packages using pip:
pip show gdal
Analyze the terminal output to locate any version of GDAL in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.13.1), your application is affected.
Note: The pip show gdal command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-121: Stack-based Buffer Overflow, where a stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). In GDAL, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-49014 Affected GDAL Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gdal
|
PyPI |
≥ 3.1.0
< 3.13.1
|
3.13.1
|
References
Frequently Asked Questions
What is CVE-2026-49014?
Which GDAL versions are affected?
What version fixes CVE-2026-49014?
Is gdal affected?
What is the CVSS score of CVE-2026-49014?
What CWE is associated with CVE-2026-49014?
How can I check PyPI dependencies for CVE-2026-49014?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wphc-7cm7-8mf7",
"modified" : "2026-07-01T18:07:07Z",
"published" : "2026-05-27T03:30:31Z",
"aliases" : [ "CVE-2026-49014" ],
"summary" : "GDAL: scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow",
"details" : "In GDAL 3.1.0 through 3.13.0, scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow. It reads a geometry attribute into a fixed-size stack buffer without validating the attribute length. The attacker embeds the exploit as an oversized geometry attribute in a crafted NetCDF file. This achieves arbitrary code execution on the server running GDAL. This is in frmts/netcdf/netcdfsg.cpp.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "gdal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.13.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-49014"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/issues/14594"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/pull/14598"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/commit/f5ebabc1042f3c59b24e7c8ad45dda242d127f09"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/OSGeo/gdal"
}, {
"type" : "WEB",
"url" : "https://github.com/OSGeo/gdal/blob/v3.13.1/NEWS.md"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/gdal/PYSEC-2026-193.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-121" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-01T18:07:07Z",
"nvd_published_at" : "2026-05-27T02:16:34Z"
}
}