{"id":"CVE-2024-3120","aliases":["DEBIAN-CVE-2024-3120","EUVD-2024-31722","GHSA-4p8q-p8qc-486x","UBUNTU-CVE-2024-3120","openSUSE-SU-2024:0106-1","openSUSE-SU-2024:13856-1"],"status":"published","title":"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.","severity":{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.01838,"percentile":0.7926,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-120","CWE-787"],"published":"2024-04-09T23:55:57Z","modified":"2026-11-02T12:01:51Z","fixes":[{"ecosystem":"Debian:13","package":"sngrep","fixed_in":["1.8.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sngrep","fixed_in":["1.8.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-1","1.7.0-1","1.7.0-2","1.7.0-2~bpo12+1","1.8.0-1","1.8.1-1","1.8.2-1","1.8.2-1~bpo12+1","1.8.3-1","1.8.3-1~bpo13+1","1.8.4-1","1.8.4-1~bpo13+1","1.8.4-2","1.9.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.1-1","1.0.0-1","1.1.0-1","1.2.0-1","1.2.0-1build1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.3-1","1.4.4-1","1.4.4-2","1.4.5-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.6-1","1.4.6-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.9-1","1.4.10-1","1.4.10-1ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0-2","1.8.0-1","1.8.0-1build1","1.8.0-1build2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.2-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.3-1","1.8.4-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.2-1","1.8.3-1"]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP5","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-bp155.2.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.5","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-bp155.2.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.1-1.1"}]}],"bundled":2}],"products":[{"vendor":"irontec","product":"sngrep"}],"references":[{"url":"https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6","tags":["x_transferred","Patch","web","report"]},{"url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1","tags":["x_transferred","Release Notes","web","report"]},{"url":"https://pentraze.com/vulnerability-reports/","tags":["x_transferred","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3120","tags":["advisory"]},{"url":"https://pentraze.com/vulnerability-reports"},{"url":"https://github.com/advisories/GHSA-4p8q-p8qc-486x"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3120.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-3120","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-3120","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-3120","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/XIKQJYLNI5D5D5THR2I23E2KMGZKXH46/","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-3119","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-3120","tags":["web"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2024-3120","title":"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.","status":"published","published":"2024-04-09T23:55:57.41Z","modified":"2025-02-21T17:07:41.626Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T14:34:10.258163Z"}],"euvd":[{"id":"EUVD-2024-31722","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.","status":"published","published":"2024-04-09T23:55:57Z","modified":"2025-02-21T17:07:41Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:53:25.922377Z"}],"ghsa":[{"id":"GHSA-4p8q-p8qc-486x","title":"A stack-buffer overflow vulnerability exists in all versions of sngrep since v1.4.1. The flaw is...","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.","status":"published","published":"2024-04-10T00:30:29Z","modified":"2025-02-03T18:31:45Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-120","CWE-787"],"updated_at":"2026-11-02T14:59:46.079001Z"}],"nvd":[{"id":"CVE-2024-3120","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.","status":"published","published":"2024-04-10T00:15:12.34Z","modified":"2026-06-17T07:43:21.05Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-120","CWE-787"],"updated_at":"2026-11-02T14:09:49.255123Z"}],"osv":[{"id":"CVE-2024-3120","title":"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.","status":"published","published":"2024-04-09T23:55:57.41Z","modified":"2026-10-28T02:30:40.449647145Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-120"],"updated_at":"2026-11-02T15:44:40.06138Z"},{"id":"DEBIAN-CVE-2024-3120","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.","status":"published","published":"2024-04-10T00:15:12.34Z","modified":"2026-11-02T12:01:51.258491809Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:42.530184Z"},{"id":"UBUNTU-CVE-2024-3120","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.","status":"published","published":"2024-04-10T00:15:00Z","modified":"2026-10-17T12:56:44.579781594Z","cvss":[{"version":"3.1","score":9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:54:48.333535Z"},{"id":"openSUSE-SU-2024:0106-1","title":"Security update for sngrep","description":"This update for sngrep fixes the following issues:\n\n- Update to version 1.8.1\n  * Fix CVE-2024-3119: sngrep: buffer overflow due to improper\n    handling of 'Call-ID' and 'X-Call-ID' SIP headers.\n  * Fix CVE-2024-3120: sngrep: stack-buffer overflow due to\n    inadequate bounds checking when copying 'Content-Length' and\n    'Warning' headers into fixed-size buffers.\n\n- Update to versino 1.8.0\n  * fix typo in message, thanks to lintian.\n  * fix compiler warnings about unused variables.\n  * Fixed a typo in comment line in filter.c\n  * Redefine usage of POSIX signals.\n  * Support for building sngrep using CMake added.\n\n- Update to version 1.7.0\n  * save: add option --text to save captured data to plain text\n  * capture: fix memory overflows while parsing IP headers\n  * hep: fix hep listener enabled in offline mode\n  * core: stop sngrep when parent process has ended\n  * ssl: fix decrypt with AES256 GCM SHA384 cipher\n","status":"published","published":"2024-04-10T18:21:00Z","modified":"2026-02-04T03:35:54.996761Z","updated_at":"2026-11-02T16:58:33.135986Z"},{"id":"openSUSE-SU-2024:13856-1","title":"sngrep-1.8.1-1.1 on GA media","description":"These are all security issues fixed in the sngrep-1.8.1-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:56:22.277346Z","updated_at":"2026-11-02T16:58:36.662953Z"}]}}
