{"id":"CVE-2024-3120","published":"2024-04-09T23:55:57Z","modified":"2025-02-21T17:07:41Z","title":"Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep","vendor":"irontec","product":"sngrep","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02707,"percentile":0.86688,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6","tags":[]},{"url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1","tags":[]},{"url":"https://pentraze.com/vulnerability-reports/","tags":[]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":17.34},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"irontec","affectedVersions":[{"vendor":"irontec","product":"sngrep","versions":[">= 1.4.1, <= 1.8.0"]}],"solutions":{"items":["Upgrade to sngrep version 1.8.1"],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-100","name":"Overflow Buffers"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-04-11T17:09:06.528600Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-31722","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-irontec-sngrep-cve-2024-3119","parents":[{"from":"CVE-2024-3119","to":"CVE-2024-3120","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/sip.c","src/sip.h"],"commits":["https://github.com/irontec/sngrep/commit/73c15c82d14c69df311e05fa75da734faafd365f","https://github.com/irontec/sngrep/commit/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6"],"basis":"rarely changed file"}]}]}}