{"items":[{"id":"NVI-00007372","kind":"vulnerability","title":"Grav: media_directory() Twig function allows filesystem path traversal and file content disclosure from sandboxed page content","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-47ch-6w46-6xm7","CVE-2026-72697"],"plain_summary":"OSV carries this publisher advisory for getgrav/grav. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.0.16 for getgrav/grav. Confirm the publisher’s latest guidance.","source_ids":["sr-d92c660b81d29b2e19f957d1ec16b048"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-0f1aeeb03654e9e861c63a30c0ae8172"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-12T15:10:00.207Z","value":"6.5 MEDIUM (3.1)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-4efe351f2209b689089070ffb8c63612"},{"kind":"CVSS","as_of":"2026-10-12T15:10:00.207Z","value":"7.1 HIGH (4.0)","meaning":"disclosure@vulncheck.com severity; no combined Null risk score.","source_id":"sr-4efe351f2209b689089070ffb8c63612"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.376%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.31635. Missing scores are unknown.","source_id":"sr-0f1aeeb03654e9e861c63a30c0ae8172"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-d92c660b81d29b2e19f957d1ec16b048","url":"https://github.com/advisories/GHSA-47ch-6w46-6xm7","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-47ch-6w46-6xm7","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.666Z"},{"id":"sr-4efe351f2209b689089070ffb8c63612","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72697","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-72697","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:49.802Z"},{"id":"sr-0f1aeeb03654e9e861c63a30c0ae8172","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-72697","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.384Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-d92c660b81d29b2e19f957d1ec16b048"],"technology":"getgrav/grav","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `media_directory()` Twig function is allow-listed for use in sandboxed, editor-authored page content (`system/config/security.yaml`). Its implementation, `GravExtension::mediaDirFunc()`, only treats the input as unsafe when it looks like a Grav stream (`user://`, `theme://`, etc). If the input is instead a plain filesystem path, absolute or relative, the stream check is skipped entirely and the raw string is handed straight to `new Media($media_dir)`, which lists every file in that directory whose extension matches a configured media type (which by default includes `txt`, `json`, `xml`, `pdf`, `doc`, `docx`, and more, not just images) and builds `Medium` objects for them.\n\nSeparately, the sandbox's own allow-list for the `Medium` class includes the `filepath` accessor. A code comment directly above that allow-list entry states the developers' intent was for `filepath` to be part of the \"dangerous surface\" that \"stays blocked\", but it is listed as an allowed method on the very same line, contradicting that stated intent.\n\nCombined, a user who can enter page content that gets processed as Twig (`process.twig: true` in frontmatter, or any modular page, which is unsandb","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 2.0.16"]}],"null_published_at":"2026-11-02T20:21:07.851Z","source_updated_at":"2026-09-17T20:45:05.188Z","source_disclosed_at":"2026-09-17T20:27:47.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:49.666Z"},{"id":"NVI-00007372","kind":"vulnerability","title":"Grav: media_directory() Twig function allows filesystem path traversal and file content disclosure from sandboxed page content","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-47ch-6w46-6xm7","CVE-2026-72697"],"plain_summary":"OSV carries this publisher advisory for getgrav/grav. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 2.0.16 for getgrav/grav. Confirm the publisher’s latest guidance.","source_ids":["sr-d92c660b81d29b2e19f957d1ec16b048"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-0f1aeeb03654e9e861c63a30c0ae8172"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.376%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.31635. Missing scores are unknown.","source_id":"sr-0f1aeeb03654e9e861c63a30c0ae8172"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-d92c660b81d29b2e19f957d1ec16b048","url":"https://github.com/advisories/GHSA-47ch-6w46-6xm7","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-47ch-6w46-6xm7","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.666Z"},{"id":"sr-0f1aeeb03654e9e861c63a30c0ae8172","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-72697","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.384Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-d92c660b81d29b2e19f957d1ec16b048"],"technology":"getgrav/grav","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `media_directory()` Twig function is allow-listed for use in sandboxed, editor-authored page content (`system/config/security.yaml`). Its implementation, `GravExtension::mediaDirFunc()`, only treats the input as unsafe when it looks like a Grav stream (`user://`, `theme://`, etc). If the input is instead a plain filesystem path, absolute or relative, the stream check is skipped entirely and the raw string is handed straight to `new Media($media_dir)`, which lists every file in that directory whose extension matches a configured media type (which by default includes `txt`, `json`, `xml`, `pdf`, `doc`, `docx`, and more, not just images) and builds `Medium` objects for them.\n\nSeparately, the sandbox's own allow-list for the `Medium` class includes the `filepath` accessor. A code comment directly above that allow-list entry states the developers' intent was for `filepath` to be part of the \"dangerous surface\" that \"stays blocked\", but it is listed as an allowed method on the very same line, contradicting that stated intent.\n\nCombined, a user who can enter page content that gets processed as Twig (`process.twig: true` in frontmatter, or any modular page, which is unsandb","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 2.0.16"]}],"null_published_at":"2026-10-31T22:13:44.238Z","source_updated_at":"2026-09-17T20:45:05.188Z","source_disclosed_at":"2026-09-17T20:27:47.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:49.666Z"}],"next_cursor":null,"snapshot_revision":"40769"}