{"id":"CVE-2024-3120","state":"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.","publishedAt":"2024-04-09T23:55:57.410Z","updatedAt":"2025-02-21T17:07:41.626Z","severity":{"score":9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"Pentraze"},"assigner":"Pentraze","products":["irontec sngrep"],"affected":[{"vendor":"irontec","product":"sngrep","defaultStatus":"unaffected","versions":[{"version":"1.4.1","status":"affected","lessThanOrEqual":"1.8.0","versionType":"semver"}],"platforms":["Linux"]}],"references":["https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6","https://github.com/irontec/sngrep/releases/tag/v1.8.1","https://pentraze.com/vulnerability-reports/"],"weaknesses":["CWE-120"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/3xxx/CVE-2024-3120.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-3120","state":"PUBLISHED","datePublished":"2024-04-09T23:55:57.410Z","dateUpdated":"2025-02-21T17:07:41.626Z","assignerShortName":"Pentraze","assignerOrgId":"41c37e40-543d-43a2-b660-2fee83ea851a","dateReserved":"2024-03-31T17:10:14.906Z"},"containers":{"cna":{"title":"Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep","descriptions":[{"lang":"en","value":"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":[{"vendor":"irontec","product":"sngrep","defaultStatus":"unaffected","versions":[{"version":"1.4.1","status":"affected","lessThanOrEqual":"1.8.0","versionType":"semver"}],"platforms":["Linux"]}],"references":[{"url":"https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6"},{"url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1"},{"url":"https://pentraze.com/vulnerability-reports/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-120","description":"CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Pentraze","orgId":"41c37e40-543d-43a2-b660-2fee83ea851a","dateUpdated":"2024-04-09T23:55:57.410Z"},"datePublic":"2024-04-09T23:52:00.000Z","impacts":[{"capecId":"CAPEC-100","descriptions":[{"lang":"en","value":"CAPEC-100 Overflow Buffers"}]}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Upgrade to sngrep version 1.8.1"}],"value":"Upgrade to sngrep version 1.8.1"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"irontec","product":"sngrep","defaultStatus":"unknown","versions":[{"version":"1.4.1","status":"affected","lessThanOrEqual":"1.8.0","versionType":"custom"}],"cpes":["cpe:2.3:a:irontec:sngrep:1.4.1:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-04-11T17:09:06.528600Z","id":"CVE-2024-3120","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-02-21T17:07:41.626Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6","tags":["x_transferred"]},{"url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1","tags":["x_transferred"]},{"url":"https://pentraze.com/vulnerability-reports/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T19:32:42.908Z"}}]}}}