Every CVE Search/ Get API key

CVE-2022-0699

A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases. This...

9.8 CriticalFix available

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

1.66%Up 0.8 points since Oct 18, 2022
90%50%10%1%

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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Affected packages
PackageAffectedFixed
shapelib
Azure Linux:2
before 1.5.0-3
1.5.0-3
shapelib
Azure Linux:3
before 1.5.0-3
1.5.0-3
shapelib
Debian:12
before 1.5.0-3
1.5.0-3
shapelib
Debian:13
before 1.5.0-3
1.5.0-3
shapelib
Debian:14
before 1.5.0-3
1.5.0-3
shapelib
Debian:11
before 1.5.0-2+deb11u1, plus listed versions
1.5.0-2
1.5.0-2+deb11u1
shapelib
Mageia:8
before 1.5.0-2.1.mga8
1.5.0-2.1.mga8
shapelib
openEuler:22.03-LTS
before 1.5.0-2.oe2203
1.5.0-2.oe2203
shapelib
Ubuntu:Pro:16.04:LTS
before 1.3.0-5ubuntu0.1~esm1, plus listed versions
1.3.0-5
1.3.0-5ubuntu0.1~esm1
shapelib
Ubuntu: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
Affected packages
PackageAffectedFixed
shapelib
Ubuntu: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
shapelib
Ubuntu: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
shapelib
SUSE:Package Hub 15 SP3
before 1.5.0-bp153.2.3.1
1.5.0-bp153.2.3.1
shapelib
openSUSE:Leap 15.3
before 1.5.0-bp153.2.3.1
1.5.0-bp153.2.3.1
shapelib
openSUSE:Tumbleweed
before 1.5.0-2.1
1.5.0-2.1

History

History
RecordedChangedSources
affected, aliases, referencesOSV
affected, factsOSV
first indexedCVE 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

Show 10 moreShow less
MoveEnter Open