1. Accueil
  2. Vulnérabilités
  3. CVE-2026-100668

CVE-2026-100668

Grav before 2.0.25 Sandbox Escape via array Filter

Publiée le 26 sept. 2026 · modifiée le 28 sept. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 32/100

Résumé

Grav 2.0.0 through 2.0.24 contain a Twig content sandbox escape. The `array` filter (and its identical function form) is on the sandbox allowlist but is registered without the needs_is_sandboxed guard that print_r, vardump, json_encode, yaml_encode and string carry, and its implementation calls toArray() — or falls back to an (array) cast — without consulting the sandbox method allowlist. Because the `grav` Twig global is the raw Pimple-based dependency injection container, a user who can author Twig in page content can evaluate `grav|array` to read the container's private $values array, including the un-redacted Config service; a second array cast returns the entire configuration tree, disclosing plugin credentials, SMTP and OAuth secrets, Redis passwords, proxy URLs and the security.* subtree that the sandbox's redaction is meant to hide. Because the payload is stored in page content, the disclosed configuration is rendered to anonymous visitors. Grav 1.7 is not affected as it has no Twig content sandbox. Fixed in Grav 2.0.25.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Getgrav (1 ligne(s))
Getgrav
ProduitVersionsCorrigé dansSource
Grav avant 2.0.25 (exclu) — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (CVSS 3.1, CNA:VulnCheck)
Faiblesse
CWE-200 · Divulgation d'information

Comment sont obtenues et calculées ces données