CVE-2024-3120CWE-120

Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep

Critical · published April 9, 2024

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

🚨 A stack-buffer overflow in all versions of sngrep since v1.4.1 means a crafty attacker could craft malicious SIP messages and potentially gain control of your system! 🔥 Think of it like an overflowing cup of coffee—when you pour too much into a fixed-size cup, it spills everywhere! In this case, the fixed-size buffers are overflowing, allowing attackers to sneak in their own code instead of just the intended data. This vulnerability could lead to devastating consequences! An attacker could run arbitrary code on the system, or worse, cause a full denial of service, leaving your service unresponsive and users in the dark. This is a recipe for chaos if not addressed immediately!

Put simply

Think of it like an overflowing cup of coffee—when you pour too much into a fixed-size cup, it spills everywhere! In this case, the fixed-size buffers are overflowing, allowing attackers to sneak in their own code instead of just the intended data. The issue arises from inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers within the `sip_validate_packet` and `sip_parse_extra_headers` functions in `src/sip.c`, leading to potential memory corruption.

What to do

This vulnerability could lead to devastating consequences! An attacker could run arbitrary code on the system, or worse, cause a full denial of service, leaving your service unresponsive and users in the dark. This is a recipe for chaos if not addressed immediately! To protect yourself, immediately patch to the latest version of sngrep that addresses this overflow vulnerability. Review your configurations to ensure they're not exposing potential points of exploitation. Don't wait—this needs to be on your priority list! You've got this! Take action now, and you'll have your system secured in no time. 🛡️

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.01853 · 79.0th 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 'Content-Length' and 'Warning' Header Processing in sngrep
    cvelistv5