All vulnerabilities

Servers and applications

GHSA-7vcx-mhxq-9j96

Denial of service via image-transform endpoint accepting unvalidated target dimensions

Severity
High 7.5
Published
20 Aug 2026
Last changed
20 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
12.2.0
Weakness
Uncontrolled resource consumption (CWE-400)CWE-405
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Sources
Project advisories (GitHub)

Description

Denial of service on GET /assets/ in Directus. The transform-eligibility check in AssetsService.getAsset validates only the source image's stored dimensions against ASSETS_TRANSFORM_IMAGE_MAX_DIMENSION (default 6000). The user-supplied target dimensions in the width and height query parameters are passed to Sharp's resize operation with no equivalent cap, so a tiny source image can be transformed into a very large raster, materialising a gigabyte-scale RGBA pixel buffer per request.

On deployments that have configured any of the four directus_settings branding-image fields (project_logo, public_background, public_foreground, public_favicon), the transform endpoint is reachable by an unauthenticated attacker, because those fields are exempt from the normal access check and their identifiers are disclosed by the unauthenticated /server/info endpoint. On other deployments, exploitation requires an authenticated account with directus_files:read on at least one image.

From directus/directus's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
DirectusServers and applications · github:directus/directus
  • Every version before 12.2.0

About Directus

The flexible backend for all your projects 🐰 Turn your DB into a headless CMS, admin panels, or apps with a custom UI, instant APIs, auth & more.

From its GitHub repository.
Weekly downloads (npm)
30,924npm, 15 Nov 2026
Docker Hub pulls
50,954,770Docker Hub, 15 Nov 2026
GitHub stars
38,722GitHub, 15 Nov 2026
Forks
5,000GitHub, 15 Nov 2026
Latest release
v12.6.1GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Dec 2012GitHub

References