Paper/Archive/CVE-2024-3120

CVE-2024-3120

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

Description · from the CVE record

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

ProductAffectedFixed inSource
sngrep1.4.1 – 1.8.0–CNA
sngrep1.4.1 – 1.8.0–CISA-ADP

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Pentraze (CNA)9.0CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CISA ADPSSVCExploitation: none · Automatable: no · Technical impact: total

References

refgithub.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6refgithub.com/irontec/sngrep/releases/tag/v1.8.1refpentraze.com/vulnerability-reports