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

- Severity: Critical 9.0 (CVSS:3.1, scored by Pentraze) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.84%, higher than 79% of CVEs (2026-12-01)
- Published: 2024-04-09T23:55:57.410Z
- Modified: 2026-06-17T07:43:21.050Z
- Weaknesses: CWE-120, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Pentraze

## 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.

(As written by CVE List.)

## Affected

- irontec sngrep: from 1.4.1 up to 1.8.0; from 1.4.1 before 1.8.1

## Every score

- Pentraze: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6> (patch)
- <https://github.com/irontec/sngrep/releases/tag/v1.8.1> (release-notes)
- <https://pentraze.com/vulnerability-reports/> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-3120](https://www.cve.org/CVERecord?id=CVE-2024-3120), CVE Terms of Use, modified 2025-02-21
- NVD: [CVE-2024-3120](https://nvd.nist.gov/vuln/detail/CVE-2024-3120), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-3120 · Whole record: https://cve.day/CVE-2024-3120.json · Rebuilt by cve.day 2026-11-25T22:58:39.011Z
