Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-3120

CVE-2024-3120: Irontec Sngrep Buffer Overflow Vulnerability

CVE-2024-3120 is a stack-buffer overflow flaw in Irontec Sngrep since v1.4.1 that enables remote code execution or denial of service via malicious SIP messages. This article covers technical details, affected versions, and mitigations.

Published: April 1, 2026

CVE-2024-3120 Overview

A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1, a popular command-line tool for visualizing SIP (Session Initiation Protocol) calls. 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.

Critical Impact

Remote attackers can achieve arbitrary code execution or crash the sngrep service by sending maliciously crafted SIP packets with oversized Content-Length or Warning headers, potentially compromising VoIP infrastructure monitoring systems.

Affected Products

  • Irontec sngrep versions 1.4.1 and later (prior to v1.8.1)

Discovery Timeline

  • 2024-04-10 - CVE-2024-3120 published to NVD
  • 2025-02-03 - Last updated in NVD database

Technical Details for CVE-2024-3120

Vulnerability Analysis

This vulnerability represents a classic stack-buffer overflow condition within the SIP packet parsing functionality of sngrep. The vulnerable code paths exist in two critical functions: sip_validate_packet and sip_parse_extra_headers, both located in src/sip.c. When processing incoming SIP messages, these functions copy header values directly into fixed-size stack buffers without proper length validation.

The 'Content-Length' and 'Warning' SIP headers are particularly problematic because the code assumes these header values will fit within predefined buffer sizes. An attacker can craft SIP messages with excessively long header values that exceed these buffer boundaries, overwriting adjacent stack memory including return addresses and saved registers.

Root Cause

The root cause is inadequate bounds checking (CWE-120: Buffer Copy without Checking Size of Input) combined with out-of-bounds write operations (CWE-787: Out-of-bounds Write). The sip_validate_packet and sip_parse_extra_headers functions use fixed-size character arrays on the stack to store parsed header values. When copying header content from incoming SIP packets, the code fails to verify that the source data length does not exceed the destination buffer capacity, leading to stack corruption.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker positioned on the network can send specially crafted SIP packets to a host running sngrep. Since sngrep is typically used to capture and analyze SIP traffic, it will process any SIP messages visible on the monitored network interface.

The exploitation scenario involves:

  1. Crafting a malicious SIP message with an oversized 'Content-Length' or 'Warning' header
  2. Sending the packet to a network segment where sngrep is actively capturing traffic
  3. When sngrep parses the malicious packet, the oversized header value overflows the stack buffer
  4. Depending on the payload, this can result in arbitrary code execution or application crash

For technical details on the vulnerable code paths and the fix implementation, refer to the official patch commit.

Detection Methods for CVE-2024-3120

Indicators of Compromise

  • Unexpected crashes or segmentation faults in the sngrep process
  • Abnormally large SIP packets on the network with oversized Content-Length or Warning headers
  • Core dumps from sngrep with stack corruption signatures
  • Unusual process spawning or network connections originating from sngrep process

Detection Strategies

  • Monitor for SIP packets with Content-Length or Warning header values exceeding typical sizes (e.g., >1024 bytes)
  • Implement network IDS rules to detect malformed SIP messages with abnormally large headers
  • Deploy runtime memory protection tools (ASAN, stack canaries) on systems running vulnerable sngrep versions
  • Configure centralized logging to capture sngrep crash events and analyze for exploitation patterns

Monitoring Recommendations

  • Enable core dump collection for sngrep processes to facilitate post-incident analysis
  • Implement SIP traffic anomaly detection focusing on header length distributions
  • Monitor system logs for repeated sngrep restarts which may indicate exploitation attempts
  • Use endpoint detection and response (EDR) solutions to detect suspicious process behavior following sngrep execution

How to Mitigate CVE-2024-3120

Immediate Actions Required

  • Upgrade sngrep to version 1.8.1 or later immediately
  • If upgrade is not immediately possible, consider temporarily disabling sngrep on critical systems
  • Implement network segmentation to limit exposure of systems running sngrep to untrusted network traffic
  • Review firewall rules to restrict which hosts can send SIP traffic to monitored interfaces

Patch Information

The vulnerability has been addressed in sngrep version 1.8.1. The fix implements proper bounds checking when copying header values into stack buffers, ensuring that oversized input is truncated safely. The patch is available through the official GitHub release.

The specific commit addressing this vulnerability can be reviewed at the GitHub Pull Request.

Workarounds

  • Deploy sngrep in isolated network segments with restricted access
  • Use network filtering to drop SIP packets with abnormally large header values before they reach sngrep
  • Run sngrep with reduced privileges and enable OS-level exploit mitigations (ASLR, stack protector, NX)
  • Consider using containerization with restricted capabilities to limit the impact of potential exploitation
bash
# Example: Running sngrep with reduced privileges in a container
docker run --cap-drop=ALL --cap-add=NET_RAW --read-only \
  --security-opt=no-new-privileges:true \
  sngrep:1.8.1 -c

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechSngrep

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.90%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120

  • CWE-787
  • Technical References
  • GitHub Release v1.8.1

  • Pentraze Vulnerability Reports
  • Vendor Resources
  • GitHub Pull Request Commits
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English