{"id":"CVE-2023-31981","aliases":["DEBIAN-CVE-2023-31981","EUVD-2023-36270","GHSA-27pq-ccjc-wxmc","UBUNTU-CVE-2023-31981"],"status":"published","title":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function...","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.00308,"percentile":0.23968,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2023-05-09T00:00:00Z","modified":"2026-10-28T02:31:07Z","fixes":[{"ecosystem":"Debian:13","package":"sngrep","fixed_in":["1.7.0-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sngrep","fixed_in":["1.7.0-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-1","1.7.0-1","1.7.0-2","1.7.0-2~bpo12+1","1.8.0-1","1.8.1-1","1.8.2-1","1.8.2-1~bpo12+1","1.8.3-1","1.8.3-1~bpo13+1","1.8.4-1","1.8.4-1~bpo13+1","1.8.4-2","1.9.0-1"]},{"source":"osv","ecosystem":"Debian:13","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.7.0-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sngrep","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"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.3-1","1.4.4-1","1.4.4-2","1.4.5-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.6-1","1.4.6-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"sngrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.9-1","1.4.10-1","1.4.10-1ubuntu0.1"]}],"products":[{"vendor":"irontec","product":"sngrep"}],"references":[{"url":"https://github.com/irontec/sngrep/issues/430","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31981","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-27pq-ccjc-wxmc"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31981.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-31981","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-31981","tags":["report"]},{"url":"https://github.com/irontec/sngrep/commit/038a65883551fdccc0bb86600309bb85d2251f98","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-31981","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-31981","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T00:00:00Z","modified":"2025-01-29T16:12:35.473Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:35:27.430605Z"}],"euvd":[{"id":"EUVD-2023-36270","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T00:00:00Z","modified":"2025-01-29T16:12:35Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:04:09.89712Z"}],"ghsa":[{"id":"GHSA-27pq-ccjc-wxmc","title":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function...","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T15:30:33Z","modified":"2024-04-04T03:55:38Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:56:19.559732Z"}],"nvd":[{"id":"CVE-2023-31981","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T14:15:13.863Z","modified":"2026-06-17T05:57:46.327Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:08:01.131774Z"}],"osv":[{"id":"CVE-2023-31981","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T00:00:00Z","modified":"2026-10-28T02:31:07.847403767Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:31.790231Z"},{"id":"DEBIAN-CVE-2023-31981","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T14:15:13.863Z","modified":"2026-10-26T18:00:57.562764046Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:39.679062Z"},{"id":"UBUNTU-CVE-2023-31981","description":"Sngrep v1.6.0 was discovered to contain a stack buffer overflow via the function packet_set_payload at /src/packet.c.","status":"published","published":"2023-05-09T14:15:00Z","modified":"2025-10-24T05:01:58Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T16:54:20.997471Z"}]}}
