{"id":"CVE-2017-5331","aliases":["DEBIAN-CVE-2017-5331","DLA-789-1","DSA-3765-1","EUVD-2017-14436","GHSA-pp7c-cq7m-4vmc","MGASA-2017-0044","UBUNTU-CVE-2017-5331","USN-4695-1"],"status":"published","title":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1...","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0046,"percentile":0.40091,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2017-01-11T00:00:00Z","modified":"2026-09-01T20:03:48Z","fixes":[{"ecosystem":"Debian:12","package":"icoutils","fixed_in":["0.31.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"icoutils","fixed_in":["0.31.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"icoutils","fixed_in":["0.31.1-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"icoutils","fixed_in":["0.31.0-2+deb8u2build0.14.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"icoutils","fixed_in":["0.31.0-3ubuntu0.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.1-1"}]}]},{"source":"osv","ecosystem":"Debian:7","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.29.1-5deb7u1"}]}],"versions":["0.29.1-5"],"bundled":4},{"source":"osv","ecosystem":"Debian:8","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.0-2+deb8u2"}]}],"versions":["0.31.0-2","0.31.0-2+deb8u1"],"bundled":3},{"source":"osv","ecosystem":"Mageia:5","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.1-1.mga5"}]}],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.0-2+deb8u2build0.14.04.1"}]}],"versions":["0.31.0-1","0.31.0-2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.0-3ubuntu0.1"}]}],"versions":["0.31.0-2","0.31.0-3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"icoutils","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.31.0-3ubuntu0.1"}]}],"versions":["0.31.0-2","0.31.0-3"],"bundled":7}],"products":[{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"debian","product":"debian_linux"},{"vendor":"debian","product":"icoutils"},{"vendor":"icoutils_project","product":"icoutils"},{"vendor":"opensuse","product":"leap"},{"vendor":"opensuse","product":"opensuse"}],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2017-01/msg00025.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2017/01/11/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"http://www.debian.org/security/2017/dsa-3765","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2017-01/msg00026.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.securityfocus.com/bid/95378","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://www.ubuntu.com/usn/USN-3178-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2017-01/msg00024.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1412248","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-5331"},{"url":"https://github.com/advisories/GHSA-pp7c-cq7m-4vmc"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-5331","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0044.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=20091","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2017/01/08/5","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/01/11/3","tags":["web"]},{"url":"https://www.debian.org/security/2017/dsa-3756","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-5331","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2017/01/10/4","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3178-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4695-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-5331","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5208","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5332","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5333","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-6009","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-6010","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-6011","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-5331","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2019-11-04T20:24:09Z","modified":"2024-08-05T14:55:35.8Z","updated_at":"2026-11-02T14:33:12.942409Z"}],"euvd":[{"id":"EUVD-2017-14436","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2019-11-04T20:24:09Z","modified":"2024-08-05T14:55:35Z","updated_at":"2026-11-03T02:39:16.415448Z"}],"ghsa":[{"id":"GHSA-pp7c-cq7m-4vmc","title":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1...","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2022-05-24T17:00:17Z","modified":"2024-04-04T02:38:18Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:56:09.967552Z"}],"nvd":[{"id":"CVE-2017-5331","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2019-11-04T21:15:11.667Z","modified":"2026-06-17T01:20:16.757Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":4.6,"vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:04:20.074898Z"}],"osv":[{"id":"CVE-2017-5331","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2019-11-04T21:15:11.667Z","modified":"2026-04-16T06:23:23.210020642Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:06.029968Z"},{"id":"DEBIAN-CVE-2017-5331","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2019-11-04T21:15:11.667Z","modified":"2026-09-01T20:03:48.164525096Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.412243Z"},{"id":"UBUNTU-CVE-2017-5331","description":"Integer overflow in the check_offset function in b/wrestool/fileread.c in icoutils before 0.31.1 allows local users to cause a denial of service (process crash) and execute arbitrary code via a crafted executable.","status":"published","published":"2017-01-11T00:00:00Z","modified":"2026-02-04T03:19:34.347803Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:15.388065Z"},{"id":"DLA-789-1","title":"icoutils - security update","status":"published","published":"2017-01-17T00:00:00Z","modified":"2026-03-09T02:08:51.657331Z","updated_at":"2026-11-02T15:46:13.207219Z"},{"id":"DSA-3765-1","title":"icoutils - security update","status":"published","published":"2017-01-14T00:00:00Z","modified":"2026-03-09T01:22:42.053868Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"MGASA-2017-0044","title":"Updated icoutils packages fix security vulnerability","description":"Multiple programming errors in the wrestool tool of the icoutils suite\nallows denial of service or the execution of arbitrary code if a malformed\nbinary is parsed (CVE-2017-5208, CVE-2017-5331, CVE-2017-5332,\nCVE-2017-5333).\n","status":"published","published":"2017-02-07T13:34:44Z","modified":"2026-04-16T06:25:34.259941378Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"USN-4695-1","title":"icoutils vulnerabilities","description":"Choongwoo Han discovered that icoutils incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a denial of service\nor execute arbitrary code. (CVE-2017-5208)\n\nIt was discovered that icoutils incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a denial of service\nor execute arbitrary code. (CVE-2017-5331, CVE-2017-5332, CVE-2017-5333)\n\nJerzy Kramarz discovered that icoutils incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a crash or execute\narbitrary code. (CVE-2017-6009, CVE-2017-6010)\n\nJerzy Kramarz discovered that icoutils incorrectly handled certain files.\nAn attacker could possibly use this issue to expose sensitive information.\n(CVE-2017-6011)\n","status":"published","published":"2021-01-18T12:30:38Z","modified":"2026-02-10T04:42:02Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
