{"id":"CVE-2024-3119","published":"2024-04-09T23:55:43Z","modified":"2024-08-08T21:20:41Z","title":"Stack-Buffer Overflow in 'Call-ID' and 'X-Call-ID' SIP Header Processing in sngrep","vendor":"irontec","product":"sngrep","tier":"tail","description":{"text":"A buffer overflow vulnerability exists in all versions of sngrep since v0.4.2, due to improper handling of 'Call-ID' and 'X-Call-ID' SIP headers. The functions sip_get_callid and sip_get_xcallid in sip.c use the strncpy function to copy header contents into fixed-size buffers without checking the data length. This flaw allows remote attackers to execute arbitrary code or cause a denial of service (DoS) through specially crafted SIP messages.\n","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.018,"percentile":0.7903,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/irontec/sngrep/pull/480/commits/73c15c82d14c69df311e05fa75da734faafd365f","tags":[]},{"url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1","tags":[]},{"url":"https://pentraze.com/vulnerability-reports/","tags":[]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":15.81},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"irontec","affectedVersions":[{"vendor":"irontec","product":"sngrep","versions":[">= 0.4.2, <= 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-10T19:23:53.437651Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-31721","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-irontec-sngrep-cve-2024-3119","children":[{"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"}]}]}}