{"id":"UBUNTU-CVE-2024-3119","details":"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.","modified":"2026-05-20T16:08:50.488966139Z","published":"2024-04-10T00:15:00Z","upstream":["CVE-2024-3119"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-3119"},{"type":"REPORT","url":"https://github.com/irontec/sngrep/pull/480/commits/73c15c82d14c69df311e05fa75da734faafd365f"},{"type":"REPORT","url":"https://github.com/irontec/sngrep/releases/tag/v1.8.1"},{"type":"REPORT","url":"https://pentraze.com/vulnerability-reports/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-3119"}],"affected":[{"package":{"name":"sngrep","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=xenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"sngrep","binary_version":"1.2.0-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.3-1","1.4.4-1","1.4.4-2","1.4.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.5-1","binary_name":"sngrep"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.6-1","1.4.6-2"],"ecosystem_specific":{"binaries":[{"binary_name":"sngrep","binary_version":"1.4.6-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.9-1","1.4.10-1","1.4.10-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.4.10-1ubuntu0.1","binary_name":"sngrep"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0-2","1.8.0-1","1.8.0-1build1","1.8.0-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"sngrep","binary_version":"1.8.0-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"sngrep","binary_version":"1.8.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sngrep?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.8.2-1","1.8.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"sngrep","binary_version":"1.8.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-3119.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}