CVE-2024-3120: A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1
CVE-2024-3120 is a critical-severity flaw (CVSS 9.0) affecting sngrep. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-3120?
sngrep: upgrade to 1.8.1. Exact commands for each OS are on this page.
Is CVE-2024-3120 being exploited?
CVE-2024-3120 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-3120 affect?
CVE-2024-3120 affects sngrep. Severity is critical (CVSS 9.0). 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 si
How urgent is CVE-2024-3120?
Priority 56/100. Critical severity; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2024-3119 CRITICAL 9.0 UPGRADE A buffer overflow vulnerability exists in all versions of sngrep since v0.4.2, due to improper handling of 'Ca
- CVE-2024-35434 HIGH 7.5 DOWNGRADE Irontec Sngrep v1.8.1 was discovered to contain a heap buffer overflow via the function rtp_check_packet at /s
- CVE-2023-36192 HIGH 7.8 DOWNGRADE Sngrep v1.6.0 was discovered to contain a heap buffer overflow via the function capture_ws_check_packet at /sr
- CVE-2023-31982 HIGH 7.8 DOWNGRADE Sngrep v1.6.0 was discovered to contain a heap buffer overflow via the function capture_packet_reasm_ip at /sr
- CVE-2023-31981 HIGH 7.8 DOWNGRADE Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/pa