CVE-2024-3119 Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep
Remote attackers can execute arbitrary code or cause denial of service in sngrep via crafted SIP headers due to a stack buffer overflow.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-3119?
CVE-2024-3119 is a critical memory corruption vulnerability in irontec sngrep, published on 9 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A buffer overflow vulnerability exists in all versions of sngrep since v0.4.2, due to improper handling of 'Call-ID' and 'X-Call-ID' SIP headers. The functions sip_get_callid and sip_get_xcallid in sip.c use the strncpy function to copy header contents into fixed-size buffers without checking the data length. This flaw allows remote attackers to execute arbitrary code or cause a denial of service (DoS) through specially crafted SIP messages.
Which versions are affected by CVE-2024-3119?
It affects 1 product.
Products include Irontec Sngrep.
How do I fix CVE-2024-3119?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-3119 being exploited?
There is no known exploitation of CVE-2024-3119 in the wild and no public exploit code.
Other vulnerabilities in irontec sngrep
Sources
Also known as DEBIAN-CVE-2024-3119, GHSA-38jr-26cr-gjff, UBUNTU-CVE-2024-3119.