CVE-2022-0699: osgeo shapelib Use After Free
Vulnerability summary
CVE-2022-0699 is a critical (CVSS 9.8) Use After Free vulnerability in osgeo shapelib. EPSS estimates a 1.66% chance of exploitation in the next 30 days, higher than 77.4% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 17-10-2022PublishedVulnerability first disclosed.
- 24-01-2026Last modifiedVulnerability information updated.
Description
A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases. This issue may allow an attacker to cause a denial of service or have other unspecified impact via control over malloc.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.66%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.66% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundShapelib
Maturity: poc
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-415Double FreeThe product calls free() twice on the same memory address.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse2 products
- shapelib&distro=openSUSE Leap 15.3< 1.5.0-bp153.2.3.1
- shapelib&distro=openSUSE Tumbleweed< 1.5.0-2.1
Debian1 product
- shapelib< 1.5.0-2+deb11u1 | < 1.5.0-3
Mageia1 product
- shapelib< 1.5.0-2.1.mga8
Osgeo1 product
- shapelib≤ 1.5.0
Suse1 product
- shapelib&distro=SUSE Package Hub 15 SP3< 1.5.0-bp153.2.3.1
Ubuntu1 product
- shapelibAll versions (No fix recorded) | < 1.3.0-5ubuntu0.1~esm1 | < 1.4.1-1ubuntu0.1~esm1 | < 1.5.0-1ubuntu0.1~esm1 | < 1.5.0-2+deb11u1build0.22.04.1
6 vendors · 7 products
References
13 links- github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819fREPORTPatchThird Party Advisory