CVE-2022-0699CWE-416

A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases

Critical · published October 17, 2022

CVSS v3.1
9.8
EPSS
2%
Percentile
76.5
In the wild
Unconfirmed
What it is

🔥 A double-free bug in shapelib could let an attacker crash your server with a single crafty request! Think of this vulnerability like a bartender who accidentally serves the same drink to two customers at once, leading to chaos behind the counter — it could mean a total loss of service while the bartender tries to manage the mess! An attacker could leverage this double-free condition to trigger a denial of service, potentially crippling your application. This means users could be left out in the cold, unable to access services they rely on. The consequences could be absolutely devastating!

Put simply

Think of this vulnerability like a bartender who accidentally serves the same drink to two customers at once, leading to chaos behind the counter — it could mean a total loss of service while the bartender tries to manage the mess! This vulnerability arises from a flaw in the memory management of shapelib, allowing an attacker to manipulate memory allocation through control over 'malloc', leading to unexpected behavior or service crashes.

What to do

An attacker could leverage this double-free condition to trigger a denial of service, potentially crippling your application. This means users could be left out in the cold, unable to access services they rely on. The consequences could be absolutely devastating! Upgrade shapelib to version 1.5.1 or later immediately to patch this vulnerability. Conduct an audit of your usage of this library to ensure no other issues are lurking around. Don't forget to test your application after updating! You've got this! Follow these steps, and your systems will be fortified in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01660 · 76.5th percentile
Weakness
CWE-416 · Use After Free
Published
2022-10-17T00:00Z
EPSS history
Timeline
  • 17 OCT 00:00Z
    A double-free condition exists in contrib/shpsort.c of shapelib 1.5.0 and older releases
    cvelistv5