CVE-2024-3119

Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep

Published Apr 9, 2024 CVSS 3.1 · 9 Critical EPSS 1.8% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to sngrep version 1.8.1

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-31721 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.
History
Type Values Removed Values Added
First Time appeared Irontec
Irontec sngrep
Weaknesses CWE-787
CPEs cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*
Vendors & Products Irontec
Irontec sngrep
Weaknesses

Sources

Status
PUBLISHED
Assigner
Pentraze
Published
Updated
Aug 8, 2024, 9:20 PM
Reserved
Mar 31, 2024, 5:10 PM
Status
Analyzed
Published
Apr 10, 2024, 12:15 AM
Modified
Jun 17, 2026, 7:43 AM