Vulnerability · Published Apr 9, 2024 · Assigned by Pentraze
CVE-2024-3120Stack-Buffer Overflow in 'Content-Length' and 'Warning' 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 stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is due to inadequate bounds checking when copying 'Content-Length' and 'Warning' headers into fixed-size buffers in the sip_validate_packet and sip_parse_extra_headers functions within src/sip.c. This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | sngrep | no fix listed | DEBIAN-CVE-2024-3120 |
| Debian:13 | sngrep | 1.8.1-1 | DEBIAN-CVE-2024-3120 |
| Debian:14 | sngrep | 1.8.1-1 | DEBIAN-CVE-2024-3120 |
| Ubuntu:22.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3120 |
| Ubuntu:24.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3120 |
| Ubuntu:25.10 | sngrep | no fix listed | UBUNTU-CVE-2024-3120 |
| Ubuntu:26.04:LTS | sngrep | no fix listed | UBUNTU-CVE-2024-3120 |
| Ubuntu:26.10 | sngrep | no fix listed | UBUNTU-CVE-2024-3120 |
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