Skip to main content

OSGeo shapelib CVE-2026-133217

| EUVDEUVD-2026-130759 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-11-19 VulDB GHSA-9c8v-hmfw-mr6f
4.8
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local access to shapelib-based application
  2. Delivery
    Supply crafted .dbf with false field count
  3. Exploit
    DBFOpen accepts malformed header as one field
  4. Execution
    DBFCloneEmpty reopen of clone returns NULL
  5. Impact
    Null pointer dereference crashes process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires that an application linking shapelib (≤1.6.3) call DBFCloneEmpty() on a DBFHandle opened from an attacker-supplied .dbf file whose header length claims more field descriptors than are physically present - specifically the second descriptor replaced by the 0x0D header terminator (as shown in the fix's regression test). DBFOpen accepts such a file as having one field; DBFCloneEmpty then copies the original header length but writes only one descriptor, so the internal re-open of the clone fails, DBFCreate returns NULL, and the unchecked pointer is dereferenced. Limiting factors: the vector is local (AV:L) and needs low-level privileges (PR:L) to place the file; impact is limited to a denial of service (process crash) with no code execution or data exposure; and the application must actually use the DBFCloneEmpty API path, which is not exercised by all shapelib consumers.

Impact

This is a genuinely low-to-moderate priority issue, consistent with its 4.8 MEDIUM rating and the 'this_month' decision label (not act_now/emergency). The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) describes a local attack by a low-privileged user with no special attack requirements, and the impact is confined to availability (VA:L) with no confidentiality or integrity effect - i.e. a process crash, not code execution. The underlying flaw is a classic CWE-476 null pointer dereference: DBFCloneEmpty() failed to check the return of its internal DBFCreate before use. No CISA KEV listing and no EPSS score are provided in the input, so there is no signal of automated or widespread exploitation; the 'this_month' label aligns with a real-but-non-urgent defect. The one caveat is that exploitability depends entirely on whether a consuming application actually invokes DBFCloneEmpty on untrusted input - DBFCloneEmpty is a less-commonly-called API than DBFOpen, which further narrows real-world exposure beyond what the raw score implies.

Exploit ScenarioDerived

A local user (or a process acting on local user-supplied data) feeds a crafted .dbf file to an application that uses shapelib and calls DBFCloneEmpty(). The malformed header declares two field descriptors but places the 0x0D header terminator where the second descriptor should be; DBFOpen accepts it as one field, but the clone copies the original header length while writing only one descriptor, so re-opening the clone fails and returns NULL, which is then dereferenced, crashing the process. A public reproducer exists as the regression test added in the fixing PR #197, though it is not packaged as a standalone weaponized exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

Denial of service in OSGeo shapelib through 1.6.3: an unchecked NULL returned by DBFCreate inside DBFCloneEmpty (dbfopen.c) is dereferenced, crashing any application that clones the schema of an attacker-supplied .dbf file. The failure requires a local user to supply a crafted .dbf whose header length claims more field descriptors than the file physically contains, and requires the consuming application to actually call the DBFCloneEmpty API path; impact is limited to a process crash with no code execution or data exposure. An upstream fix exists as commit f79050a900d2a05529501b2b714b8f89067db071 (PR #197); no confirmed working exploit code and no CISA KEV entry were identified at time of analysis, and the issue is rated low-to-moderate priority (4.8 MEDIUM, 'this_month').

RemediationAI

Apply the upstream fix: commit f79050a900d2a05529501b2b714b8f89067db071, delivered via pull request https://github.com/OSGeo/shapelib/pull/197, which adds a NULL check after the internal create step in DBFCloneEmpty and returns SHPLIB_NULLPTR instead of dereferencing the failed handle; verify against https://github.com/OSGeo/shapelib/ which released tag first carries it, as a tagged fixed version is not confirmed in the available data. Distributors and downstream consumers that vendor shapelib should backport the four-line guard or rebase onto a shapelib snapshot containing the commit. If upgrading is not immediately possible, the practical compensating control is to avoid calling DBFCloneEmpty on untrusted input, or to validate that the .dbf header length at offset 8 is consistent with the physical file size and that each claimed field descriptor slot is not the 0x0D terminator before cloning - the trade-off is that this rejects some technically openable but malformed files, and callers that already accept arbitrary user-supplied shapefiles may see legitimate-but-sloppy datasets refused. Because the trigger is local (a crafted file must be placed where the application will open it) and only causes a crash of the consuming process, restricting which users and directories can supply .dbf inputs reduces exposure but does not fix the defect.

Affected VersionsENISA

shapelib 1.6.1
shapelib 1.6.2
shapelib 1.6.3
shapelib 1.6.0

Affected Packages

euvd shapelib no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

shapelib is a C library (dbfopen.c, shpopen.c) for reading and writing ESRI Shapefile components, including the dBASE .dbf attribute table; it is embedded in many GIS tools and readers. The flaw is CWE-476 (NULL pointer dereference) in DBFCloneEmpty, which copies the schema of an existing DBFHandle into a new empty DBF. DBFOpen tolerates a .dbf whose header length claims two field descriptors while the second descriptor slot contains the 0x0D header terminator, reporting one field. DBFCloneEmpty then copies the original header length but writes only the one descriptor it saw, so its internal re-open of the freshly created clone fails, DBFCreate returns NULL, and the caller dereferences that unchecked pointer. The upstream patch simply adds a NULL check on the value returned by the create step and returns SHPLIB_NULLPTR, and the accompanying regression test (CloneEmptyReopenFails) encodes exactly the malformed-header scenario described above. The trigger is therefore a malformed header-length/terminator inconsistency rather than a general parsing flaw, and only code paths that call DBFCloneEmpty are exposed.

Know when Shapelib 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

Vendor (VulDB) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.3 LOW

Local processing of an attacker-supplied .dbf by a low-privileged user (AV:L/PR:L), low complexity, and a null dereference that only crashes the process, so C:N/I:N and A:L.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A weakness has been identified in OSGeo shapelib up to 1.6.3. This vulnerability affects the function DBFCloneEmpty of the file dbfopen.c. This manipulation causes null pointer dereference. It is possible to launch the attack on the local host. Patch name: f79050a900d2a05529501b2b714b8f89067db071. It is recommended to apply a patch to fix this issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
geospatial shapefile C library embedded in GIS tools, not general-purpose software
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy