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.

Remediation

Solution:

  • Upgrade to sngrep version 1.8.1

Categories

9.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 2.30% Top 20%
Third-Party Advisory pentraze.com
Affected: irontec sngrep
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-3120?
CVE-2024-3120 has been scored as a critical severity vulnerability.
How to fix CVE-2024-3120?
To fix CVE-2024-3120: Upgrade to sngrep version 1.8.1
Is CVE-2024-3120 being actively exploited in the wild?
It is possible that CVE-2024-3120 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~2% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-3120?
CVE-2024-3120 affects irontec sngrep.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.