#Libarchive
Zip, 7z and RAR in the browser with libarchive compiled to WebAssembly
I made Scissor Zip, a set of archive tools that run in the browser tab: zip.scissor.studio. It zips files, adds AES-256 passwords, opens RAR, 7z and tar.gz, and converts between formats, with libarchive compiled to WebAssembly doing the work on your device. ## The engine The engine is libarchive 3.8.10, the library behind bsdtar, built with Emscripten together with the compression libraries it needs: * zlib 1.3.2 (zlib licence) * bzip2 1.0.8 (BSD-style) * XZ Utils 5.8.4, liblzma only (0BSD) * Zstandard 1.5.7 (BSD-3-Clause) * LZ4 1.10.0 (BSD-2-Clause) * Mbed TLS 3.6.5 (Apache-2.0), for the AES-256 encryption of password-protected zips A small C file in front of libarchive exposes about twenty functions: open a buffer, step through entries, read one, write a new archive. The result is `archive.wasm` at 1.16 MB, about 324 KB with Brotli, plus a 67 KB JavaScript loader. It runs in a module worker, so a 500 MB archive does not freeze the page. All of that is permissive licensing, and the licences page lists each component with its full text in a notices file next to the engine. ## RAR, and what that means for licences RAR is the part people ask about. libarchive reads RAR and RAR5 with its own code: `archive_read_support_format_rar.c` (Andres Mejia) and `archive_read_support_format_rar5.c` (Grzegorz Antoniak), both under the BSD 2-Clause licence. No RARLAB UnRAR source is involved, so there is no UnRAR licence to carry. That also sets the limits. libarchive can read RAR but not write it, and RAR is a closed format that only WinRAR may create. So Scissor Zip extracts RAR and converts it to zip, 7z or tar, but never makes a .rar. Encrypted RAR and 7z archives do not open yet; the page says so instead of failing quietly. Multi-part RAR archives (`name.part1.rar`, `name.part2.rar`, ...) work when you choose all the parts together. Each part has its own headers, so they cannot simply be joined. The C side gives libarchive one buffer per volume with `archive_read_append_callback_data`, plus read, seek and switch callbacks, and libarchive moves from part to part itself. Split 7z and zip archives (`.001`, `.002`, ...) are just bytes cut into pieces, so those parts are joined into one `File` in JavaScript before the engine sees them. ## Telling a cut-short file from a broken engine Big archives on phones are often incomplete: an interrupted download, or only the first part of a split set. libarchive reports that as "Seek error" or "Malformed 7-Zip archive", which used to reach the visitor as "the engine stopped". A 7z file says in its first 32 bytes how long it should be, so the worker checks that before reading the rest: const head = new DataView((await readBytes(file, 0, 32)).buffer); const want = 32 + Number(head.getBigUint64(12, true)) + Number(head.getBigUint64(20, true)); if (want > file.size) throw new Error(`PARTIAL: ${file.size}/${want}`); The page then says the archive is incomplete, with both sizes, instead of blaming itself. ## How the files stay on the device The browser reads the chosen file with `file.arrayBuffer()`, copies it into the WebAssembly heap, and the result goes back as a Blob download. Our servers have no endpoint for your archives. The Content Security Policy only lets the page connect to its own origin, plus Google's sign-in and Drive services for the optional Google Drive open and save. The Drive scope is `drive.file`, so the site sees only files you open or save with it, and the Network tab in developer tools shows the rest. Error reports carry a code such as ENGINE or MEMORY. When the code alone does not explain the error, the wording goes along too, but anything that looks like a file name or path is removed first. A service worker keeps the pages and the engine, so a tool you have opened once works without a connection. ## The limit: memory Everything happens in the tab's memory. The archive is read into the WebAssembly heap, which can grow to 4 GB, and creating or converting holds the input and the new archive at the same time. Every out-of-memory report so far came from archives over 1 GB on desktop browsers, so the page now warns from 1 GB and suggests splitting. Streaming files through the engine in chunks would raise that ceiling, and it is the next big change I would like to make. ## Try it Try it: zip.scissor.studio It is free, with no account and no ads, in 30 languages. There is also an archive explorer at /app/ that opens several archives side by side, previews images and text, and lets you add, rename or delete files before saving as zip, 7z or tar. If you have an archive it fails to open, I would like to know the format and the tool that made it.
dev.to
November 24, 2026 at 10:49 PM
完整說明與處置步驟 👉 https://icsda.org.tw/libarchive-cve-2026-5121/
November 24, 2026 at 1:21 PM
CVE-2026-77679 - epiphany: path traversal in WebExtension XPI extraction (ZIP slip)
CVE ID : CVE-2026-77679

Published : Nov. 27, 2026, 7:17 a.m. | 13 minutes ago

Description : A path traversal (ZIP slip) vulnerability exists in Epiphany when installing WebExtension packa...
CVE-2026-77679 - epiphany: path traversal in WebExtension XPI extraction (ZIP slip)
A path traversal (ZIP slip) vulnerability exists in Epiphany when installing WebExtension packages from .xpi files. In src/webextension/ephy-web-extension-manager.c, the decompress_xpi_thread() function extracts XPI archives (ZIP format) to disk using libarchive. For each archive entry, the output path is built by concatenating the intended extraction directory with the raw pathname from …
cvefeed.io
November 27, 2026 at 8:10 AM
Hackers Exploit macOS ß vs ss Filename Trick to Bypass Developer Tool Security Checks
Hackers Exploit macOS ß vs ss Filename Trick to Bypass Developer Tool Security Checks
A macOS APFS Unicode flaw lets attackers bypass file exclusion filters in Deno, libarchive, setuptools, and go-slug.
cybersecuritynews.com
November 17, 2026 at 8:47 AM
The archive library libarchive is also affected. Python's setuptools is fixed in version 83.0.0, and CERT/CC advises updating every affected tool.

Source: kb.cert.org/vuls/id/604762

Don't miss out on any news, join our newsletter: internationalcyberdigest.com/ne…
https://kb.cert.org/vuls/id/604762
kb.cert.org
November 16, 2026 at 8:33 PM
CERT/CC vulnerability note VU#604762 details a mismatch between APFS filesystem resolution and application path comparisons using byte-for-byte matching instead of Unicode normalization

techwhoknows.com
CERT/CC Warns of Unicode Normalization Collision on macOS APFS Affecting Deno, libarchive, setuptools and HashiCorp
Multiple vendors issued patches for a filesystem-level flaw where APFS treats different Unicode spellings as the same file, allowing attackers to bypass exclusion filters and overwrite protected files.
techwhoknows.com
November 17, 2026 at 6:33 PM
Apple iOS 27.0 libarchive ISO 9660 Out-Of-Bounds Write https://packetstorm.news/files/241218 #exploit
November 13, 2026 at 11:17 PM
符号なし整数のラップで壊れたRAR5が「正常なEOF」になる話をZennに書きました。libarchiveのRAR5パーサーで、整数ラップがARCHIVE_EOFに化けてデータ欠けに気づけなくなるバグの調査・修正と、回帰テストの設計についての記録です https://zenn.dev/tasodoufu/articles/rar5-unsigned-underflow-silent-eof
November 13, 2026 at 1:59 PM
So I was under the impression that the BSDs mostly have stayed away from Info-ZIP unzip, since libarchive and bsdunzip originates from FreeBSD, and the other BSDs seem to have likewise adopted that too.

But wait, what about macOS? Oh...
November 9, 2026 at 11:48 AM
Also bsdunzip is safe, but I hope that's not a surprise to anyone given that it's Info-ZIP in command-line parameters only and uses libarchive as the backend. I do hope Linux distros will consider testing bsdunzip as a drop-in replacement for Info-ZIP unzip sometime in the future, even though […]
Original post on hachyderm.io
hachyderm.io
November 8, 2026 at 11:28 PM
BSD does what GNUn't I guess (libarchive)
November 7, 2026 at 1:24 PM
А почему мне блядь никто не рассказал, что zip для атрибутов в #beos / #haikuos имеет лимит 64К, но зато #bsdtar большие атрибуты без проблем поддерживает? М? И почему его нет в стандартной поставке тогда?
Правда, **важный момент, надо отключить LIBARCHIVE** , иначе он их дублирует в base64 и […]
Original post on liilliil.ru
liilliil.ru
November 8, 2026 at 2:16 PM
Opening RAR and 7Z Files in the Browser: 14 New Archive Tools, Zero Uploads
Most "unzip online" sites make you upload your archive to a stranger's server. The new archive family on Loona Developer Tools does the opposite: everything runs locally in your browser with libarchive compiled to WebAssembly — files are never uploaded anywhere. ## What shipped (14 new tools, 37 total on the site) **Extractors** — RAR, 7Z, TAR, TAR.GZ, GZ, ISO and a universal extractor that detects the format from the file itself. Each one lists the archive's contents, lets you download single files, or repacks everything as a ZIP. **Converters** — RAR to ZIP, 7Z to ZIP, TAR to ZIP, TAR.GZ to ZIP and ZIP to TAR.GZ. **Creators** — a TAR File Creator with a hand-written ustar writer, and a GZIP Compressor built on the browser's native CompressionStream. ## How it was tested 110 automated checks, and the fixtures were real: Python-built ZIP/TAR/TAR.GZ/TAR.BZ2/TAR.XZ archives, a real .7z written by py7zr, a real ISO9660+Joliet image, and genuine RAR4 and RAR5 files from libarchive's own test corpus — extracted contents verified byte-for-byte. The hand-written TAR writer was validated by reading its output back with Python's tarfile, including a 207-character path that exercises the ustar prefix-split logic. ## Honest limits, printed on every page RAR can be opened and converted _from_ , but never created — the format is proprietary and there is no free encoder. Password-protected archives are detected and refused, not cracked. One engine quirk found during testing: libarchive.js cannot read a raw single-file .gz stream, so the GZ extractor uses the native DecompressionStream as its primary path instead. The full set lives at Loona Developer Tools — free, no sign-up, and part of a 28-site, 983-page network of on-device tools.
dev.to
November 8, 2026 at 4:37 PM
It also includes edit 2.0. I will be updating curl.exe. I am also distributing my own builds of libarchive (bsd tar.exe and other tools) and soon curl.exe.

The tar.exe that ships with windows supports zip files and in 2025 7z files. All three versions should get that. I'm testing for edge cases.
November 7, 2026 at 4:15 AM
🚨 EUVD-2025-17573
📊 3.9/10

📝 A vulnerability has been identified in the libarchive library. This flaw can be triggered when file streams are piped into bsdtar, potentially allowing for reading ...

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-17573

#cybersecurity #infosec #cve #euvd
November 6, 2026 at 7:03 PM
🚨 EUVD-2025-17575
📊 3.9/10

📝 A vulnerability has been identified in the libarchive library. This flaw involves an integer overflow that can be triggered when processing a Web Archive (WARC) fil...

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-17575

#cybersecurity #infosec #cve #euvd
November 6, 2026 at 7:04 PM
🚨 EUVD-2025-17574
📊 2.8/10

📝 A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names....

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-17574

#cybersecurity #infosec #cve #euvd
November 6, 2026 at 7:03 PM
🚨 EUVD-2025-17576
📊 6.6/10

📝 A vulnerability has been identified in the libarchive library. This flaw can lead to a heap buffer over-read due to the size of a filter block potentially exceeding...

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-17576

#cybersecurity #infosec #cve #euvd
November 6, 2026 at 7:04 PM
I'm going to have to clean this up, but I merged this AI mistake because it was so interesting and not far from what I wanted .

Apparently public GitHub action runners will let you run a container. My goal was for that container to be a runner

github.com/zippy1981/wi...
Build libarchive 3.8.11 · zippy1981/windows-nano-baseimages@db417ae
Practical Usable Windows Nano Base images. Contribute to zippy1981/windows-nano-baseimages development by creating an account on GitHub.
github.com
November 6, 2026 at 9:28 PM
🚨 EUVD-2021-23552
📊 n/a

📝 libarchive 3.4.1 through 3.5.1 has a use-after-free in copy_string (called from do_uncompress_block and process_block).

🔗 https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-23552

#cybersecurity #infosec #cve #euvd
November 2, 2026 at 7:02 PM
can someone for the love of god update lib32-libarchive
November 1, 2026 at 12:29 PM
5/6

https://github.com/libarchive/libarchive/compare/v3.8.10...v3.8.11
(* Security fix *)
l/openexr-3.5.3-x86_64-1.txz: Upgraded.
This update fixes security issues.
For more information, see:
https://github.com/AcademySoftwareFoundation/openexr/security/advisories/GHSA-whf
November 1, 2026 at 12:01 AM
4/6

Recompiled against kddockwidgets-2.5.1.
l/aom-3.15.3-x86_64-1.txz: Upgraded.
l/fast_float-8.3.3-x86_64-1.txz: Upgraded.
l/libarchive-3.8.11-x86_64-1.txz: Upgraded.
Libarchive 3.8.11 is a security, bugfix and minor feature release.
For more information, see:
November 1, 2026 at 12:01 AM
CVE-2026-118599 - epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install
CVE ID : CVE-2026-118599

Published : Oct. 31, 2026, 10:16 a.m. | 1 hour ago

Description : A file overwrite vulnerability exists in Epiphany when installing Web...
CVE-2026-118599 - epiphany: TAR-based .xpi with hard links can overwrite user files during WebExtension install
A file overwrite vulnerability exists in Epiphany when installing WebExtension packages from .xpi files. In src/webextension/ephy-web-extension-manager.c, decompress_xpi_thread() used libarchive with archive_read_support_format_all() (and filters), so the installer did not require a real ZIP. A TAR file named *.xpi was extracted. TAR supports hard-link entry types; with Epiphany's archive_write_disk options (including ARCHIVE_EXTRACT_PERM), …
cvefeed.io
October 31, 2026 at 12:10 PM