CVE-2022-31003CWE-122CWE-787

Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

Critical · published May 31, 2022

CVSS v3.1
9.1
EPSS
4%
Percentile
90.7
In the wild
Unconfirmed
What it is

🚨 Woah, an evil SDP message can take down your FreeSWITCH with a single sneaky send! Think of Sofia-SIP as a busy restaurant where every guest (message) gets a table (memory) to enjoy their meal. If an unruly guest sends an inappropriate order (malicious SDP), they can cause chaos and crash the entire dining experience (system). This vulnerability could lead to a catastrophic crash of your FreeSWITCH system or, even worse, allow an attacker to execute malicious code remotely! Just imagine the havoc of an unexpected guest manipulating the menu and serving up trouble — absolutely devastating!

Put simply

Think of Sofia-SIP as a busy restaurant where every guest (message) gets a table (memory) to enjoy their meal. If an unruly guest sends an inappropriate order (malicious SDP), they can cause chaos and crash the entire dining experience (system). The flaw arises from an out-of-bounds write when parsing SDP messages, specifically when `rest = record + 2` accesses memory past its intended limit. This means an attacker can exploit this vulnerability to cause a crash or potentially execute arbitrary code.

What to do

This vulnerability could lead to a catastrophic crash of your FreeSWITCH system or, even worse, allow an attacker to execute malicious code remotely! Just imagine the havoc of an unexpected guest manipulating the menu and serving up trouble — absolutely devastating! Patch to Sofia-SIP version 1.13.8 immediately to safeguard your system. As a best practice, review your message parsing procedures and consider implementing additional security measures to mitigate similar risks in the future. You’re on the path to becoming a security hero! Fix this vulnerability, and your systems will be much safer in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.04107 · 90.7th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-787 · Out-of-bounds Write
Published
2022-05-31T00:00Z
EPSS history
Timeline
  • 31 MAY 00:00Z
    Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP
    cvelistv5