PatchClock

PHP security digest · 9 Nov 2026

FileGator: Missing authorization in GET /batchdownload allows cross-user retrieval of another user's archive

Medium CVE-2026-94618

Package
filegator/filegator
Fixed in
7.15.0
Published
Mon 9 Nov 2026, 22:17 LisbonUpdated Tue 17 Nov 2026, 00:45 Lisbon
Installs on Packagist
2K

In plain words

A signed-in user with batch download permissions who obtains another user's active archive ID can download that user's ZIP without an ownership check. This crosses the intended boundary in multi-user deployments with separate home directories. A successful download also removes the archive, potentially preventing its owner from downloading it.

Affected versions

PackageAffectedFixed in
filegator/filegator<= 7.14.47.15.0

How serious is it?

Medium is a CVSS score of 4.0 to 6.9: real impact, but the attacker needs something first, such as an account, a particular setting or a user who clicks a link. If your site meets that condition, treat it as High; if not, ship the fix in your next planned release.

filegator/filegator has 2K installs on Packagist, so the advisory reaches a modest number of projects, which does not make yours any safer.

Am I affected?

Check composer.lock for filegator/filegator at version 7.14.4 or earlier; 7.15.0 is fixed. Check for distinct per-user homedir values in users.json, or private_repos => true on the WordPress/LDAP adapter, and users with read, download and batchdownload permissions. Exploitation also requires obtaining another user's archive ID while that archive still exists. The shipped sample configuration alone does not create the separate-home-directory boundary.

Did you install filegator/filegator, or did a dependency?

Composer says why a package is in your project:

composer why filegator/filegator

If the output names your own project, you required filegator/filegator directly and the update is yours to make. If it names another package, filegator/filegator came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not filegator/filegator 7.15.0

Every line it prints is a constraint that blocks 7.15.0. Update the package it names, or raise your own constraint, and run it again until it prints nothing.

What to do

Check which version you have, then update to a fixed release for your branch (7.15.0):

composer show filegator/filegator | grep versions
composer update filegator/filegator

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

If you cannot update yet

The advisory's remediation is to generate IDs with bin2hex(random_bytes(32)), store the creator user/session, home directory and expiry for each archive, and verify the requester matches before streaming. Return 403 or 404 for mismatches or unknown/expired IDs, and delete the metadata with the temporary archive.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if filegator/filegator ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated filegator/filegator, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

filegator/filegator's record

This is one of 2 advisories for filegator/filegator in the digest, the first published on 9 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.

Other advisories for filegator/filegator

  • CVE-2026-94619 · 9 Nov 2026 · Medium · fixed in 7.15.0 FileGator: Missing authorization in POST /upload allows cross-user read and deletion of temporary files

The advisory's description

Summary

GET /batchdownload streams a batch ZIP to any requester who supplies its uniqid, without checking that the current user/session created it. In deployments where users have separate home directories, a valid low-privileged user who obtains an active archive id can download another user's batch archive, disclosing files the per-user boundary otherwise protects. Reported with explicit preconditions and bounded impact — not a universal "any user steals any file" issue.

Details

The archive id is generated with plain uniqid() and no ownership metadata is bound to it before streaming.

  • backend/Services/Archiver/Adapters/ZipArchiver.php:44 — createArchive() uses plain uniqid().
  • backend/Controllers/DownloadController.php:144-145 — batchDownloadStart() reads the tmpfs file by the request-supplied uniqid after only a charset preg_replace().
  • backend/Controllers/DownloadController.php:158 — the tmpfs archive is removed only after streaming.
  • backend/Controllers/routes.php:207-226 — both batch endpoints are exposed to normal roles with read, download, batchdownload.

No user id, session id, home directory, or creator check is applied before streaming. The code path is unchanged since commit 3f03a40 (2022-05-31) and is present in the latest release v7.14.3.

PoC

Preconditions: a multi-user deployment with distinct per-user homedirs (set per-user in users.json, or private_repos => true on the WordPress/LDAP adapter). The shipped sample config (admin/guest both at /, guest with no perms) does not create this boundary on its own. Attacker is a valid user with read, download, batchdownload.

  1. User John (homedir /john) creates secret.txt, signs in, and creates a batch archive via POST /batchdownload. The JSON response returns the archive uniqid.
  2. User Jane (homedir /jane, with batchdownload) signs in normally.
  3. Jane's direct GET /download of /secret.txt returns 302 — the normal home-directory boundary blocks the file.
  4. Jane sends GET /batchdownload?uniqid=<John's id> and receives a valid ZIP containing secret.txt with John's content.

A PHPUnit proof with two real sessions reproduces this end to end (OK, 3 tests / 29 assertions), plus a lifecycle test (OK, 2 tests / 9 assertions). Full test files, run logs, and a real Apache access-log replay demo are available on request.

Lifetime / acquisition: a normal completed download removes the archive at the end of streaming, limiting the window. An aborted/failed download leaves the archive in tmpfs (cleanup never reached). The frontend issues the download as a top-level navigation (window.open('.../batchdownload&uniqid='+ret.uniqid, '_blank')), so the id appears in standard web access logs. That access-log path only adds meaningful impact when log visibility is decoupled from host filesystem access (e.g. a log-aggregation/shared-hosting/downstream-sink reader) and the archive is still alive; if the reader is ops/root on the same host they can already read the storage tree directly. The uniqid() token is timestamp-derived (1,000,000-value space per known second) — included to justify a CSPRNG, not presented as a practical universal brute force.

Impact

Missing authorization (CWE-862) on a temporary download object, leading to cross-user file disclosure across the per-user home-directory boundary in configured multi-user deployments. Secondary effect: a successful replay deletes the victim's pending archive (the GET removes the tmpfs file after streaming), denying the victim their own download if not yet consumed.

Remediation: generate ids with bin2hex(random_bytes(32)); store creator user/session + home dir + expiry per archive id; verify the requester matches before streaming and return 403/404 on mismatch or unknown/expired id; delete metadata with the tmpfs file.

Weakness: CWE-330 Use of Insufficiently Random Values; CWE-862 Missing Authorization. Reported by Yunnn-Yulio, alcalbg.

CWE-862. Missing authorization: an action checks that you are logged in but not that you are allowed to do it.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.