Input validation error in sharpcompress - #VU166173
Published: November 13, 2026
Vulnerability details
The vulnerability allows a remote attacker to create ZIP archives with duplicate entry names that may obscure archive contents depending on the extracting application.
The vulnerability exists due to incomplete duplicate-key validation in SharpCompress archive-writing APIs when adding entries: synchronous checks examine only the first existing entry, while asynchronous checks do not reflect newly added entries. A remote attacker can supply names such as file1.txt and FILE1.TXT after an unrelated entry synchronously, or directly asynchronously, to bypass duplicate rejection and produce ambiguous archives.