{
  "id": "CVE-2025-66301",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-66301",
  "published_at": "2025-12-01T21:30:43.359Z",
  "title": "Grav ihas Broken Access Control which allows an Editor to modify the page's YAML Frontmatter to alter form processing actions",
  "vendor": "getgrav",
  "product": "grav",
  "cvss": {
    "score": 9.6,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-04T23:01:56Z",
    "first_seen_at": null,
    "days_after_publication": 3.1,
    "source": "metasploit",
    "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grav_twig_ssti_sandbox_bypass_rce.rb"
  },
  "poc_repo_count": 0,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical fields on a POST request to /admin/pages/{page_name}, an editor with only permissions to change basic content on the form is now able to change the functioning of the form through modifying the content of the data[_json][header][form] which is the YAML frontmatter which includes the process section which dictates what happens after a user submits the form which include some important actions that could lead to further vulnerabilities. This vulnerability is fixed in 1.8.0-beta.27.",
  "cwe": "CWE-285",
  "cpes": [
    "cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:*",
    "cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.6,
    "nvd": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "getgrav",
        "product": "grav",
        "ranges": [
          "\u003c 1.8.0-beta.27"
        ],
        "fixed_in": [
          "1.8.0-beta.27"
        ]
      }
    ],
    "upgrade": [
      "Upgrade grav to 1.8.0-beta.27 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/getgrav/grav/security/advisories/GHSA-v8x2-fjv7-8hjh"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/grav_twig_ssti_sandbox_bypass_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE (exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce)",
      "published_at": "2025-12-04T23:01:56Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [],
  "rules": []
}
