# CVE-2026-62672: Grav: Authenticated ReDoS via regex_replace in Twig Sandbox

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T15:44:36.287Z
- Modified: 2026-09-17T16:45:06.372Z
- Also known as: GHSA-37f3-6p89-6qr9
- Related: CVE-2026-62237
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Grav is a file-based Web platform. Prior to 2.0.4, Grav allowlists the regex_replace filter and function in system/config/security.yaml, and GravExtension::regexReplace() passes an editor-controlled pattern directly to preg_replace(). When security.twig_content.process_enabled is enabled, an authenticated page editor can publish a catastrophically backtracking pattern that consumes PHP worker CPU and denies service to site visitors. This issue is fixed in version 2.0.4.

(As written by CVE List.)

## Affected

- getgrav grav: < 2.0.4
- getgrav/grav (Packagist): before 2.0.4

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9> (exploit, web)
- <https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a> (web)
- <https://github.com/getgrav/grav/releases/tag/2.0.4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-62672> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2026-62672](https://www.cve.org/CVERecord?id=CVE-2026-62672), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-37f3-6p89-6qr9](https://github.com/advisories/GHSA-37f3-6p89-6qr9), CC-BY-4.0, modified 2026-09-17
- NVD: [CVE-2026-62672](https://nvd.nist.gov/vuln/detail/CVE-2026-62672), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-62672 · Whole record: https://cve.day/CVE-2026-62672.json · Rebuilt by cve.day 2026-11-25T22:59:33.973Z
