# CVE-2026-44738: Grav information disclosure via Twig sandbox allow-list

Source: https://junglewise.ai/threats/cve-2026-44738-grav-information-disclosure-via-twig-sandbox-allow-list  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-11. Updated: 2026-05-13  
License: CC BY 4.0 with a link back

CVE-2026-44738 · Severity: high · CVSS 7.7 · Published 2026-05-11

A vulnerability in the Grav content management system allows users with basic page-editing permissions to access the website's entire configuration file. This file often contains highly sensitive information, such as email passwords, AWS security keys, and API tokens for other services. An attacker with an editor account could use this to steal credentials and compromise other business systems and cloud infrastructure.

Technologies: [Grav](https://junglewise.ai/threats/technologies/grav), [getgrav/grav (Packagist)](https://junglewise.ai/threats/technologies/getgrav-grav). Vendors: [Grav](https://junglewise.ai/threats/vendors/grav), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2026-44738 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-44738 being exploited in the wild.

**How severe is CVE-2026-44738?** High severity, with a CVSS score of 7.7, published 11 May 2026.

**Which products and versions are affected?** Grav < 2.0.0-rc.2, <= 2.0.0-rc.1; getgrav/grav (Packagist) <= 2.0.0-rc.1, ECOSYSTEM:introduced=0,fixed=2.0.0-rc.2.

**Is there a fix for CVE-2026-44738?** Yes. getgrav/grav (Packagist): upgrade to 2.0.0-rc.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-44738 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-44738?** Check whether you run Grav or getgrav/grav (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- getgrav/grav (Packagist): upgrade to 2.0.0-rc.2 or later

  ```sh
  composer require getgrav/grav:^2.0.0-rc.2
  ```


## Technical details

A vulnerability exists in Grav's Twig sandbox configuration where the 'Config::toArray()' method is explicitly permitted in the security allow-list. Users with 'admin.pages' privileges can create or edit a page, enable Twig processing in the frontmatter, and use a Twig payload to dump the entire merged site configuration into the rendered HTML. This configuration object contains sensitive plugin secrets, including SMTP passwords, AWS keys, and OAuth tokens. The issue is rooted in 'system/config/security.yaml' and affects versions up to 2.0.0-rc.1. A patch is available in version 2.0.0-rc.2.

## Affected products

- getgrav Grav <= 2.0.0-rc.1

## Identifiers

- CVE-2026-44738
- GHSA-j274-39qw-32c9

## Timeline

- 2026-05-09: disclosed
- 2026-05-11: advisory: NVD publication date
- 2026-05-13: patched: GitHub Advisory reviewed and updated

## References

- [https://api.github.com/users/Revanth011](https://api.github.com/users/Revanth011)
- [https://github.com/Revanth011](https://github.com/Revanth011)
- [https://api.github.com/users/Revanth011/gists%7B/gist_id%7D](https://api.github.com/users/Revanth011/gists%7B/gist_id%7D)
- [https://api.github.com/users/Revanth011/repos](https://api.github.com/users/Revanth011/repos)
- [https://avatars.githubusercontent.com/u/83944100?v=4](https://avatars.githubusercontent.com/u/83944100?v=4)
- [https://api.github.com/users/Revanth011/events%7B/privacy%7D](https://api.github.com/users/Revanth011/events%7B/privacy%7D)

## Related threats

- [Grav allowlist bypass in Flex form processing](https://junglewise.ai/threats/cve-2026-116019-grav-2-0-15-before-2-2-13-contains-an-allowlist-bypass)
- [Grav improper access control in FlexDirectory::dynamicFlexField()](https://junglewise.ai/threats/cve-2026-114660-grav-from-2-0-0-before-2-2-5-contains-an-improper-access-control)
- [Grav information disclosure via Twig HTTP Basic credentials](https://junglewise.ai/threats/cve-2026-114657-grav-from-2-0-0-before-2-2-5-contains-an-information-disclosure)
- [Grav image pixel limit bypass allows resource exhaustion](https://junglewise.ai/threats/cve-2026-112782-grav-1-7-53-before-1-7-53-5-and-2-0-0-rc-8-before-2-2-2-contains)
- [Grav information disclosure via nested Git repositories](https://junglewise.ai/threats/cve-2026-109326-grav-before-2-1-7-contains-an-information-disclosure)
