Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted SIP packet with oversized header
-
Deliverysngrep captures packet from network interface
-
Exploitsprintf copies header without length limit
-
Execution255-byte stack buffer overflows
-
Persistoverwrite return address on stack
-
Impactexecute arbitrary code as sngrep process user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | sngrep must be actively running and capturing SIP traffic on a network interface. The attacker must be able to route SIP packets onto the monitored network segment or inject them into the SIP traffic stream that sngrep is observing - for example, via network adjacency, a shared SIP proxy or PBX, or a man-in-the-middle position on the capture path. No authentication to sngrep is required since it is a passive capture tool with no authentication layer. Any of the following SIP header fields exceeding 255 bytes triggers the overflow: Call-ID, X-Call-ID, Reason, From, To, Contact, or the request/response line. Exploitation is bounded to environments where sngrep is deployed and actively in use; hosts that have not installed sngrep are unaffected. |
| Impact | The CVSS 4.0 score of 9.3 accurately reflects the low exploitation barrier: the attack requires no authentication, no user interaction, and no unusual configuration - only that sngrep be running and monitoring a network interface reachable by the attacker. The full C:H/I:H/VA:H impact ratings are plausible given that a stack buffer overflow with attacker-controlled overflow content can redirect execution to arbitrary shellcode. No EPSS score is provided in the input, and KEV status is absent, so no confirmed active exploitation is known. However, the public fix commit exposes the exact vulnerable code paths and the boundary condition, lowering the bar for exploit development significantly. The primary real-world constraint is deployment context: sngrep is a passive capture tool, so exploitation requires the attacker to be able to inject SIP packets into the traffic stream that sngrep is monitoring - either via network adjacency, a shared SIP proxy, or traffic injection. This is a realistic threat in any multi-tenant VoIP environment, carrier infrastructure, or enterprise telephony deployment. Operators running sngrep in production capture environments should treat this as high priority given the combination of low exploit complexity and high impact, even in the absence of confirmed in-the-wild exploitation. |
| Exploit ScenarioDerived | An attacker sharing a network segment with a running sngrep instance sends a crafted SIP INVITE packet containing a Call-ID header padded to several hundred bytes. When sngrep captures and parses the packet, |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 12, 2026
Stack buffer overflows in sngrep through 1.8.4 allow unauthenticated remote attackers to crash or execute arbitrary code on any host running sngrep while actively capturing SIP traffic. The flaws reside in call_get_attribute() (src/sip_call.c) and msg_get_attribute() (src/sip_msg.c), where unbounded sprintf calls copy SIP header values - including Call-ID, X-Call-ID, Reason, From, To, Contact, and request/response strings - into a fixed 255-byte stack buffer without length enforcement. No public exploit code or CISA KEV listing has been identified at time of analysis, but the upstream fix commit is publicly accessible, making independent weaponization feasible.
RemediationAI
Apply the upstream fix from commit 1ff74ee3ab5ff280e8ba976aa8c744dca57eb35b (https://github.com/irontec/sngrep/commit/1ff74ee3ab5ff280e8ba976aa8c744dca57eb35b), which patches all affected sprintf calls in both src/sip_call.c and src/sip_msg.c to enforce truncation at SIP_ATTR_MAXLEN - 1 bytes. No tagged release version incorporating this fix has been confirmed in the provided references; administrators should build from the patched commit or monitor the sngrep GitHub repository for an official post-1.8.4 release. As an interim compensating control, restrict SIP traffic to the monitored interface using firewall or ACL rules so that only packets from trusted SIP infrastructure (known proxies, PBXes, or endpoints) reach the capture interface, reducing the pool of attackers who can inject malicious headers. Additionally, running sngrep under a restricted user account with a seccomp profile or within a container limits the impact of successful exploitation to the sngrep process context rather than the full host. Consult the VulnCheck advisory for any updated patch guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
sngrep (CPE: cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*) is an open-source terminal-based SIP packet capture and call-flow visualization tool by Irontec, used widely by VoIP engineers to debug real-time SIP sessions. The vulnerability class is CWE-121 (Stack-based Buffer Overflow), occurring in two attribute-formatting functions that format parsed SIP header values for display. In both call_get_attribute() in src/sip_call.c and msg_get_attribute() in src/sip_msg.c, the code uses sprintf(value, "%s", src) without bounds checking, where value is a stack-allocated buffer constrained to SIP_ATTR_MAXLEN (255 bytes). Any SIP header field - Call-ID, X-Call-ID, Reason, From, To, Contact, or the request/response line - exceeding 255 bytes causes stack corruption when sngrep processes the packet for display. The commit diff at 1ff74ee3ab5ff280e8ba976aa8c744dca57eb35b confirms the fix by replacing all affected sprintf calls with bounded sprintf(value, "%.*s", SIP_ATTR_MAXLEN - 1, src), enforcing truncation before the overflow occurs.
Know when Sngrep gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-exploitable via crafted SIP packets with no authentication or user interaction; scope unchanged as sngrep is a single userspace process with no privilege boundary crossed.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
sngrep through 1.8.4 contains stack buffer overflow vulnerabilities in SIP attribute formatting routines when header values exceed the 255-byte buffer limit. Attackers can craft malicious SIP packets with oversized Call-ID, X-Call-ID, or other header fields to overflow stack buffers and cause crashes or execute arbitrary code during packet parsing and rendering.
Executive ViewAI
Stack buffer overflows in sngrep 1.8.4 and earlier enable unauthenticated remote attackers to execute arbitrary code on servers actively monitoring SIP traffic, directly compromising voice and communications infrastructure. Organizations running sngrep for SIP packet capture-common in telecom, contact centers, and VoIP monitoring-face immediate risk of system takeover and potential lateral movement to core telecommunications systems.
Apply vendor patch. Disable active SIP capture operations until patches are deployed if immediate patching is not feasible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Sngrep v1.6.0 was discovered to contain a heap buffer overflow via the function capture_ws_check_packet at /src/capture.
Sngrep v1.6.0 was discovered to contain a heap buffer overflow via the function capture_packet_reasm_ip at /src/capture.
Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c. Ra
Irontec Sngrep v1.8.1 was discovered to contain a heap buffer overflow via the function rtp_check_packet at /sngrep/src/
A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. Rated critical severity (CVSS 9.8),
A buffer overflow vulnerability exists in all versions of sngrep since v0.4.2, due to improper handling of 'Call-ID' and
An infinite loop in capture_packet_reasm_ip() in src/capture.c makes sngrep 1.9.0 and earlier spin a capture thread at f
An out-of-bounds stack read in Irontec sngrep through 1.9.0 can crash the SIP capture and analysis tool or expose a smal
Same weakness CWE-121 – Stack-based Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-76903
GHSA-5vq7-hmwf-89w5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB