What’s Vulnerable › Vulnerabilities

CVE-2024-3120: Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep

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 products

How to fix

Upgrade to a fixed version: irontec sngrep 1.8.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-3120 or the next vulnerability affects your stack