{"id":"CVE-2017-12941","aliases":["DEBIAN-CVE-2017-12941","EUVD-2017-4465","GHSA-hj36-9f44-43h2","MGASA-2017-0302","MGASA-2017-0304","SUSE-SU-2018:0862-1","SUSE-SU-2021:2834-1","UBUNTU-CVE-2017-12941"],"status":"published","title":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.02216,"percentile":0.82752,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2017-08-18T14:00:00Z","modified":"2026-09-01T20:03:42Z","fixes":[{"ecosystem":"Debian:12","package":"unrar-nonfree","fixed_in":["1:5.5.8-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"unrar-nonfree","fixed_in":["1:5.5.8-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"unrar-nonfree","fixed_in":["1:5.5.8-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.5.8-1"}]}],"versions":["1:3.5.2-0.1","1:3.5.2-0.2","1:3.5.4-0.1","1:3.5.4-1","1:3.5.4-1.1","1:3.7.2-1","1:3.7.3-1","1:3.7.3-1.1","1:3.7.8-1","1:3.7.8-2","1:3.8.2-1","1:3.8.4-1","1:3.8.5-1","1:3.8.5-2","1:3.9.10-1","1:3.9.3-1","1:3.9.5-1","1:3.9.6-1","1:3.9.7-1","1:3.9.9-1","1:4.0.2-1","1:4.0.3-1","1:4.1.4-1","1:4.2.4-0.1","1:4.2.4-0.2","1:4.2.4-0.3","1:5.0.10-1","1:5.2.5-1","1:5.2.7-0.1","1:5.3.2-1","1:5.4.5-1","1:5.5.5-1","3.3.6-2","3.3.6-2.0.1","3.4.3-1"]},{"source":"osv","ecosystem":"Debian:13","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.5.8-1"}]}],"versions":["1:3.5.2-0.1","1:3.5.2-0.2","1:3.5.4-0.1","1:3.5.4-1","1:3.5.4-1.1","1:3.7.2-1","1:3.7.3-1","1:3.7.3-1.1","1:3.7.8-1","1:3.7.8-2","1:3.8.2-1","1:3.8.4-1","1:3.8.5-1","1:3.8.5-2","1:3.9.10-1","1:3.9.3-1","1:3.9.5-1","1:3.9.6-1","1:3.9.7-1","1:3.9.9-1","1:4.0.2-1","1:4.0.3-1","1:4.1.4-1","1:4.2.4-0.1","1:4.2.4-0.2","1:4.2.4-0.3","1:5.0.10-1","1:5.2.5-1","1:5.2.7-0.1","1:5.3.2-1","1:5.4.5-1","1:5.5.5-1","3.3.6-2","3.3.6-2.0.1","3.4.3-1"]},{"source":"osv","ecosystem":"Debian:14","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.5.8-1"}]}],"versions":["1:3.5.2-0.1","1:3.5.2-0.2","1:3.5.4-0.1","1:3.5.4-1","1:3.5.4-1.1","1:3.7.2-1","1:3.7.3-1","1:3.7.3-1.1","1:3.7.8-1","1:3.7.8-2","1:3.8.2-1","1:3.8.4-1","1:3.8.5-1","1:3.8.5-2","1:3.9.10-1","1:3.9.3-1","1:3.9.5-1","1:3.9.6-1","1:3.9.7-1","1:3.9.9-1","1:4.0.2-1","1:4.0.3-1","1:4.1.4-1","1:4.2.4-0.1","1:4.2.4-0.2","1:4.2.4-0.3","1:5.0.10-1","1:5.2.5-1","1:5.2.7-0.1","1:5.3.2-1","1:5.4.5-1","1:5.5.5-1","3.3.6-2","3.3.6-2.0.1","3.4.3-1"]},{"source":"osv","ecosystem":"Mageia:5","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.50-1.mga5.nonfree"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:6","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.50-1.mga6.nonfree"}]}],"bundled":4},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 11 SP4","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-5.3.1"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 11 SP4","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-5.3.1"}]}],"bundled":5},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 8","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 9","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 9","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP5","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","package":"unrar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1-4.5.1"}]}],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:5.3.2-1","1:5.3.2-1+deb9u1build0.16.04.1"]}],"products":[{"vendor":"rarlab","product":"unrar"}],"references":[{"url":"http://seclists.org/oss-sec/2017/q3/290","tags":["x_refsource_MISC","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence","report"]},{"url":"https://kc.mcafee.com/corporate/index?page=content\u0026id=SB10241","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/201709-24","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12941"},{"url":"https://github.com/advisories/GHSA-hj36-9f44-43h2"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-12941","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0302.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=21134","tags":["report"]},{"url":"https://lists.opensuse.org/opensuse-updates/2017-06/msg00085.html","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/08/18/2","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2017/08/18/6","tags":["web"]},{"url":"https://advisories.mageia.org/MGASA-2017-0304.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=21563","tags":["report"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180862-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1046882","tags":["report"]},{"url":"https://bugzilla.suse.com/1054038","tags":["report"]},{"url":"https://bugzilla.suse.com/513804","tags":["report"]},{"url":"https://bugzilla.suse.com/693890","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2012-6706","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12938","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12940","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12941","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-12942","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20212834-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1187974","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-20006","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-12941","tags":["report"]},{"url":"http://www.openwall.com/lists/oss-security/2017/08/18/6","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-12941","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-12941","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:00:00Z","modified":"2024-08-05T18:51:07.346Z","updated_at":"2026-11-02T14:33:17.264801Z"}],"euvd":[{"id":"EUVD-2017-4465","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:00:00Z","modified":"2024-08-05T18:51:07Z","updated_at":"2026-11-03T02:23:20.155596Z"}],"ghsa":[{"id":"GHSA-hj36-9f44-43h2","title":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2022-05-14T03:17:43Z","modified":"2023-02-02T05:07:35Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:52:32.871435Z"}],"nvd":[{"id":"CVE-2017-12941","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:29:00.547Z","modified":"2026-06-17T01:04:10.853Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:03:57.82609Z"}],"osv":[{"id":"CVE-2017-12941","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:29:00.547Z","modified":"2026-04-16T06:16:04.914835632Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:04.159616Z"},{"id":"DEBIAN-CVE-2017-12941","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:29:00.547Z","modified":"2026-09-01T20:03:42.784832216Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:28.50097Z"},{"id":"UBUNTU-CVE-2017-12941","description":"libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function.","status":"published","published":"2017-08-18T14:29:00Z","modified":"2025-10-24T04:46:27Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:14.122973Z"},{"id":"MGASA-2017-0302","title":"Updated unrar packages fix security vulnerabilities","description":"VMSF_DELTA memory corruption (CVE-2012-6706).\n\nDirectory traversal issue in UnRAR before 5.5.7 (CVE-2017-12938).\n\nlibunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the\nEncodeFileName::Decode call within the Archive::ReadHeader15 function\n(CVE-2017-12940).\n\nlibunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the\nUnpack::Unpack20 function (CVE-2017-12941).\n\nlibunrar.a in UnRAR before 5.5.7 has a buffer overflow in the\nUnpack::LongLZ function (CVE-2017-12942).\n","status":"published","published":"2017-08-24T21:18:23Z","modified":"2026-04-16T06:22:38.615123321Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"MGASA-2017-0304","title":"Updated unrar packages fix security vulnerabilities","description":"Directory traversal issue in UnRAR before 5.5.7 (CVE-2017-12938).\n\nlibunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the\nEncodeFileName::Decode call within the Archive::ReadHeader15 function\n(CVE-2017-12940).\n\nlibunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the\nUnpack::Unpack20 function (CVE-2017-12941).\n\nlibunrar.a in UnRAR before 5.5.7 has a buffer overflow in the\nUnpack::LongLZ function (CVE-2017-12942).\n","status":"published","published":"2017-08-24T21:18:23Z","modified":"2026-04-16T06:23:52.309780524Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"SUSE-SU-2018:0862-1","title":"Security update for unrar","description":"This update for unrar to version 5.6.1 fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2017-12938: Prevent remote attackers to bypass a directory-traversal\n  protection mechanism via vectors involving a symlink to the . directory, a\n  symlink to the .. directory, and a regular file (bsc#1054038).\n- CVE-2017-12940: Prevent out-of-bounds read in the EncodeFileName::Decode call\n  within the Archive::ReadHeader15 function (bsc#1054038).\n- CVE-2017-12941: Prevent an out-of-bounds read in the Unpack::Unpack20\n  function (bsc#1054038).\n- CVE-2017-12942: Prevent a buffer overflow in the Unpack::LongLZ function\n  (bsc#1054038).\n\nThese non-security issues were fixed:\n\n- Added extraction support for .LZ archives created by Lzip compressor\n- Enable unpacking of files in ZIP archives compressed with XZ algorithm and\n  encrypted with AES\n- Added support for PAX extended headers inside of TAR archive\n- If RAR recovery volumes (.rev files) are present in the same folder as usual\n  RAR volumes, archive test command verifies .rev contents after completing\n  testing .rar files\n- By default unrar skips symbolic links with absolute paths in link target when\n  extracting unless -ola command line switch is specified\n- Added support for AES-NI CPU instructions \n- Support for a new RAR 5.0 archiving format\n- Wildcard exclusion mask for folders\n- Added libunrar* and libunrar*-devel subpackages (bsc#513804)\n- Prevent conditional jumps depending on uninitialised values (bsc#1046882)\n","status":"published","published":"2018-04-03T15:16:58Z","modified":"2026-02-04T02:15:34.532486Z","updated_at":"2026-11-02T15:53:44.594517Z"},{"id":"SUSE-SU-2021:2834-1","title":"Security update for unrar","description":"This update for unrar to version 5.6.1 fixes several issues.\n\nThese security issues were fixed:\n\n- CVE-2017-12938: Prevent remote attackers to bypass a directory-traversal\n  protection mechanism via vectors involving a symlink to the . directory, a\n  symlink to the .. directory, and a regular file (bsc#1054038).\n- CVE-2017-12940: Prevent out-of-bounds read in the EncodeFileName::Decode call\n  within the Archive::ReadHeader15 function (bsc#1054038).\n- CVE-2017-12941: Prevent an out-of-bounds read in the Unpack::Unpack20\n  function (bsc#1054038).\n- CVE-2017-12942: Prevent a buffer overflow in the Unpack::LongLZ function\n  (bsc#1054038).\n- CVE-2017-20006: Fixed heap-based buffer overflow in Unpack:CopyString (bsc#1187974).\n\nThese non-security issues were fixed:\n\n- Added extraction support for .LZ archives created by Lzip compressor\n- Enable unpacking of files in ZIP archives compressed with XZ algorithm and\n  encrypted with AES\n- Added support for PAX extended headers inside of TAR archive\n- If RAR recovery volumes (.rev files) are present in the same folder as usual\n  RAR volumes, archive test command verifies .rev contents after completing\n  testing .rar files\n- By default unrar skips symbolic links with absolute paths in link target when\n  extracting unless -ola command line switch is specified\n- Added support for AES-NI CPU instructions\n- Support for a new RAR 5.0 archiving format\n- Wildcard exclusion mask for folders\n- Prevent conditional jumps depending on uninitialised values (bsc#1046882)\n","status":"published","published":"2021-08-25T10:26:54Z","modified":"2026-02-04T03:16:37.694807Z","updated_at":"2026-11-02T15:53:49.605187Z"}]}}
