{"id":"CVE-2017-20006","aliases":["DEBIAN-CVE-2017-20006","EUVD-2017-11021","GHSA-pwpf-mf84-2wmh","SUSE-SU-2021:2834-1","UBUNTU-CVE-2017-20006"],"status":"published","title":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from...","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","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-07","score":0.01222,"percentile":0.68905,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2021-07-01T02:54:44Z","modified":"2026-09-01T20:03:47Z","fixes":[{"ecosystem":"Debian:12","package":"unrar-nonfree","fixed_in":["1:5.6.6-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"unrar-nonfree","fixed_in":["1:5.6.6-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"unrar-nonfree","fixed_in":["1:5.6.6-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:5.6.6-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","1:5.5.8-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.6.6-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","1:5.5.8-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.6.6-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","1:5.5.8-1","3.3.6-2","3.3.6-2.0.1","3.4.3-1"]},{"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"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"unrar-nonfree","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:5.5.8-1"]}],"products":[{"vendor":"rarlab","product":"unrar"}],"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/unrar/OSV-2017-104.yaml","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4373","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/aawc/unrar/commit/0ff832d31470471803b175cfff4e40c1b08ee779","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-20006"},{"url":"https://github.com/advisories/GHSA-pwpf-mf84-2wmh"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-20006","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20212834-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1046882","tags":["report"]},{"url":"https://bugzilla.suse.com/1054038","tags":["report"]},{"url":"https://bugzilla.suse.com/1187974","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/security/cve/CVE-2017-20006","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-20006","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-20006","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-20006","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T02:54:44Z","modified":"2024-08-05T21:45:24.54Z","updated_at":"2026-11-02T14:33:11.59359Z"}],"euvd":[{"id":"EUVD-2017-11021","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T02:54:44Z","modified":"2024-08-05T21:45:24Z","updated_at":"2026-11-03T02:23:04.143753Z"}],"ghsa":[{"id":"GHSA-pwpf-mf84-2wmh","title":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from...","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2022-05-24T19:06:46Z","modified":"2023-01-30T05:00:36Z","cwes":["CWE-787"],"updated_at":"2026-11-02T14:46:14.069279Z"}],"nvd":[{"id":"CVE-2017-20006","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T03:15:07.42Z","modified":"2026-06-17T01:14:54.77Z","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":"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:21.492973Z"}],"osv":[{"id":"CVE-2017-20006","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T03:15:07.42Z","modified":"2026-04-11T04:38:17.87953Z","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:05.486486Z"},{"id":"DEBIAN-CVE-2017-20006","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T03:15:07.42Z","modified":"2026-09-01T20:03:47.329365627Z","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:29.100767Z"},{"id":"UBUNTU-CVE-2017-20006","description":"UnRAR 5.6.1.2 and 5.6.1.3 has a heap-based buffer overflow in Unpack::CopyString (called from Unpack::Unpack5 and CmdExtract::ExtractCurrentFile).","status":"published","published":"2021-07-01T03:15:00Z","modified":"2025-10-24T04:46:41Z","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:54:14.977781Z"},{"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"}]}}
