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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.66%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-17T00:00:00.000Z
- Modified: 2026-06-17T04:21:05.293Z
- Weaknesses: CWE-415, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: fedora

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

(As written by CVE List.)

## Affected

- shapelib: shapelib 1.5.0 and older releases
- osgeo shapelib: up to 1.5.0

## Every score

- CISA-ADP: 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`
- NVD: 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`

## References

- <https://github.com/OSGeo/shapelib/issues/39> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2026/01/msg00023.html>

## Sources

- CVE List: [CVE-2022-0699](https://www.cve.org/CVERecord?id=CVE-2022-0699), CVE Terms of Use, modified 2026-01-24
- NVD: [CVE-2022-0699](https://nvd.nist.gov/vuln/detail/CVE-2022-0699), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0699 · Whole record: https://cve.day/CVE-2022-0699.json · Rebuilt by cve.day 2026-11-25T22:58:15.764Z
