{"items":[{"id":"NVI-00002430","kind":"vulnerability","title":"Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution","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-jrh5-vhr9-qh7q","CVE-2024-52291"],"plain_summary":"OSV carries this publisher advisory for craftcms/cms, craftcms/cms. 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 5.4.6 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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":"The original advisory lists fixed boundaries 4.12.5 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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-0cfc72eea847cd649662e1c1dcafebc0"],"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-06-17T08:06:57.110Z","value":"8.4 HIGH (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-4631891dc1571830f86e9935e8778e49"},{"kind":"CVSS","as_of":"2026-06-17T08:06:57.110Z","value":"7.2 HIGH (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-4631891dc1571830f86e9935e8778e49"},{"kind":"EPSS","as_of":"2026-11-04T12:03:12.000Z","value":"1.253%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.6953. Missing scores are unknown.","source_id":"sr-0cfc72eea847cd649662e1c1dcafebc0"}],"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-181cb602215d2a3792ab326dd36c700d","url":"https://github.com/advisories/GHSA-jrh5-vhr9-qh7q","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jrh5-vhr9-qh7q","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.969Z"},{"id":"sr-4631891dc1571830f86e9935e8778e49","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52291","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2024-52291","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T00:59:43.945Z"},{"id":"sr-0cfc72eea847cd649662e1c1dcafebc0","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-2024-52291","publisher":"FIRST EPSS","observed_at":"2026-11-04T17:58:50.298Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.4.6"]},{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.12.5"]}],"null_published_at":"2026-11-07T14:01:58.757Z","source_updated_at":"2024-11-13T19:08:27.244Z","source_disclosed_at":"2024-11-13T14:12:36.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:42:30.969Z"},{"id":"NVI-00002430","kind":"vulnerability","title":"Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution","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-jrh5-vhr9-qh7q","CVE-2024-52291"],"plain_summary":"OSV carries this publisher advisory for craftcms/cms, craftcms/cms. 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 5.4.6 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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":"The original advisory lists fixed boundaries 4.12.5 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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-4631891dc1571830f86e9935e8778e49"],"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-06-17T08:06:57.110Z","value":"8.4 HIGH (3.1)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-4631891dc1571830f86e9935e8778e49"},{"kind":"CVSS","as_of":"2026-06-17T08:06:57.110Z","value":"7.2 HIGH (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-4631891dc1571830f86e9935e8778e49"}],"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-181cb602215d2a3792ab326dd36c700d","url":"https://github.com/advisories/GHSA-jrh5-vhr9-qh7q","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jrh5-vhr9-qh7q","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.969Z"},{"id":"sr-4631891dc1571830f86e9935e8778e49","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52291","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2024-52291","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T00:59:43.945Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.4.6"]},{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.12.5"]}],"null_published_at":"2026-11-01T14:34:07.640Z","source_updated_at":"2024-11-13T19:08:27.244Z","source_disclosed_at":"2024-11-13T14:12:36.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:30.969Z"},{"id":"NVI-00002430","kind":"vulnerability","title":"Local File System Validation Bypass Leading to File Overwrite, Sensitive File Access, and Potential Code Execution","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-jrh5-vhr9-qh7q","CVE-2024-52291"],"plain_summary":"OSV carries this publisher advisory for craftcms/cms, craftcms/cms. 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 5.4.6 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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":"The original advisory lists fixed boundaries 4.12.5 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"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-181cb602215d2a3792ab326dd36c700d","url":"https://github.com/advisories/GHSA-jrh5-vhr9-qh7q","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-jrh5-vhr9-qh7q","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:42:30.969Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.4.6"]},{"certainty":"source_listed","source_ids":["sr-181cb602215d2a3792ab326dd36c700d"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"### Summary\nA vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double `file://` scheme (e.g., `file://file:////`). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads.\n\nNote that this will only work if you have an authenticated administrator account with allowAdminChanges enabled.\n\nhttps://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production\n\n### Details\nThe issue lies in line 57 of `cms/src/helpers/FileHelper.php`, it only removes `file://` on the most left. It is trivial to bypass this sanitization by adding 2 `file://`, e.g. `file://file:////`.\n```php\n    public static function normalizePath($path, $ds = DIRECTORY_SEPARATOR): string\n    {\n        // Remove any file protocol wrappers\n        $path = StringHelper::removeLeft($path, 'file://');\n\n        // Is this a UNC network share p","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.12.5"]}],"null_published_at":"2026-10-31T22:00:33.882Z","source_updated_at":"2024-11-13T19:08:27.244Z","source_disclosed_at":"2024-11-13T14:12:36.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:30.969Z"}],"next_cursor":null,"snapshot_revision":"42594"}