SecurityContext

CVE-2024-3120: sngrep - Buffer Overflow

  • Cve: CVE-2024-3120
  • Name: sngrep - Buffer Overflow
  • 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.
  • Impact: Attackers can execute arbitrary code or cause denial of service by sending crafted SIP messages exploiting buffer overflow.
  • Remediation: Update to the latest version of sngrep that addresses this vulnerability or apply patches if available.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01838
  • Epss percentile: 0.79383
  • Assignee: 41c37e40-543d-43a2-b660-2fee83ea851a
  • Published at: 2024-04-10T00:15:12Z
  • Age in days: 958
  • Modified at: 2026-06-17T07:43:21Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-3120
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-120Buffer Copy without Checking Size of Input
CWE-787Out-of-bounds Write

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6Patch
https://pentraze.com/vulnerability-reports/Third Party Advisory
https://github.com/irontec/sngrep/releases/tag/v1.8.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
irontec:sngrep>= 1.4.1, < 1.8.1nonvd/v1/products/irontec/sngrep

Projects

RepositoryLink kindsIndexedUrl
irontec/sngreppull, releasesyes/v1/repositories/irontec/sngrep

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts