Skip to content

grav

v2.0.2 Security

This release includes 2 security fixes for security teams reviewing exposed deployments.

Published 1mo Documentation
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 2 known CVEs

Topics

cms content content-management doctrine flat-file grav
+9 more
markdown php php7 symfony twig website website-builder website-generation yaml

Affected surfaces

rce_ssrf auth

Summary

AI summary

Fixed two security vulnerabilities: ZIP extraction size enforcement and Twig config secret exposure.

Full changelog

Bugfix

  • [security] ZIP extraction in both Direct Install and the internal archiver now enforces the uncompressed-size limit against the bytes actually written, rather than the size each entry claims, so an archive that understates its real size can no longer slip a decompression bomb past the limit (GHSA-8h9x-89f2-m7x3).
  • [security] Editor-authored Twig in page content can no longer read configuration secrets by dumping the config object through a filter such as print_r or json_encode, closing a sandbox bypass that exposed plugin credentials and API keys (GHSA-mc5q-6hpj-rp7j).
  • A failed bin/gpm self-upgrade now reports the specific reason it stopped and records the full details in logs/grav.log, instead of showing a generic "Unknown error" with nothing to act on. Fixes getgrav/grav#4158.
  • A page that displays inline SVG or MathML icons, such as the svg-icon shortcode or GitHub-style alert callouts, no longer renders blank when page-content Twig processing is enabled, because the render-time security scan now skips that legitimate icon markup while still catching injected scripts around it.

Security Fixes

  • GHSA-8h9x-89f2-m7x3 — ZIP extraction now enforces uncompressed-size limit against actual bytes written, preventing decompression bombs.
  • GHSA-mc5q-6hpj-rp7j — Editor-authored Twig can no longer read configuration secrets via filters like `print_r` or `json_encode`, closing a sandbox bypass.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track grav

Get notified when new releases ship.

Sign up free

About grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony

All releases →

Related context

Beta — feedback welcome: [email protected]