CVE-2024-3120
JSON

9.0critical

Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep

Severity
9.0critical CVSS:3.1 by Pentraze
Exploit likelihood
1.84% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Pentraze

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.

Affected

Product or packageVersionsReported by
irontec sngrepfrom 1.4.1 up to 1.8.0, from 1.4.1 before 1.8.1CVE List, NVD

All scores

Pentraze9.0critical CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-120CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (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

Sources

SourceRecordLicence
CVE ListCVE-2024-3120 changed 2025-02-21CVE Terms of Use
NVDCVE-2024-3120 changed 2026-06-17Public domain