All vulnerabilities

Servers and applications

GHSA-h253-r5hw-95r5

Oversized source images can exhaust memory during image transforms

Severity
Medium
Published
23 Sept 2026
Last changed
23 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.1.7
Weakness
Decompression bomb (CWE-409)Allocation without limits (CWE-770)
Sources
Project advisories (GitHub)

Description

Grav does not limit source dimensions before GD or Imagick decodes an image for a Twig or Markdown transform.

Upload checks bound bytes, while the transform path initializes the full source raster before resizing. The existing system.images.max_pixels guard applies only to requested output dimensions on the default-off URL-actions path. An authenticated media author can plant a compressed oversized raster and reference a transform; anonymous requests can then retrigger decode while no derivative exists.

A low-privilege author can cause amplified worker memory exhaustion and page unavailability. Confidentiality and integrity are not affected.

From getgrav/grav's security advisory.

Affected software

SoftwareAffected versions
GravServers and applications · github:getgrav/grav
  • Every version before 2.1.7

About Grav

free software content management system written in PHP

From Wikidata, CC0 1.0.
Monthly downloads (Packagist)
1,748Packagist, 15 Nov 2026
Total downloads (Packagist)
92,444Packagist, 15 Nov 2026
GitHub stars
15,725GitHub, 15 Nov 2026
Forks
1,430GitHub, 15 Nov 2026
Latest release
2.2.29GitHub, 15 Nov 2026
Released
11 Nov 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First published on GitHub
2 Aug 2014GitHub

References