{"id":"UBUNTU-CVE-2023-31981","details":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","modified":"2025-10-24T05:01:58Z","published":"2023-05-09T14:15:00Z","upstream":["CVE-2023-31981"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-31981"},{"type":"REPORT","url":"https://github.com/irontec/sngrep/issues/430"},{"type":"REPORT","url":"https://github.com/irontec/sngrep/commit/038a65883551fdccc0bb86600309bb85d2251f98"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-31981"}],"affected":[{"package":{"name":"sngrep","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sngrep@1.2.0-1build1?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/2023/UBUNTU-CVE-2023-31981.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sngrep@1.4.5-1?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_name":"sngrep","binary_version":"1.4.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31981.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sngrep@1.4.6-2?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/2023/UBUNTU-CVE-2023-31981.json"}},{"package":{"name":"sngrep","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sngrep@1.4.10-1ubuntu0.1?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_name":"sngrep","binary_version":"1.4.10-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-31981.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}