CVE-2024-3120 Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep
Remote attackers can execute arbitrary code or cause denial of service in sngrep via crafted SIP messages exploiting stack buffer overflows.
- 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-3120?
CVE-2024-3120 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 stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and sip_parse_extra_headers functions within src/sip.c. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages.
Which versions are affected by CVE-2024-3120?
It affects 1 product.
Products include Irontec Sngrep.
How do I fix CVE-2024-3120?
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-3120 being exploited?
There is no known exploitation of CVE-2024-3120 in the wild and no public exploit code.
Other vulnerabilities in irontec sngrep
Sources
Also known as DEBIAN-CVE-2024-3120, GHSA-4p8q-p8qc-486x, UBUNTU-CVE-2024-3120.