{"items":[{"id":"NVI-00002215","kind":"vulnerability","title":"Grav Vulnerable to Remote Code Execution (RCE) via Malicious Plugin ZIP Upload in Direct Install Feature","revision":2,"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-w48r-jppp-rcfw","CVE-2026-42607"],"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.0-beta.2 for getgrav/grav. Confirm the publisher’s latest guidance.","source_ids":["sr-0fd18a82f05f82a12c850ec400b4f9ea"],"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-a885661d2265120c4acd95d57849f528"],"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-26T18:10:00.173Z","value":"9.1 CRITICAL (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-a885661d2265120c4acd95d57849f528"}],"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-0fd18a82f05f82a12c850ec400b4f9ea","url":"https://github.com/advisories/GHSA-w48r-jppp-rcfw","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-w48r-jppp-rcfw","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:41.382Z"},{"id":"sr-a885661d2265120c4acd95d57849f528","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42607","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-42607","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:02.489Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-0fd18a82f05f82a12c850ec400b4f9ea"],"technology":"getgrav/grav","known_exclusions":[],"conditions_summary":"### Summary\nAn authenticated user with administrative privileges can achieve Remote Code Execution (RCE) by uploading a specially crafted ZIP file through the \"Direct Install\" tool. While the system attempts to block direct .php file uploads, it fails to inspect the contents of uploaded ZIP archives. Once a malicious plugin is extracted, it can execute arbitrary PHP code or drop a persistent web shell on the server.\n\n### Details\n\nThe vulnerability exists in the handling of the directInstall task within the Admin plugin and the Grav Package Manager (GPM) core.\n\n-    Vulnerable Endpoints: /admin/tools/direct-install\n-   Vulnerable Logic: AdminController.php (lines 1247-1295) and Gpm.php (lines 214-285).\n-    Root Cause: The function Installer::install() (called in Gpm.php:291) extracts the contents of the ZIP file directly into the /user/\n\nplugins/ or /user/themes/ directories without validating the file extensions or the content of the files inside the archive.\n\n### PoC\n1. Prepare the Malicious Plugin\n\nCreate a directory named shellplugin and add the following files:\n\nshellplugin.php:\n```\n\n<?php\nnamespace Grav\\Plugin;\nuse Grav\\Common\\Plugin;\n\nclass ShellpluginPlugin extends Plugin {","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 2.0.0-beta.2"]}],"null_published_at":"2026-11-06T15:18:17.666Z","source_updated_at":"2026-09-10T03:51:07.167Z","source_disclosed_at":"2026-05-05T21:21:10.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:42:41.382Z"},{"id":"NVI-00002215","kind":"vulnerability","title":"Grav Vulnerable to Remote Code Execution (RCE) via Malicious Plugin ZIP Upload in Direct Install Feature","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-w48r-jppp-rcfw","CVE-2026-42607"],"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.0-beta.2 for getgrav/grav. Confirm the publisher’s latest guidance.","source_ids":["sr-0fd18a82f05f82a12c850ec400b4f9ea"],"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}],"schema_version":"1.1.0","source_metrics":[],"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-0fd18a82f05f82a12c850ec400b4f9ea","url":"https://github.com/advisories/GHSA-w48r-jppp-rcfw","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-w48r-jppp-rcfw","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:41.382Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-0fd18a82f05f82a12c850ec400b4f9ea"],"technology":"getgrav/grav","known_exclusions":[],"conditions_summary":"### Summary\nAn authenticated user with administrative privileges can achieve Remote Code Execution (RCE) by uploading a specially crafted ZIP file through the \"Direct Install\" tool. While the system attempts to block direct .php file uploads, it fails to inspect the contents of uploaded ZIP archives. Once a malicious plugin is extracted, it can execute arbitrary PHP code or drop a persistent web shell on the server.\n\n### Details\n\nThe vulnerability exists in the handling of the directInstall task within the Admin plugin and the Grav Package Manager (GPM) core.\n\n-    Vulnerable Endpoints: /admin/tools/direct-install\n-   Vulnerable Logic: AdminController.php (lines 1247-1295) and Gpm.php (lines 214-285).\n-    Root Cause: The function Installer::install() (called in Gpm.php:291) extracts the contents of the ZIP file directly into the /user/\n\nplugins/ or /user/themes/ directories without validating the file extensions or the content of the files inside the archive.\n\n### PoC\n1. Prepare the Malicious Plugin\n\nCreate a directory named shellplugin and add the following files:\n\nshellplugin.php:\n```\n\n<?php\nnamespace Grav\\Plugin;\nuse Grav\\Common\\Plugin;\n\nclass ShellpluginPlugin extends Plugin {","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 2.0.0-beta.2"]}],"null_published_at":"2026-10-31T21:54:04.901Z","source_updated_at":"2026-09-10T03:51:07.167Z","source_disclosed_at":"2026-05-05T21:21:10.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:42:41.382Z"}],"next_cursor":null,"snapshot_revision":"42594"}