{"id":"UBUNTU-CVE-2022-0699","details":"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.","modified":"2026-04-22T13:12:48.651663Z","published":"2022-10-17T16:15:00Z","upstream":["CVE-2022-0699"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-0699"},{"type":"REPORT","url":"https://github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f"},{"type":"REPORT","url":"https://github.com/OSGeo/shapelib/issues/39"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-0699"}],"affected":[{"package":{"name":"shapelib","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/shapelib@1.3.0-5?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.0-5"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.3.0-5"},{"binary_name":"shapelib","binary_version":"1.3.0-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0699.json"}},{"package":{"name":"shapelib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/shapelib@1.4.1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.0-1","1.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.4.1-1"},{"binary_name":"shapelib","binary_version":"1.4.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0699.json"}},{"package":{"name":"shapelib","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/shapelib@1.5.0-1build1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.0-1","1.5.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.5.0-1build1"},{"binary_name":"shapelib","binary_version":"1.5.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0699.json"}},{"package":{"name":"shapelib","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/shapelib@1.5.0-2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.5.0-2"},{"binary_name":"shapelib","binary_version":"1.5.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0699.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}