Skip to content
OpenAdvisories
Critical · 9.0 CVE-2024-3119 EUVD-2024-31721GHSA-38jr-26cr-gjff

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

Published Apr 9, 2024 · Updated Aug 8, 2024 · Assigned by Pentraze

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 products

VendorProductAffectedFixed
irontec sngrep 0.4.2 – ≤ 1.8.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 sngrep 1.8.1-1 —
Debian 13 sngrep 1.8.1-1 —
Debian 12 sngrep No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 sngrep No fix yet —
Ubuntu 26.04 LTS sngrep No fix yet —
Ubuntu 25.10 sngrep No fix yet —
Ubuntu 24.04 LTS sngrep No fix yet —
Ubuntu 22.04 LTS sngrep No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS sngrep No fix yet —
Ubuntu 18.04 LTS sngrep No fix yet —
Ubuntu 16.04 LTS sngrep No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 sngrep 1.8.1-bp155.2.3.1 openSUSE-SU-2024:0106-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed sngrep 1.8.1-1.1 openSUSE-SU-2024:13856-1
openSUSE Leap 15.5 sngrep 1.8.1-bp155.2.3.1 openSUSE-SU-2024:0106-1

Advisories 2

References