Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2815+ Articles
167+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. Critical Stack Buffer Overflow in sngrep's SIP Header Parser
Critical Stack Buffer Overflow in sngrep's SIP Header Parser

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-90558

Critical Stack Buffer Overflow in sngrep's SIP Header Parser

CVE-2026-90558 (CVSS 9.8) lets attackers crash or potentially hijack sngrep via oversized SIP Call-ID and X-Call-ID headers.

Dylan H.

Security Team

September 13, 2026
4 min read

Affected Products

  • sngrep through v1.8.4 (all platforms)

Executive Summary

A critical stack-based buffer overflow (CVE-2026-90558) has been disclosed in sngrep, the widely used open-source SIP traffic analyzer maintained by Irontec. The flaw lives in the tool's SIP header formatting routines, which copy attacker-controlled header values — including Call-ID and X-Call-ID — into fixed 255-byte stack buffers without validating their length. Any SIP packet with an oversized header value overflows the buffer and corrupts adjacent stack memory, including potentially the return address.

CVSS Score: 9.8 (CVSS 3.1) / 9.3 (CVSS 4.0) — Critical

No official patched release exists yet, though a fix commit has surfaced upstream (unverified as shipped).


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-90558
CVSS Score9.8 Critical (3.1) / 9.3 Critical (4.0)
TypeStack-Based Buffer Overflow (CWE-121)
Attack VectorNetwork
Privileges RequiredNone — unauthenticated
User InteractionNone
AssignerVulnCheck

Affected Versions

SoftwareAffected VersionsFixed Version
sngrep (Irontec)Through v1.8.4Not officially released — an upstream fix commit exists but is unconfirmed in a tagged build

Attack Vector

1. Attacker identifies a host running sngrep to monitor/capture SIP traffic
2. Attacker crafts a SIP packet with an oversized Call-ID, X-Call-ID, or
   similar header value (exceeding the 255-byte buffer sngrep allocates)
3. Attacker sends (or induces) the packet toward a network segment sngrep
   is capturing on
4. sngrep's header formatting routine copies the value into a fixed stack
   buffer with no length check, overflowing it
5. Adjacent stack memory — potentially including the return address — is
   corrupted, causing a crash and opening the door to code execution

Impact of Successful Exploitation

ImpactDescription
Denial of ServiceReliable crash of the sngrep process on malformed SIP input
Potential RCEStack corruption raises the possibility of controlled code execution, depending on mitigations (ASLR, stack canaries) present on the target build
No Auth NeededAny host capable of injecting or relaying SIP traffic sngrep observes can trigger it

This maps to MITRE ATT&CK T1499 (Endpoint Denial of Service) at minimum, with the buffer-overflow primitive itself falling under CWE-121.

Why this matters for VoIP shops: sngrep is a staple tool for SIP/VoIP engineers doing live traffic debugging and packet capture analysis. It's commonly run with elevated privileges to bind to network interfaces, which raises the stakes of any memory-corruption bug found in its parsing path.


Immediate Remediation

Step 1: Check Your Version

Confirm your deployed sngrep build is v1.8.4 or earlier. There is currently no vendor-confirmed patched release to upgrade to.

Step 2: Reduce Exposure

  1. Restrict sngrep's capture scope to trusted network segments only — avoid running it against untrusted or internet-facing SIP traffic
  2. Run sngrep with the least privilege necessary rather than as root, to limit the blast radius of a successful exploit
  3. Deploy sngrep behind a SIP-aware filtering layer (e.g., a SIP proxy or firewall with header-length enforcement) that rejects abnormally long Call-ID/X-Call-ID values before they reach sngrep

Step 3: Monitor for Abuse

# Watch for sngrep process crashes correlated with inbound SIP traffic
# containing header values well beyond typical Call-ID lengths (~50-80 chars)
 
# Consider capturing crash cores for analysis if sngrep segfaults
# unexpectedly in production

Post-Remediation Steps

  1. Track the upstream Irontec repository for an official tagged release addressing this CVE and apply it as soon as it ships
  2. Audit any automation or dashboards that ingest sngrep output for unexpected downtime tied to this issue
  3. Consider isolating sngrep instances in a container or restricted VM given the RCE potential, until a confirmed fix is available

References

  • NIST NVD — CVE-2026-90558
  • VulDB — CVE-2026-90558
  • OffSeq Threat Radar — Stack-Based Buffer Overflow in Irontec sngrep
  • Strix.ai — CVE-2026-90558
#sngrep#CVE-2026-90558#Buffer Overflow#SIP#VoIP Security

Related Articles

CVE-2026-45538: OpenSIPS Stack Buffer Overflow via Oversized SIP Header

A critical stack buffer overflow in OpenSIPS versions 4.0.0 and prior allows remote code execution by sending a SIP message with a header name exceeding 255 bytes. CVSS score 9.8.

5 min read

Critical Vulnerability in HP VoIP Phones Enables Enterprise Network Breaches

A stack-based buffer overflow flaw in HP OfficeConnect VoIP phones can be exploited remotely to achieve code execution, potentially allowing attackers to…

5 min read

Critical Grandstream VoIP Vulnerability Allows

A critical CVSS 9.3 stack-based buffer overflow in Grandstream GXP1600 series VoIP phones allows unauthenticated remote code execution, enabling attackers...

3 min read
Back to all Security Alerts