High-severity WinRAR 0-day exploited for weeks by 2 groups
74 points
2 days ago
| 4 comments
| arstechnica.com
| HN
pityJuke
2 days ago
[-]
> The exploit abused that feature to trigger a previously unknown path traversal flaw that caused WinRAR to plant malicious executables in attacker-chosen file paths %TEMP% and %LOCALAPPDATA%, which Windows normally makes off-limits because of their ability to execute code.

This seems... wrong? Isn't %LOCALAPPDATA% commonly used to store executables for programs that want to install for a single user and not the whole computer? An example of which includes Google Chrome?

reply
jeroenhd
2 days ago
[-]
ESET's story seems to make more sense: https://www.welivesecurity.com/en/eset-research/update-winra...

The exploit abuses ADSes with ..\ in the name to drop files on the system that aren't visible in the WinRAR file browser. It drops malware in the temp directory and then a .lnk in the Startup directory to activate an attack against COM, influencing the DLL that's being loaded by legitimate applications.

reply
dataflow
2 days ago
[-]
> This seems... wrong? Isn't %LOCALAPPDATA% commonly used to store executables for programs that want to install for a single user and not the whole computer? An example of which includes Google Chrome?

Maybe you're thinking of %AppData%?

reply
gruez
2 days ago
[-]
No, he's right.

>By default, VS Code is installed under C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code.

https://code.visualstudio.com/docs/setup/windows

%appdata% would be C:\Users\{Username}\AppData\Roaming

reply
wongarsu
2 days ago
[-]
%LocalAppData% is for files you wouldn't want to synchronize across multiple computers using the same account. Installed programs squarely fall into that category, even just based on size. %AppData% is also commonly used to install executables, but I'd consider that a bug. Just like putting your cache dir in %appdata% instead of %localappdata%
reply
rkagerer
2 days ago
[-]
The only reason publishers use those appdata paths for executables is so regular users can install their software without needing an administrator or a UAC prompt, since Microsoft locked down installing to the various Program Files directories.
reply
wongarsu
2 days ago
[-]
But %localappdata% has all the same advantages and permissions. Using %appdata% for executables is usually a mix of ignorance and indifference. Roaming user profiles are a rare setup nowadays and are even less common on developer machines. And it's not like it breaks in obvious ways, the is just more storage space used and login is slower because more data is transferred from the server, in a setup that devs and PMs don't use
reply
JosephRedfern
2 days ago
[-]
There's a really interesting article from Tavis Ormandy about the instruction set and virtual machine used in RAR: https://blog.cmpxchg8b.com/2012/09/fun-with-constrained-prog....

The docs for the toolchain he implemented (https://github.com/taviso/rarvmtools) allude to a number of bugs, but doesn't sound (??) like they're related to this vulnerability.

reply
LegionMammal978
2 days ago
[-]
The VM has long since been torn out of the RAR decompressor. These days, when it finds a file containing bytecode, it just hashes the bytecode and matches it against a few hardcoded routines that existed at the time.
reply
zzrrt
1 day ago
[-]
Sounds like a good ingredient for a CTF or other puzzle. It could be a small obfuscation where player has to install an ancient version with the VM, or get crazier with a byecode hash collision or abusing undocumented VM quirks.
reply
smokel
2 days ago
[-]
> WinRAR, a utility for compressing files, and has an installed base of about 500 million.

Yeah, right.

Edit: this figure is possibly taken from the WinRAR website [1]. It is more likely that there have been that many cumulative downloads, and even that seems to be a high number. Given that Windows has .zip file support built-in for quite some time, and the fact that nearly nobody downloads .zip files anymore, makes me very suspicious of this kind of statistic.

[1] https://www.win-rar.com/

reply
nerdjon
2 days ago
[-]
I don't doubt the numbers.

Until very recently Windows could not natively unarchive .rar files and you needed to download WinRAR to be able to do this. I still find it not terribly uncommon to run into a random .rar file that previously would have meant I needed to install it, even if I only used it once.

> and the fact that nearly nobody downloads .zip files anymore

Citation needed? Why would people not be downloading .zip files anymore?

reply
hnuser123456
2 days ago
[-]
What I don't get is why people kept installing WinRAR when 7zip can do all the same things and doesn't beg for money.
reply
close04
2 days ago
[-]
WinRAR in my experience has a better speed/compression ratio than 7Zip. If you need best compression 7z is probably best but it will cost you some extra time. The GUI and integration of 7Zip also aren't as polished as WinRAR's. I've been using both since their early versions and each have their individual strengths.
reply
TonyTrapp
2 days ago
[-]
Subjective: WinRAR has nicer UI.

Objective: 7z (the format) doesn't have the same data recovery options as RAR. As it stands, RAR remains one of the best options for long-term archival of data for casual users thanks to its optional recovery records.

reply
nerdjon
2 days ago
[-]
Sure, but if you are a non technical user what are you likely going to search for first.

A lot of non technical people know "winrar" and even if they don't if you search "rar file" on Google the first result is winrar.

reply
wongarsu
2 days ago
[-]
7zip can't do all the same things. It's an incomplete WinRar clone that leaves out a lot of features and adds very little on its own, besides the 7zip format and being open source (both neat things, but that doesn't replace the long list of features it doesn't have or the worse UI)
reply
smokel
2 days ago
[-]
You can't get a citation for this, and I must admit that this was a bit of a hyperbole.

Still, I sincerely believe that in a typical year, a typical user runs into zero or one .zip files. Of course there are exceptions, but these power users do not make up a large part of the population. Facebook and Instagram are not shipped in .zip format for a reason.

Here are some numbers to think about:

According to Microsoft, there are ~1.4 billion devices that run Windows 10 or Windows 11 [1]. Apparently, there are some 200 million additional devices that run older versions of Windows [2].

Now, I could hypothetically ask my mom and dad, and find out that only one of them knows what a .zip file is. The other has not heard of .rar. I don't think I myself am a typical user, but I do know .rar, and I do not even have WinRAR installed.

That leaves me to conclude that it is very, very, unlikely that 31% of all Windows users has WinRAR installed.

[1] https://blogs.windows.com/windowsexperience/2025/06/24/stay-...

[2] https://jitendra.co/how-many-windows-users-are-there-in-the-...

reply
k_roy
2 days ago
[-]
I know many people that still use it because it does all formats, it’s what they’ve been using forever, and the UI is so much better than using zip on Windows.

Of course, RAR usage nowadays is probably a bit more limited to things like usenet downloads, so the people caring enough to install an alternative decompressor is narrowing.

reply
Larrikin
1 day ago
[-]
Don't all email providers automatically zip attachments after a certain number and don't all the major OSes try to hide extensions and include zip handling? I'm not sure what your parents knowing about zip files indicates about its usage.
reply
sim7c00
2 days ago
[-]
i have not seen anything relevant packaged in rar for at since the early 2000s
reply
bdcravens
2 days ago
[-]
I haven't downloaded it in 10 years or more, but I know I've downloaded it (and WinZip) a few dozen times. Back in the day I even had a paid license.

I do reject the idea that "nearly nobody downloads .zip files anymore". It's still pretty common. Crafters using Cricuts and engravers regularly download zip files of fonts, etc. Fedex/UPS package up invoices of a certain size, or consolidated billing accounts, in zip files. Etc.

reply
transcriptase
2 days ago
[-]
Every game mod for every game ever.
reply
jeroenhd
2 days ago
[-]
WinRAR is still very popular in my experience. I don't know why, but it definitely is. People still send me .rar files.
reply
close04
2 days ago
[-]
WinRAR's strong point is support for RAR archives, not ZIP which has been natively supported in Windows for years (since XP?).

I think Windows 11 got native RAR and 7Z support recently but I'm not sure what libraries it uses for this.

reply
hatsuseno
2 days ago
[-]
Sort of, the "zip folder" thing was introduced with the "98 Plus!" pack, but came natively with XP. That said, "natively supported in Windows" is one thing, but the usability was... well, not great. The entire "it's a compressed folder!" analogy seems reasonable, but the implementation wasn't. It ate memory like few other components, crashed often, and because it was treated like a folder only in file explorer the analogy quickly broke down when using a file picker anywhere else. WinZIP and WinRAR were basically requirements if you often worked with zip archives until 7zip came along and did everything just a tad better.
reply
scrlk
2 days ago
[-]
reply
HackerThemAll
1 day ago
[-]
"nearly nobody downloads .zip files anymore"

At this point you lost my attention.

reply
sidewndr46
2 days ago
[-]
While I know that WinRAR has some die-hard user bases, I have never been sure who their paying user base is. Are there some companies that are completely dependent on WinRAR for some internal processes?
reply
AlexandrB
2 days ago
[-]
I'm one of their paying user base. To me WinRAR is like the VLC of archives. I can throw almost anything at it and it will work. Other compression tools, not so much. I'm also a fan of giving money to small, independent developers.
reply
RiverCrochet
2 days ago
[-]
I remember RAR being popular in the early 00's but when 7-zip started becoming a thing I switched to that, and then I rarely saw .RAR's.

RAR seemed to handle large collections of files better on Windows than .zip back in the day, and it had a few features that .zip didn't, so it was something I typically installed on like Windows XP and such back then. But I'm not sure why anyone would use it over 7-zip today unless you have massive numbers of old .RAR files laying around.

I did work for a company that actually licensed WinZip because it was easier to use than the default Windows interface for .zip files.

reply
johnmaguire
2 days ago
[-]
> But I'm not sure why anyone would use it over 7-zip today unless you have massive numbers of old .RAR files laying around.

Even then, 7-zip supports extracting rar.

reply
FirmwareBurner
2 days ago
[-]
> Are there some companies that are completely dependent on WinRAR for some internal processes?

In aa world where 7zip exists, most likely not.

reply
entelechy0
2 days ago
[-]
winrar has been around since I was in high school...21+ years 500 million downloads isn't unreasonable during that time frame real question is: how many windows boxes are up right now and how many have winrar installed
reply
philipwhiuk
2 days ago
[-]
Can someone explain why you would ever want to compress a file into .rar?
reply
exhilaration
2 days ago
[-]
I bet it's Usenet users. WinRAR can split large files into chunks that are uploaded as separate Usenet messages.
reply
JackeJR
2 days ago
[-]
And also have parity built in for file recovery. The alternative will be to use par2 to create parity files.
reply
qingcharles
2 days ago
[-]
The parity files are the killer feature for me. Probably 95% of the downloads from Usenet end up needing them.
reply
dmonitor
2 days ago
[-]
7z also does this now FWIW

I'd still bet it's Usenet users that installed WinRAR way back when and have stuck to it ever since

reply
kayson
2 days ago
[-]
That's me. But now everything is done automagically by nzbget and I use nanazip on my Windows desktop.
reply
DaSHacka
2 days ago
[-]
Better compression over .zip and other older formats (like .gz).

Why people use it over .7z though? For that, I have no idea.

reply
CJefferson
2 days ago
[-]
rar is super popular in China, because for a long time (and still with many modern implementations) it is much better at preserving Chinese filenames in Windows than zip.
reply
chrisjj
1 day ago
[-]
Does zip actually alter some filenames, then?
reply
chrisjj
2 days ago
[-]
Wider filename character support, for one.
reply