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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sngrep | 1.8.1-1 | — |
| Debian 13 | sngrep | 1.8.1-1 | — |
| Debian 12 | sngrep | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | sngrep | No fix yet | — |
| Ubuntu 18.04 LTS | sngrep | No fix yet | — |
| Ubuntu 16.04 LTS | sngrep | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | sngrep | 1.8.1-bp155.2.3.1 | openSUSE-SU-2024:0106-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- openSUSE-SU-2024:0106-1 Security update for sngrep SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13856-1 sngrep-1.8.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026