{"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-11-04T03:30:05.299705972Z","published":"2022-10-17T16:15:00Z","related":["USN-8992-1"],"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"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8992-1"}],"affected":[{"package":{"name":"shapelib","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/shapelib?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-5ubuntu0.1~esm1"}]}],"versions":["1.3.0-5"],"ecosystem_specific":{"binaries":[{"binary_version":"1.3.0-5ubuntu0.1~esm1","binary_name":"libshp2"},{"binary_version":"1.3.0-5ubuntu0.1~esm1","binary_name":"shapelib"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"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:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/shapelib?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1-1ubuntu0.1~esm1"}]}],"versions":["1.4.0-1","1.4.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.4.1-1ubuntu0.1~esm1"},{"binary_name":"shapelib","binary_version":"1.4.1-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"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:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/shapelib?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.0-1ubuntu0.1~esm1"}]}],"versions":["1.5.0-1","1.5.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libshp2","binary_version":"1.5.0-1ubuntu0.1~esm1"},{"binary_name":"shapelib","binary_version":"1.5.0-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"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?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.0-2+deb11u1build0.22.04.1"}]}],"versions":["1.5.0-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1.5.0-2+deb11u1build0.22.04.1","binary_name":"libshp2"},{"binary_name":"shapelib","binary_version":"1.5.0-2+deb11u1build0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-0699.json"}}],"schema_version":"1.9.2","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"}]}