Repository navigation
v1.15.13 — Check every name an archive entry can be extracted under, and pool connections to S3 storage again
Check every name an archive entry can be extracted under, and pool connections to S3 storage again.
Upload inspection now checks each name an extractor may give an archive entry, including a ZIP entry's raw name field when its Unicode Path field names it differently, and a tar entry's GNU long name. The vendored framework moves to blamejs 0.21.8, and connections to the configured S3 storage are pooled again, which removes the extra TLS handshake per request that v1.15.12 introduced.
Changed
-
Move to blamejs 0.21.8 — The vendored framework moves from blamejs 0.21.6 to 0.21.8, with
@blamejs/pki0.9.10. Changes that reach HermitStash: -
Connections to the configured S3 storage and backup buckets are pooled again. v1.15.12 opened a new TLS connection for each S3 request to Amazon S3, Backblaze B2 and other HTTP/1.1 object stores. The server now lists the endpoint and the bucket host of each configured S3 client as a trusted keep-alive origin; every other outbound origin, such as a webhook receiver, still uses one connection per request (CVE-2026-105481). The list is set when the server starts, so an S3 endpoint or bucket you change in Admin > Settings is pooled after the next restart. An
http://S3 endpoint is not pooled. -
Resolved outbound host addresses are cached for each DNS record's TTL, up to 5 minutes, in place of the fixed 60 seconds v1.15.12 set. DNS-over-HTTPS queries share one HTTP/2 connection, and TLS sessions are resumed on hosts with both IPv4 and IPv6 addresses.
-
Outbound TLS connections no longer offer certificate compression. The server's listener already offered none.
-
A tar archive that GNU tar writes with names longer than 100 bytes, pax archives with non-ASCII names, and tar headers with base-256 numeric fields are now read and inspected. v1.15.12 refused tar archives with GNU long-name records.
Security
- Check every name a ZIP or tar entry can be extracted under — unzip, 7-Zip and bsdtar name a ZIP entry from its Info-ZIP Unicode Path field when the field matches, while Python's zipfile and Java use the raw name field. Upload inspection now checks both, so a ZIP whose name field is
../../evil.txtand whose Unicode Path field isdocs.txtis refused asarchive.zip-slip. A tar entry is checked under the name and link target its GNU long-name and long-link records give it. Inspection also compares each ZIP local header with its central directory entry and refuses a mismatch asarchive-read/lfh-cd-skew.
Migration
-
Uploads that inspection now refuses — These uploads are refused with
Archive contents failed inspection.orArchive could not be read for inspection., where earlier releases accepted them: -
An archive with a Windows device name as any path segment, such as
lib/aux.c,drivers/con/xorports/COM1.h(archive.filename.reserved-name). Windows cannot extract such a file. -
An archive with a directory or file name that ends in a dot or a space, or starts with a space, such as
Acme Inc./x.pdf(archive.filename.leading-trailing). -
An archive with two entries that name the same file in different spellings, such as
d/a.txtnext to./d/a.txt,d//a.txtord\a.txt. -
A tar archive with a name or link target that is not valid UTF-8, and a V7-format tar, which carries no ustar marker (
archive-tar/bad-magic). -
A tar archive whose headers GNU tar and bsdtar read differently, such as a GNU long-name record with no entry after it (
archive-tar/dangling-extended-header).
The refusal names the rule in the audit log's UPLOAD_REJECTED detail. Re-create the archive without the affected names, or in the zip or pax tar format.