Wiz Agents & Workflows are here

CVE-2024-3120
NixOS vulnerability analysis and mitigation

Overview

A stack-buffer overflow vulnerability (CVE-2024-3120) exists in all versions of sngrep since v1.4.1 up to v1.8.1. The vulnerability was discovered and disclosed in April 2024. 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 (NVD).

Technical details

The vulnerability stems from insufficient bounds checking in two specific functions within the src/sip.c file: sip_validate_packet and sip_parse_extra_headers. These functions handle the 'Content-Length' and 'Warning' headers in SIP messages. The issue has received a CVSS v3.1 base score of 9.8 (CRITICAL) from NIST and 9.0 (CRITICAL) from Pentraze, indicating its severe nature. The vulnerability is classified as CWE-787 (Out-of-bounds Write) by NIST and CWE-120 (Buffer Copy without Checking Size of Input) by Pentraze (NVD).

Impact

This vulnerability allows remote attackers to execute arbitrary code or cause a denial of service (DoS) via crafted SIP messages. The high CVSS scores indicate that successful exploitation could lead to complete system compromise (NVD).

Mitigation and workarounds

The vulnerability has been fixed in sngrep version 1.8.1. The patch introduces proper bounds checking for the content-length and warning headers. Users are advised to upgrade to this version immediately. The fix includes modifications to ensure that copy lengths do not exceed MAX_CONTENT_LENGTH_SIZE and MAX_WARNING_SIZE (GitHub Release, GitHub Patch).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-2370HIGH8.8
  • GitLabGitLab
  • gitlab
NoYesMar 30, 2026
CVE-2026-33206HIGH8.2
  • NixOSNixOS
  • calibre
NoYesMar 27, 2026
CVE-2026-33868MEDIUM6.1
  • NixOSNixOS
  • mastodon
NoYesMar 27, 2026
CVE-2026-33869MEDIUM4.8
  • NixOSNixOS
  • cpe:2.3:a:joinmastodon:mastodon
NoYesMar 27, 2026
CVE-2026-33205MEDIUM4.8
  • NixOSNixOS
  • cpe:2.3:a:calibre-ebook:calibre
NoYesMar 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management