CVE-2022-0699: osgeo shapelib Use After Free
CVSS: 9.8v3.1CriticalModified
AliasesMGASA-2022-0096openSUSE-SU-2022:0068-1UBUNTU-CVE-2022-0699DEBIAN-CVE-2022-0699DLA-4451-1openSUSE-SU-2024:11863-1
Published 17-10-2022Last modified 24-01-2026
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 76.3% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)EPSS score
1.66%
0%100%
Low · +0.34 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
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 versionCritical 9.8Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 4 agree
- 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
76%
Versus all other CVEs
30-day change
+0.34 pp
From 1.32% on 19-09-2026
19-09-202619-10-2026
EPSS score1.66%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
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
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)
6 vendors · 7 products
References
12 links- github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819fREPORTPatchThird Party Advisory