{"id":"CVE-2024-3120","summary":"Stack-Buffer Overflow in 'Content-Length' and 'Warning' Header Processing in sngrep","details":"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.","modified":"2026-08-12T03:51:16.063848822Z","published":"2024-04-09T23:55:57.410Z","related":["openSUSE-SU-2024:0106-1","openSUSE-SU-2024:13856-1"],"database_specific":{"cna_assigner":"Pentraze","cwe_ids":["CWE-120"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3120.json"},"references":[{"type":"WEB","url":"https://github.com/irontec/sngrep/pull/480/commits/f229a5d31b0be6a6cc3ab4cd9bfa4a1b5c5714c6"},{"type":"WEB","url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1"},{"type":"WEB","url":"https://pentraze.com/vulnerability-reports/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3120.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3120"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/irontec/sngrep","events":[{"introduced":"57baa4b16d0021cf0a70889c15aee708db378fed"},{"fixed":"373abb90804ba71f980c7120e62f90d3a5c81213"}],"database_specific":{"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:irontec:sngrep:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.4.1"},{"last_affected":"1.8.0"},{"fixed":"1.8.1"}]}}],"versions":["v1.8.0","v1.7.0","v1.6.0","v1.5.0","v1.4.10","v1.4.9","v1.4.8","v1.4.7","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.2","v1.4.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3120.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}