# WinRAR

**WinRAR** 是一款由 RARLAB 开发的 Windows 平台试用版文件归档工具，于 1995 年首次发布；它以专有的 RAR（Roshal ARchive）格式和 ZIP 格式创建归档文件，并可解压多种其他归档格式。<sup>[1](https://deepsec.net/docs/Slides/2019/Extracting_a_19-year-old_Code_Execution_from_WinRAR_Nadav_Grossman.pdf)</sup><sup> • </sup><sup>[2](https://winrar.de/dl/WinRAR_product_brochure3p.pdf)</sup> 该软件的版权归亚历山大·L·罗谢尔（Alexander L. Roshal）所有，授权方与发行方为德国柏林的 win.rar GmbH。<sup>[3](https://www.win-rar.com/winrarlicense.html?L=26)</sup>

| 关键事实 | 详情 |
|---|---|
| 创作者 | 尤金·罗谢尔（Eugene Roshal）；RAR 意为 Roshal ARchive，算法创建于 1993 年，WinRAR 于 1995 年发布<sup>[4](https://eugeneroshal.org/biography/)</sup><sup> • </sup><sup>[5](https://winrar.es/soporte/general/21/historia-del-rar)</sup> |
| 许可 | 试用版软件：最长 40 天免费测试期，之后须购买许可证<sup>[3](https://www.win-rar.com/winrarlicense.html?L=26)</sup> |
| 发行方 | win.rar GmbH，Marienstrasse 12, 10117 Berlin；自 2002 年 4 月 1 日起为 RARLAB 产品的官方发行方<sup>[3](https://www.win-rar.com/winrarlicense.html?L=26)</sup><sup> • </sup><sup>[6](https://www.win-rar.com/fileadmin/downloads/WinRAR_Product_brochure3p.pdf)</sup> |
| 当前格式 | RAR 5.0，2013 年 4 月发布，由 WinRAR 5.0 及更高版本支持<sup>[7](https://wwws.loc.gov/preservation/digital/formats/fdd/fdd000460.shtml)</sup> |
| 加密 | AES 256 位，可选加密文件名及全部元数据<sup>[8](https://www.win-rar.com/encrypt-rar-file.html?L=0)</sup> |
| 完整性校验 | RAR 5.0 存储 256 位 BLAKE2sp 哈希，取代此前的 32 位 CRC32 校验和<sup>[7](https://wwws.loc.gov/preservation/digital/formats/fdd/fdd000460.shtml)</sup> |
| 最新版本 | WinRAR 7.22 正式版，2026 年 5 月 1 日发布，完成了对固实归档删除操作的修复<sup>[9](https://www.win-rar.com/singlenewsview.html?L=7&cHash=781fc1eac1f32f7970342041520b039c&tx_ttnews%5Btt_news%5D=301)</sup> |

## 历史

RAR 压缩器由尤金·罗谢尔创建，并以他的姓氏命名。据 winrar.es 的历史页面记载，罗谢尔在俄罗斯车里雅宾斯克技术大学计算机科学系就读期间开始研究压缩算法，1991 年进行了最初的不成功尝试，1993 年初完成了第一个足够好的非公开版本 RAR。首个测试版 0.1 版于 1993 年 3 月 10 日面世，传播范围极为有限，流通的副本不足十份，有些还是从软盘复制到软盘。1993 年稍晚及 1994 年，借助安德烈·斯帕西博日科（Andrey Spasibozhko）和芬兰的罗恩·德怀特（Ron Dwight）的帮助，分发通过 BBS 系统和 FidoNet 扩大开来，后者组织了一个全球性的分发者和翻译者网络。<sup>[5](https://winrar.es/soporte/general/21/historia-del-rar)</sup>

**Windows 版本。** Windows 版 RAR 的首个测试版 WinRAR 2.00 beta 1 于 1996 年 5 月 27 日发布，正式版 2.00 于 1996 年 10 月随后推出。<sup>[5](https://winrar.es/soporte/general/21/historia-del-rar)</sup> 2002 年罗恩·德怀特去世后，此前作为德国注册中心的 win.rar GmbH 接管了 RAR 和 WinRAR 的注册管理；该公司成立于 2002 年 2 月 20 日，自 2002 年 4 月 1 日起负责 WinRAR 和 rarlab.com 的支持、营销与销售。<sup>[5](https://winrar.es/soporte/general/21/historia-del-rar)</sup><sup> • </sup><sup>[6](https://www.win-rar.com/fileadmin/downloads/WinRAR_Product_brochure3p.pdf)</sup>

## RAR 5.0 格式

RAR5 即 Roshal ARchive 格式的第 5 版，于 2013 年 4 月发布，由 WinRAR 5.0 及更高版本支持。美国国会图书馆的格式描述记录了对格式结构、压缩算法和加密算法的重大变更：时间戳以[协调世界时](https://www.edgepedia.org/zh/coordinated-universal-time)而非此前的本地时间存储，文件名和归档注释以 UTF-8 存储，32 位 CRC32 校验和被 256 位 BLAKE2sp 哈希取代，最大路径长度增至 2048 个字符。<sup>[7](https://wwws.loc.gov/preservation/digital/formats/fdd/fdd000460.shtml)</sup> RAR5 文件签名是十六进制序列 52 61 72 21 1A 07 01 00，以 ASCII 字符“Rar!”开头。<sup>[7](https://wwws.loc.gov/preservation/digital/formats/fdd/fdd000460.shtml)</sup>

该格式的技术说明将归档描述为：可选的自解压模块，随后是 RAR 5.0 签名、可选的归档加密头、主归档头、可选的注释、一系列文件头（每个文件头后可跟用于 NTFS ACL 和流的服务头）、可选的恢复记录，以及归档结束头。<sup>[10](https://www.rarlab.com/technote.htm?from=20423)</sup> 每个文件头中的压缩信息在其低 6 位存储压缩算法版本；版本 0 的归档可由 RAR 5.0 及更新版本解包，版本 1 的归档可由 RAR 7.0 及更新版本解包。第 7 位定义固实标志，使 RAR 继续使用处理先前文件后留下的压缩字典。<sup>[10](https://www.rarlab.com/technote.htm?from=20423)</sup>

**完整性与恢复。** 对于 RAR 5.0 编码器，BLAKE2sp 是唯一强制性的哈希项，当请求更强哈希时，它取代文件哈希额外记录中的 CRC32。恢复记录允许修复损坏的归档，为可选项；不含恢复记录的归档是有效的，且被广泛使用。<sup>[11](https://github.com/bitplane/rar-research/blob/master/doc/INTEGRITY_WRITE_SIDE.md)</sup>

## 功能

WinRAR 可以创建和解包跨多个分卷的归档；其突出能力包括压缩文档和多媒体文件、加密文件、处理自身格式之外的归档格式、可编程的自解压（SFX）归档、修复已损坏的归档，以及支持 Unicode。<sup>[9](https://www.win-rar.com/singlenewsview.html?L=7&cHash=781fc1eac1f32f7970342041520b039c&tx_ttnews%5Btt_news%5D=301)</sup> 它可打包为 RAR 和 ZIP 两种格式，并可解包大量格式，包括 RAR、ZIP、7-ZIP、GZip、ACE 和 TAR。<sup>[2](https://winrar.de/dl/WinRAR_product_brochure3p.pdf)</sup>

**加密。** WinRAR 使用 AES 256 位作为其数据加密标准。<sup>[12](https://www.win-rar.com/uploads/media/winrar-legal.pdf)</sup> 通过“设置密码”按钮添加加密，并带有“加密文件名”选项；启用后，WinRAR 还会加密所有元数据，使文件内容无法被猜测。<sup>[8](https://www.win-rar.com/encrypt-rar-file.html?L=0)</sup> 根据官方 FAQ，RAR 加密不含后门，因此恢复丢失密码的唯一方法是尝试所有可能的字符组合，即便是 WinRAR 作者也无法提取受密码保护的加密文件。<sup>[13](https://www.win-rar.com/faq0.html?%3A~%3Atext=WinRAR_is_free_to_use.you_must_purchase_a_license.&L=1)</sup>

**命令行与图形界面。** WinRAR 同时提供图形外壳模式和通过独立的 rar.exe 程序实现的命令行，后者支持的功能比图形界面更多，但不支持 ZIP 及其他非 RAR 格式。命令行版本便于从 BAT 和 CMD 文件中调用 RAR。<sup>[13](https://www.win-rar.com/faq0.html?%3A~%3Atext=WinRAR_is_free_to_use.you_must_purchase_a_license.&L=1)</sup>

## 许可与分发

该软件以“先试后买”方式分发：任何人可在最长 40 天的测试期内免费使用，之后须购买许可证。试用版可自由分发，前提是软件包未被修改，但除 UnRAR 组件外，软件包的各个独立部分未经书面许可不得分发。<sup>[3](https://www.win-rar.com/winrarlicense.html?L=26)</sup> WinRAR 提供 40 多种语言版本，兼容 [Windows 11](https://www.edgepedia.org/zh/windows-11)、10 和 8.1；Android 平台在 Google Play 上提供 RAR 应用，Linux、FreeBSD 和 Mac OS X 也有命令行版本。<sup>[9](https://www.win-rar.com/singlenewsview.html?L=7&cHash=781fc1eac1f32f7970342041520b039c&tx_ttnews%5Btt_news%5D=301)</sup>

## 性能

LRGEX Compress 项目的一项可复现基准测试覆盖五个数据集、每个运行五次，测得 WinRAR 的总体压缩吞吐量为 78.9 MB/s，而 7-Zip 为 138.0 MB/s，Windows ZIP 为 32.6 MB/s。在混合内容上，WinRAR 的压缩率优于 7-Zip（1.163 对 1.005），但压缩耗时约为其 3.5 倍。在许多小文件上，WinRAR 是四款工具中最慢的，为 7 MB/s；在三个非 ZIP 工具中，它在高可压缩数据上最慢，为 133 MB/s。<sup>[14](https://github.com/LRGEX/Compress)</sup> 这些结果衡量的是压缩吞吐量，而非解压性能；在另一项解压器基准测试中，WinRAR 7.23 解压一个含 1000 个文件的 ZIP 比受测的 7-Zip 引擎更快，为 2.25 秒对 2.91 秒。<sup>[15](https://karuzip.com/en/archive-extractor-benchmark.html)</sup>

## 安全

WinRAR 曾存在多个被广泛利用的漏洞。CVE-2023-38831 是 6.23 Beta 1 之前版本中的一个逻辑漏洞，在处理特制归档时会导致多余的临时文件展开；结合 Windows ShellExecute 处理含空格扩展名时的怪异行为，当用户双击归档内看似无害的文件（如 PNG）时，便可执行任意代码。该漏洞被 CISA、FBI 和 NSA 列为 2023 年最常被利用的漏洞之一。<sup>[16](https://www.ic3.gov/CSA/2024/241112.pdf)</sup><sup> • </sup><sup>[17](https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2023/CVE-2023-38831.html)</sup>

CVE-2025-8088 是一个利用 NTFS 备用数据流的路径遍历漏洞，2025 年 7 月中旬作为零日漏洞被发现，被与俄罗斯结盟的 RomCom 组织用于鱼叉式网络钓鱼活动；一个看似只含单个无害文件的特制归档，会在受害者打开时部署恶意 DLL。<sup>[18](https://web-assets.eset.com/fileadmin/ESET/INT/Landing/2026/ATP_Report/APT_Activity_Report_Q2_2025-Q3_2025.pdf)</sup> RARLAB 通过 2025 年 7 月 30 日发布的 WinRAR 7.13 予以解决，该版本修复了一个目录遍历漏洞，其中 Windows 版 WinRAR、RAR、UnRAR 和 UnRAR.dll 可能被诱骗使用特制归档中定义的路径，而非用户指定的路径；Unix 版本和 Android 版 RAR 不受影响。<sup>[19](https://www.win-rar.com/whatsnew.html?L=0&x-clickref=1011lxJ6RKhb)</sup> Google 威胁情报小组于 2026 年 1 月报告称，该已修补漏洞仍被与俄罗斯和中国有关联的政府支持威胁行为者广泛、活跃地利用，将隐藏载荷投递到 Windows 启动文件夹等位置，原因是许多用户尚未更新。<sup>[20](https://www.tomshardware.com/tech-industry/cyber-security/winrar-exploit-reportedly-remains-widely-used-by-china-and-russia-state-actors-despite-patch-vulnerability-allows-malicious-archives-to-deliver-hidden-payload-to-windows-startup-folder)</sup> WinRAR 不提供自动更新；在现有版本上安装新版本即可。<sup>[21](https://www.techradar.com/pro/security/still-using-winrar-you-should-probably-look-out-for-these-potentially-dangerous-security-flaws)</sup>

## References

1. [Extracting a 19-Year-Old Code Execution from WinRAR (Nadav Grossman, DeepSec 2019)](https://deepsec.net/docs/Slides/2019/Extracting_a_19-year-old_Code_Execution_from_WinRAR_Nadav_Grossman.pdf)
2. [WinRAR Product Information 2009, winrar.de](https://winrar.de/dl/WinRAR_product_brochure3p.pdf)
3. [WinRAR End User License Agreement (EULA), win-rar.com](https://www.win-rar.com/winrarlicense.html?L=26)
4. [Biography of Eugene Roshal, Eugene Roshal Foundation](https://eugeneroshal.org/biography/)
5. [Historia del RAR, winrar.es](https://winrar.es/soporte/general/21/historia-del-rar)
6. [WinRAR Short Product Information (3 pages), win-rar.com](https://www.win-rar.com/fileadmin/downloads/WinRAR_Product_brochure3p.pdf)
7. [RAR Archive File Format, Version 5 (fdd000460), Library of Congress](https://wwws.loc.gov/preservation/digital/formats/fdd/fdd000460.shtml)
8. [How do I Encrypt a RAR File?, win-rar.com](https://www.win-rar.com/encrypt-rar-file.html?L=0)
9. [WinRAR 7.22 Final released, win-rar.com](https://www.win-rar.com/singlenewsview.html?L=7&cHash=781fc1eac1f32f7970342041520b039c&tx_ttnews%5Btt_news%5D=301)
10. [RAR 5.0 archive format technical note, RARLAB](https://www.rarlab.com/technote.htm?from=20423)
11. [INTEGRITY_WRITE_SIDE.md, bitplane/rar-research, GitHub](https://github.com/bitplane/rar-research/blob/master/doc/INTEGRITY_WRITE_SIDE.md)
12. [Encryption software for lawyers and courts, win-rar.com](https://www.win-rar.com/uploads/media/winrar-legal.pdf)
13. [WinRAR Help and Support Tool FAQs, win-rar.com](https://www.win-rar.com/faq0.html?%3A~%3Atext=WinRAR_is_free_to_use.you_must_purchase_a_license.&L=1)
14. [Reproducible compression benchmark: LRGEX Compress vs 7-Zip, WinRAR, and Windows ZIP, GitHub](https://github.com/LRGEX/Compress)
15. [Archive extractor benchmark, Karuzip](https://karuzip.com/en/archive-extractor-benchmark.html)
16. [2023 Top Routinely Exploited Vulnerabilities, CISA/FBI/NSA (AA24-317A)](https://www.ic3.gov/CSA/2024/241112.pdf)
17. [CVE-2023-38831: RARLAB WinRAR Code Execution Vulnerability, Google Project Zero 0-days In-the-Wild](https://googleprojectzero.github.io/0days-in-the-wild/0day-RCAs/2023/CVE-2023-38831.html)
18. [ESET APT Activity Report Q2 2025 - Q3 2025](https://web-assets.eset.com/fileadmin/ESET/INT/Landing/2026/ATP_Report/APT_Activity_Report_Q2_2025-Q3_2025.pdf)
19. [Find out what's new with WinRAR (version history), win-rar.com](https://www.win-rar.com/whatsnew.html?L=0&x-clickref=1011lxJ6RKhb)
20. [WinRAR exploit reportedly remains widely used by China and Russia state actors despite patch, Tom's Hardware](https://www.tomshardware.com/tech-industry/cyber-security/winrar-exploit-reportedly-remains-widely-used-by-china-and-russia-state-actors-despite-patch-vulnerability-allows-malicious-archives-to-deliver-hidden-payload-to-windows-startup-folder)
21. [Still using WinRAR? You should probably look out for these potentially dangerous security flaws, TechRadar](https://www.techradar.com/pro/security/still-using-winrar-you-should-probably-look-out-for-these-potentially-dangerous-security-flaws)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Office and business software › Titles N to Z

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/winrar

English original: https://www.edgepedia.org/winrar
