{"id":"CVE-2018-7487","aliases":["DLA-1340-1","EUVD-2018-19218","GHSA-j957-hgr4-pg6p","MGASA-2020-0459","UBUNTU-CVE-2018-7487"],"status":"published","title":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A...","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/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-08","score":0.01218,"percentile":0.68818,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2018-02-26T15:00:00Z","modified":"2026-10-20T10:50:30Z","fixes":[{"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+deb7u3"}]}],"versions":["0.49.1-1","0.49.1-1+deb7u1","0.49.1-1+deb7u2"],"bundled":5},{"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":"debian","product":"debian_linux"},{"vendor":"sam2p_project","product":"sam2p"}],"references":[{"url":"https://github.com/pts/sam2p/issues/18","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/04/msg00004.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7487"},{"url":"https://github.com/advisories/GHSA-j957-hgr4-pg6p"},{"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-2018-7487","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-7487","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-7487","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2018-02-26T15:00:00Z","modified":"2024-08-05T06:31:04.125Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2018-19218","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2018-02-26T15:00:00Z","modified":"2024-08-05T06:31:04Z","updated_at":"2026-11-03T02:40:05.625439Z"}],"ghsa":[{"id":"GHSA-j957-hgr4-pg6p","title":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A...","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2022-05-13T01:20:36Z","modified":"2023-02-01T05:05:59Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/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:50:18.532439Z"}],"nvd":[{"id":"CVE-2018-7487","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2018-02-26T15:29:00.37Z","modified":"2026-06-17T02:03:13.59Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:04:23.783914Z"}],"osv":[{"id":"CVE-2018-7487","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2018-02-26T15:29:00.37Z","modified":"2026-10-20T10:50:30.123099705Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"UBUNTU-CVE-2018-7487","description":"There is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp in sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly unspecified other impact.","status":"published","published":"2018-02-26T15:29:00Z","modified":"2025-09-08T16:44:47Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"DLA-1340-1","title":"sam2p - security update","status":"published","published":"2018-04-06T00:00:00Z","modified":"2026-03-09T01:00:59.518178Z","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"}]}}
