Vulnerability · Published Apr 9, 2024 · Assigned by Pentraze
CVE-2024-3119Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep
Critical 9.0
In plain English
A critical-severity buffer overflow in sngrep from irontec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | sngrep | no fix listed | DEBIAN-CVE-2024-3119 |
| Debian:13 | sngrep | 1.8.1-1 | DEBIAN-CVE-2024-3119 |
| Debian:14 | sngrep | 1.8.1-1 | DEBIAN-CVE-2024-3119 |
| Ubuntu:22.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3119 |
| Ubuntu:24.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3119 |
| Ubuntu:25.10 | sngrep | no fix listed | UBUNTU-CVE-2024-3119 |
| Ubuntu:26.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3119 |
| Ubuntu:26.10 | sngrep | no fix listed | UBUNTU-CVE-2024-3119 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H