CVE-2022-0699
A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases. This...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2022-0699- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-416, CWE-415
- Updated
- 2026-11-02
CVE List
9.8
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.
- Record
CVE-2022-0699- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
EUVDEUVD-2022-15776
9.8
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.
- Record
EUVD-2022-15776- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-j5p4-42cc-2j44
9.8
A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases. This...
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.
- Record
GHSA-j5p4-42cc-2j44- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-415, CWE-416
- Updated
- 2026-11-02
OSVAZL-28599
9.8
CVE-2022-0699 affecting package shapelib for versions less than 1.5.0-3
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.
- Record
AZL-28599- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-37034
9.8
CVE-2022-0699 affecting package shapelib for versions less than 1.5.0-3
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.
- Record
AZL-37034- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
Show 8 moreShow less
OSV
9.8
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.
- Record
CVE-2022-0699- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-0699
9.8
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.
- Record
DEBIAN-CVE-2022-0699- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVUBUNTU-CVE-2022-0699
9.8
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.
- Record
UBUNTU-CVE-2022-0699- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-04
OSVMGASA-2022-0096 No score
Updated shapelib packages fix security vulnerability
Double-free vulnerability in contrib/shpsort.c. (CVE-2022-0699)
- Record
MGASA-2022-0096- Updated
- 2026-11-02
OSVOESA-2022-1858 No score
shapelib security update
The Shapefile C Library provides the ability to write simple C programs for reading, writing and updating (to a limited extent) ESRI Shapefiles, and the associated attribute file (.dbf). This package also contains various utility programs for using shapelib.
Security Fix(es):
** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.(CVE-2022-0699)
- Record
OESA-2022-1858- Updated
- 2026-11-02
OSVopenSUSE-SU-2022:0068-1 No score
Security update for shapelib
This update for shapelib fixes the following issues:
- CVE-2022-0699: Fixed a Double-free vulnerability in contrib/shpsort.c
- Record
openSUSE-SU-2022:0068-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11863-1 No score
libshp-devel-1.5.0-2.1 on GA media
These are all security issues fixed in the libshp-devel-1.5.0-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11863-1- Updated
- 2026-11-02
OSVUSN-8992-1 No score
shapelib vulnerability
It was discovered that the shpsort utility in Shapelib incorrectly handled certain inputs, leading to a double free. An attacker could possibly use this issue to cause a denial of service, or possibly execute arbitrary code.
- Record
USN-8992-1- Updated
- 2026-11-04
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
shapelibAzure Linux:2 |
before 1.5.0-3 | 1.5.0-3 |
shapelibAzure Linux:3 |
before 1.5.0-3 | 1.5.0-3 |
shapelibDebian:12 |
before 1.5.0-3 | 1.5.0-3 |
shapelibDebian:13 |
before 1.5.0-3 | 1.5.0-3 |
shapelibDebian:14 |
before 1.5.0-3 | 1.5.0-3 |
shapelibDebian:11 |
before 1.5.0-2+deb11u1, plus listed versions 1.5.0-2 |
1.5.0-2+deb11u1 |
shapelibMageia:8 |
before 1.5.0-2.1.mga8 | 1.5.0-2.1.mga8 |
shapelibopenEuler:22.03-LTS |
before 1.5.0-2.oe2203 | 1.5.0-2.oe2203 |
shapelibUbuntu:Pro:16.04:LTS |
before 1.3.0-5ubuntu0.1~esm1, plus listed versions 1.3.0-5 |
1.3.0-5ubuntu0.1~esm1 |
shapelibUbuntu:Pro:18.04:LTS |
before 1.4.1-1ubuntu0.1~esm1, plus listed versions 1.4.0-11.4.1-1 |
1.4.1-1ubuntu0.1~esm1 |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
shapelibUbuntu:Pro:20.04:LTS |
before 1.5.0-1ubuntu0.1~esm1, plus listed versions 1.5.0-11.5.0-1build1 |
1.5.0-1ubuntu0.1~esm1 |
shapelibUbuntu:22.04:LTS |
before 1.5.0-2+deb11u1build0.22.04.1, plus listed versions 1.5.0-2 |
1.5.0-2+deb11u1build0.22.04.1 |
shapelibSUSE:Package Hub 15 SP3 |
before 1.5.0-bp153.2.3.1 | 1.5.0-bp153.2.3.1 |
shapelibopenSUSE:Leap 15.3 |
before 1.5.0-bp153.2.3.1 | 1.5.0-bp153.2.3.1 |
shapelibopenSUSE:Tumbleweed |
before 1.5.0-2.1 | 1.5.0-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-0699 is a critical vulnerability (CVSS 9.8) in Osgeo Shapelib, published March 2, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.66%, the 76th percentile. Fixed in shapelib 1.5.0-3.
References
github.com/OSGeo/shapelib/issues/39
github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f
lists.debian.org/debian-lts-announce/2026/01/msg00023.html
nvd.nist.gov/vuln/detail/CVE-2022-0699
github.com/advisories/GHSA-j5p4-42cc-2j44
github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0699.json
Show 10 moreShow less
security-tracker.debian.org/tracker/CVE-2022-0699
advisories.mageia.org/MGASA-2022-0096.html
bugs.mageia.org/show_bug.cgi?id=30114
lists.opensuse.org/archives/list/[email protected]/thread/6B3VSER4WPCPULJGLJVI75SE2NKX4RQH
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1858
ubuntu.com/security/CVE-2022-0699
cve.org/CVERecord?id=CVE-2022-0699
ubuntu.com/security/notices/USN-8992-1
bugzilla.suse.com/1196236
suse.com/security/cve/CVE-2022-0699