Vulnerabilities / CVE-2024-3120

critical

CVE-2024-3120

A stack-buffer overflow vulnerability exists in all versions of sngrep ...

Published Modified CWE 120, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

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

Trivy's own label is CRITICAL. Rated critical by NVD.

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 packages and fixed versions

SourcePackageFixed in
debian 10sngrepno fix listed
debian 11sngrepno fix listed
debian 12sngrepno fix listed
debian 13sngrep1.8.1-1
debian 14sngrep1.8.1-1
echosngrep1.8.1-1
rapidfort debian 12sngrep0:1.8.1-1
rapidfort debian 13sngrep0:1.8.1-1
rapidfort ubuntu 20.04sngrep0:1.8.1-1
rapidfort ubuntu 22.04sngrep0:1.8.1-1
rapidfort ubuntu 24.04sngrep0:1.8.1-1

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.