CVE-2024-3120
A stack-buffer overflow vulnerability exists in all versions of sngrep ...
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| debian 10 | sngrep | no fix listed |
| debian 11 | sngrep | no fix listed |
| debian 12 | sngrep | no fix listed |
| debian 13 | sngrep | 1.8.1-1 |
| debian 14 | sngrep | 1.8.1-1 |
| echo | sngrep | 1.8.1-1 |
| rapidfort debian 12 | sngrep | 0:1.8.1-1 |
| rapidfort debian 13 | sngrep | 0:1.8.1-1 |
| rapidfort ubuntu 20.04 | sngrep | 0:1.8.1-1 |
| rapidfort ubuntu 22.04 | sngrep | 0:1.8.1-1 |
| rapidfort ubuntu 24.04 | sngrep | 0:1.8.1-1 |