CVE-2024-3120

Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep

Published Apr 9, 2024 CVSS 3.1 · 9 Critical EPSS 1.8% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to sngrep version 1.8.1

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-31722 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.
History
Type Values Removed Values Added
CPEs cpe:2.3:a:irontec:sngrep:1.4.1:*:*:*:*:*:*:*
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Irontec
Irontec sngrep
Weaknesses CWE-787
CPEs cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*
Vendors & Products Irontec
Irontec sngrep
Weaknesses

Sources

Status
PUBLISHED
Assigner
Pentraze
Published
Updated
Feb 21, 2025, 5:07 PM
Reserved
Mar 31, 2024, 5:10 PM
Status
Analyzed
Published
Apr 10, 2024, 12:15 AM
Modified
Jun 17, 2026, 7:43 AM