{"id":"CVE-2017-16663","aliases":["DEBIAN-CVE-2017-16663","DLA-1185-1","EUVD-2017-7847","GHSA-prvx-c5j5-9gxq","MGASA-2020-0459","UBUNTU-CVE-2017-16663"],"status":"published","title":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in...","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","severity":{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00854,"percentile":0.58554,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2017-11-08T06:00:00Z","modified":"2026-10-20T10:47:47Z","fixes":[{"ecosystem":"Debian:7","package":"sam2p","fixed_in":["0.49.1-1+deb7u2"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"sam2p","fixed_in":["0.49.2-3+deb8u3build0.14.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"sam2p","fixed_in":["0.49.2-3+deb8u3build0.16.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:7","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.1-1+deb7u2"}]}],"versions":["0.49.1-1","0.49.1-1+deb7u1"]},{"source":"osv","ecosystem":"Mageia:7","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.3-2.1.mga7"}]}],"bundled":13},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.14.04.1"}]}],"versions":["0.49.1-1","0.49.2-2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.16.04.1"}]}],"versions":["0.49.2-3"]}],"products":[{"vendor":"sam2p_project","product":"sam2p"}],"references":[{"url":"https://github.com/pts/sam2p/issues/16","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2017/11/msg00031.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16663"},{"url":"https://github.com/advisories/GHSA-prvx-c5j5-9gxq"},{"url":"https://advisories.mageia.org/MGASA-2020-0459.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=27746","tags":["report"]},{"url":"https://www.debian.org/lts/security/2017/dla-1127","tags":["web"]},{"url":"https://www.debian.org/lts/security/2017/dla-1185","tags":["web"]},{"url":"https://www.debian.org/lts/security/2018/dla-1340","tags":["web"]},{"url":"https://www.debian.org/lts/security/2018/dla-1463","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-16663","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-16663","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-16663","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2017-11-08T06:00:00Z","modified":"2024-08-05T20:27:04.305Z","updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2017-7847","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2017-11-08T06:00:00Z","modified":"2024-08-05T20:27:04Z","updated_at":"2026-11-03T02:23:11.972603Z"}],"ghsa":[{"id":"GHSA-prvx-c5j5-9gxq","title":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in...","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2022-05-14T03:46:33Z","modified":"2023-02-03T05:00:33Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:52:49.021794Z"}],"nvd":[{"id":"CVE-2017-16663","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2017-11-08T06:29:00.247Z","modified":"2026-06-17T01:09:38.277Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:04:08.635428Z"}],"osv":[{"id":"CVE-2017-16663","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2017-11-08T06:29:00.247Z","modified":"2026-10-20T10:47:47.216015257Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"UBUNTU-CVE-2017-16663","description":"In sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer overflows) in input-bmp.ci in the function ReadImage, because \"width * height\" multiplications occur unsafely.","status":"published","published":"2017-11-08T06:29:00Z","modified":"2025-09-08T16:44:30Z","cvss":[{"version":"3.0","score":5.5,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:54:14.563448Z"},{"id":"DLA-1185-1","title":"sam2p - security update","status":"published","published":"2017-11-22T00:00:00Z","modified":"2026-03-09T01:01:52.290458Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"MGASA-2020-0459","title":"Updated sam2p package fixes security vulnerabilities","description":"In sam2p 0.49.3, a heap-based buffer overflow exists in the pcxLoadImage24\nfunction of the file in_pcx.cpp. (CVE-2017-14628).\n\nIn sam2p 0.49.3, the in_xpm_reader function in in_xpm.cpp has an integer\nsignedness error, leading to a crash when writing to an out-of-bounds array\nelement. (CVE-2017-14629).\n\nIn sam2p 0.49.3, an integer overflow exists in the pcxLoadImage24 function\nof the file in_pcx.cpp, leading to an invalid write operation.\n(CVE-2017-14630).\n\nIn sam2p 0.49.3, the pcxLoadRaster function in in_pcx.cpp has an integer\nsignedness error leading to a heap-based buffer overflow. (CVE-2017-14631).\n\nBecause of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff\ntimes, ending with an invalid read of size 1 in the Image::Indexed::sortPal\nfunction in image.cpp. However, this also causes memory corruption becaus\nof an attempted write to the invalid d[0xfffffffe] array element.\n(CVE-2017-14636).\n\nIn sam2p 0.49.3, there is an invalid read of size 2 in the parse_rgb function\nin in_xpm.cpp. However, this can also cause a write to an illegal address.\n(CVE-2017-14637).\n\nIn sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer\noverflows) in input-bmp.ci in the function ReadImage, because \"width * height\"\nmultiplications occur unsafely. (CVE-2017-16663).\n\nThere is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp\nin sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly\nunspecified other impact. (CVE-2018-7487).\n\nThere is an invalid free in MiniPS::delete0 in minips.cpp that leads to a\nSegmentation fault in sam2p 0.49.4. A crafted input will lead to a denial of\nservice or possibly unspecified other impact. (CVE-2018-7551).\n\nThere is a heap-based buffer overflow in the pcxLoadRaster function of\nin_pcx.cpp in sam2p 0.49.4. A crafted input will lead to a denial of service\nor possibly unspecified other impact. (CVE-2018-7553).\n\nThere is an invalid free in ReadImage in input-bmp.ci that leads to a\nSegmentation fault in sam2p 0.49.4. A crafted input will lead to a denial of\nservice or possibly unspecified other impact. (CVE-2018-7554).\n\nThere is a heap-based buffer overflow in bmp_compress1_row in appliers.cpp\nin sam2p 0.49.4 that leads to a denial of service or possibly unspecified\nother impact. (CVE-2018-12578).\n\nThere is a heap-based buffer overflow in ReadImage in input-tga.ci in sam2p\n0.49.4 that leads to a denial of service or possibly unspecified other impact.\n(CVE-2018-12601).\n","status":"published","published":"2020-12-17T13:10:41Z","modified":"2026-04-16T04:43:51.985431021Z","updated_at":"2026-11-02T15:49:41.509337Z"}]}}
