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.

Severity (CVSS 3.1)9.0Critical
Exploit odds (30 days)1.8%top 21.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12sngrepno fix listedDEBIAN-CVE-2024-3119
Debian:13sngrep1.8.1-1DEBIAN-CVE-2024-3119
Debian:14sngrep1.8.1-1DEBIAN-CVE-2024-3119
Ubuntu:22.04:LTSsngrepno fix listedUBUNTU-CVE-2024-3119
Ubuntu:24.04:LTSsngrepno fix listedUBUNTU-CVE-2024-3119
Ubuntu:25.10sngrepno fix listedUBUNTU-CVE-2024-3119
Ubuntu:26.04:LTSsngrepno fix listedUBUNTU-CVE-2024-3119
Ubuntu:26.10sngrepno fix listedUBUNTU-CVE-2024-3119

Affected products (as reported)

VendorProductVersions
irontec sngrep 0.4.2 – through 1.8.0

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References