Double Free in Shapelib - CVE-2022-0699

 

Double Free in Shapelib - CVE-2022-0699

Published: August 16, 2023 / Updated: December 26, 2023


Vulnerability identifier: #VU79635
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-0699
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in contrib/shpsort.c. A remote attacker can pass specially crafted data to the application, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Shapelib
Fedora
openEuler
shapelib
shapelib-debugsource
shapelib-devel
shapelib-help
shapelib-debuginfo

How to mitigate CVE-2022-0699

Install updates from vendor's website.

Shapelib - update to 1.6.0
shapelib - addressed in versions 1.3.0-3.el7, 1.5.0-12.el8, 1.5.0-12.el9, 1.5.0-12.fc36
shapelib - update to 1.5.0-2
shapelib-debugsource - update to 1.5.0-2
shapelib-devel - update to 1.5.0-2
shapelib-help - update to 1.5.0-2
shapelib-debuginfo - update to 1.5.0-2

External References

Related Security Bulletins