CVE-2024-3119CWE-120

Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep

Critical · published April 9, 2024

CVSS v3.1
9.0
EPSS
2%
Percentile
78.3
In the wild
Unconfirmed
What it is

🔥 A buffer overflow vulnerability in sngrep could let attackers execute remote code just by sending a well-crafted SIP message! Think of it like a postal worker who keeps cramming oversized packages into a mailbox without checking the size first — eventually, it overflows, and chaos ensues! This is absolutely devastating for your system — an attacker can not only execute arbitrary code, but they can also bring the service to a grinding halt through a denial of service (DoS) attack. With the potential for complete system compromise, every moment you delay could lead to serious consequences.

Put simply

Think of it like a postal worker who keeps cramming oversized packages into a mailbox without checking the size first — eventually, it overflows, and chaos ensues! The issue arises in all versions of sngrep since v0.4.2, where the functions sip_get_callid and sip_get_xcallid use the strncpy function to copy SIP header contents into fixed-size buffers without proper length checks, creating an opportunity for buffer overflow exploits.

What to do

This is absolutely devastating for your system — an attacker can not only execute arbitrary code, but they can also bring the service to a grinding halt through a denial of service (DoS) attack. With the potential for complete system compromise, every moment you delay could lead to serious consequences. Immediate action is required: update sngrep to the latest version where this vulnerability has been patched. Consider auditing your SIP message handling to ensure that appropriate length checks are enforced to protect against similar issues in the future. You've got this! Follow these steps to bolster your security and maintain your hero status in the fight against vulnerabilities! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01800 · 78.3th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2024-04-09T23:55Z
EPSS history
Timeline
  • 09 APR 23:55Z
    Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep
    cvelistv5