CVE-2024-3120

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*

History

03 Feb 2025, 17:44

Type Values Removed Values Added
References () https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6 - () https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6 - Patch
References () https://github.com/irontec/sngrep/releases/tag/v1.8.1 - () https://github.com/irontec/sngrep/releases/tag/v1.8.1 - Release Notes
References () https://pentraze.com/vulnerability-reports/ - () https://pentraze.com/vulnerability-reports/ - Third Party Advisory
CWE CWE-787
CPE cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*
First Time Irontec sngrep
Irontec

21 Nov 2024, 09:28

Type Values Removed Values Added
Summary
  • (es) Existe una vulnerabilidad de desbordamiento de búfer en la región stack de la memoria en todas las versiones de sngrep desde la v1.4.1. La falla se debe a una verificación inadecuada de los límites al copiar los encabezados 'Content-Length' y 'Warning' en búferes de tamaño fijo en las funciones sip_validate_packet y sip_parse_extra_headers dentro de src/sip.c. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario o provocar una denegación de servicio (DoS) a través de mensajes SIP manipulados.
References () https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6 - () https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6 -
References () https://github.com/irontec/sngrep/releases/tag/v1.8.1 - () https://github.com/irontec/sngrep/releases/tag/v1.8.1 -
References () https://pentraze.com/vulnerability-reports/ - () https://pentraze.com/vulnerability-reports/ -

10 Apr 2024, 00:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-04-10 00:15

Updated : 2025-02-03 17:44


NVD link : CVE-2024-3120

Mitre link : CVE-2024-3120

CVE.ORG link : CVE-2024-3120


JSON object : View

Products Affected

irontec

  • sngrep
CWE
CWE-120

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

CWE-787

Out-of-bounds Write