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.

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

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

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

Affected products (as reported)

VendorProductVersions
irontec sngrep 1.4.1 – 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