{"answers":{"affected":"4 open source packages ship an affected version, including gdal and GDAL. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-8212 exists.","fix":"Upgrade gdal to a fixed version for your release line: 3.13.0 or 3.13.0RC1.","what":"CVE-2026-8212 is a medium-severity memory corruption vulnerability in OSGeo gdal, published on 9 May 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-8212 and fix it if it is affected.\n\nWhat it is: CVE-2026-8212 is a medium-severity memory corruption vulnerability in OSGeo gdal, published on 9 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-8212 exists.\n\nAffected packages and fixed versions:\n- gdal (Bitnami): affected all versions; fixed in 3.13.0\n- gdal (PyPI): affected all versions; no fix listed\n- gdal (PyPI): affected all versions; fixed in 3.13.0RC1\n- GDAL (PyPI): affected all versions; fixed in 3.13.0RC1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-8212/ (Markdown: https://insights.sbomify.com/CVE-2026-8212/index.md)","id":"CVE-2026-8212","markdown":"https://insights.sbomify.com/CVE-2026-8212/index.md","name":"CVE-2026-8212","record":{"aliases":["AZL-86402","BIT-gdal-2026-8212","DEBIAN-CVE-2026-8212","ECHO-5600-e26e-faa5","GHSA-r5m4-5vww-w9f5","JLSEC-2026-771","PYSEC-2026-4","UBUNTU-CVE-2026-8212"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GDAL geospatial library","requires_auth":"low_privilege","summary":"A heap-based buffer overflow in GDAL's SWSDfldsrch function allows local attackers to execute arbitrary code or cause denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"gdal","vendor":"osgeo"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"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.","ecosystems":["Bitnami","PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"OSGeo gdal SWapi.c SWSDfldsrch heap-based overflow","id":"CVE-2026-8212","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":4,"n_references":8,"next":{"headline":"OSGeo gdal Grid File GDapi.c GDSDfldsrch heap-based overflow","id":"CVE-2026-8213"},"packages":[{"ecosystem":"Bitnami","fixed":["3.13.0"],"introduced":["0"],"last_affected":[],"package":"gdal","purl":"pkg:bitnami/gdal","source":"BIT-gdal-2026-8212"},{"ecosystem":"PyPI","fixed":["3.13.0RC1"],"introduced":["0"],"last_affected":[],"package":"GDAL","purl":null,"source":"GHSA-r5m4-5vww-w9f5"},{"ecosystem":"PyPI","fixed":[],"introduced":[],"last_affected":[],"package":"gdal","purl":"pkg:pypi/gdal","source":"PYSEC-2026-4"},{"ecosystem":"PyPI","fixed":["3.13.0RC1"],"introduced":["0"],"last_affected":[],"package":"gdal","purl":"pkg:pypi/gdal","source":"GHSA-r5m4-5vww-w9f5"}],"prev":{"headline":"codelibs Fess JSP File AdminDesignAction.java update code injection","id":"CVE-2026-8211"},"products":["gdal"],"published":"2026-05-09","related":[{"cvss_score":7.8,"headline":"Memory corruption in n/a","id":"CVE-2019-25050","kev_date_added":null,"published":"2021-07-20"},{"cvss_score":7.4,"headline":"GDAL: scanForGeometryContainers in the netCDF driver allows code execution via a stack-based buffer overflow","id":"CVE-2026-49014","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5.5,"headline":"Memory corruption in n/a","id":"CVE-2025-29480","kev_date_added":null,"published":"2025-04-07"},{"cvss_score":4.8,"headline":"OSGeo gdal Grid File GDapi.c GDSDfldsrch heap-based overflow","id":"CVE-2026-8213","kev_date_added":null,"published":"2026-05-09"},{"cvss_score":4.8,"headline":"OSGeo gdal HDF-EOS Grid File SWapi.c memmove out-of-bounds","id":"CVE-2026-8084","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":4.8,"headline":"OSGeo gdal SWapi.c SWnentries heap-based overflow","id":"CVE-2026-8086","kev_date_added":null,"published":"2026-05-07"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-11","vendors":["OSGeo"]},"summary":"A heap-based buffer overflow in GDAL's SWSDfldsrch function allows local attackers to execute arbitrary code or cause denial of service.","url":"https://insights.sbomify.com/CVE-2026-8212/"}