# CVE-2022-0699: libshp2: A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases

CVE-2022-0699 is fixed in 2 products on 1 platform, first by libshp2 1.4.1-1ubuntu0.1~esm1, released October 17, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-0699
- Priority: High
- CVSS: 9.8 (Medium)
- EPSS: 0.0166
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 17, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libshp2 Ubuntu 18.04.6 LTS (bionic) | 1.4.1-1ubuntu0.1~esm1 | [libshp2 1.4.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libshp2-1.4.1-1ubuntu0.1-esm1.md) | Oct 17, 2022 |
| Linux | libshp2 Ubuntu 20.04 LTS (focal) | 1.5.0-1ubuntu0.1~esm1 | [libshp2 1.5.0-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libshp2-1.5.0-1ubuntu0.1-esm1.md) | Oct 17, 2022 |
| Linux | libshp2 Ubuntu 22.04.1 LTS (jammy) | 1.5.0-2+deb11u1build0.22.04.1 | [libshp2 1.5.0-2+deb11u1build0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libshp2-1.5.0-2-deb11u1build0.22.04.1.md) | Oct 17, 2022 |
| Linux | shapelib Debian 11.6 (bullseye) | 1.5.0-2+deb11u1 | [DLA-4451-1](https://patchblox.com/security/data/fix/linux/dla-4451-1.md) | Jan 24, 2026 |
| Linux | shapelib Debian 12.15 (bookworm) | 1.5.0-3 | [DEBIAN-CVE-2022-0699](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0699.md) | Oct 17, 2022 |
| Linux | shapelib Debian 13.5 (trixie) | 1.5.0-3 | [DEBIAN-CVE-2022-0699](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0699.md) | Oct 17, 2022 |
| Linux | shapelib Debian 14 | 1.5.0-3 | [DEBIAN-CVE-2022-0699](https://patchblox.com/security/data/fix/linux/debian-cve-2022-0699.md) | Oct 17, 2022 |
| Linux | shapelib Ubuntu 18.04.6 LTS (bionic) | 1.4.1-1ubuntu0.1~esm1 | [shapelib 1.4.1-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-shapelib-1.4.1-1ubuntu0.1-esm1.md) | Oct 17, 2022 |
| Linux | shapelib Ubuntu 20.04 LTS (focal) | 1.5.0-1ubuntu0.1~esm1 | [shapelib 1.5.0-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-shapelib-1.5.0-1ubuntu0.1-esm1.md) | Oct 17, 2022 |
| Linux | shapelib Ubuntu 22.04.1 LTS (jammy) | 1.5.0-2+deb11u1build0.22.04.1 | [shapelib 1.5.0-2+deb11u1build0.22.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-shapelib-1.5.0-2-deb11u1build0.22.04.1.md) | Oct 17, 2022 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
