{"items":[{"id":"NVI-00003672","kind":"vulnerability","title":"Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`","revision":4,"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-2453-mppf-46cj","CVE-2026-25495"],"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.8.22 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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.16.18 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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-1eb6fbecf39891fde1d83037b191516e"],"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-17T10:24:44.243Z","value":"8.8 HIGH (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-acd145f6b1699c97b9135f25969f8cfa"},{"kind":"CVSS","as_of":"2026-06-17T10:24:44.243Z","value":"8.7 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-acd145f6b1699c97b9135f25969f8cfa"},{"kind":"EPSS","as_of":"2026-11-01T12:00:16.000Z","value":"0.565%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.46944. Missing scores are unknown.","source_id":"sr-1eb6fbecf39891fde1d83037b191516e"}],"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-46dd1e0bfe9e51ee7a091d7bb7afbeb1","url":"https://github.com/advisories/GHSA-2453-mppf-46cj","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2453-mppf-46cj","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-acd145f6b1699c97b9135f25969f8cfa","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25495","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-25495","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T01:40:47.597Z"},{"id":"sr-1eb6fbecf39891fde1d83037b191516e","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-25495","publisher":"FIRST EPSS","observed_at":"2026-11-01T14:28:32.271Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.8.22"]},{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.16.18"]}],"null_published_at":"2026-11-06T15:18:17.675Z","source_updated_at":"2026-07-08T07:27:37.160Z","source_disclosed_at":"2026-02-09T20:35:41.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:40.009Z"},{"id":"NVI-00003672","kind":"vulnerability","title":"Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2453-mppf-46cj","CVE-2026-25495"],"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.8.22 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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.16.18 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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-1eb6fbecf39891fde1d83037b191516e"],"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-11-01T12:00:16.000Z","value":"0.565%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.46944. Missing scores are unknown.","source_id":"sr-1eb6fbecf39891fde1d83037b191516e"}],"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-46dd1e0bfe9e51ee7a091d7bb7afbeb1","url":"https://github.com/advisories/GHSA-2453-mppf-46cj","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2453-mppf-46cj","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-1eb6fbecf39891fde1d83037b191516e","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-25495","publisher":"FIRST EPSS","observed_at":"2026-11-01T14:28:32.271Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.8.22"]},{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.16.18"]}],"null_published_at":"2026-11-04T18:04:03.133Z","source_updated_at":"2026-07-08T07:27:37.160Z","source_disclosed_at":"2026-02-09T20:35:41.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:40.009Z"},{"id":"NVI-00003672","kind":"vulnerability","title":"Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2453-mppf-46cj","CVE-2026-25495"],"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.8.22 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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.16.18 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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-82919dafc2adb0cd47481778fc3b4c7b"],"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.565%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.46949. Missing scores are unknown.","source_id":"sr-82919dafc2adb0cd47481778fc3b4c7b"}],"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-46dd1e0bfe9e51ee7a091d7bb7afbeb1","url":"https://github.com/advisories/GHSA-2453-mppf-46cj","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2453-mppf-46cj","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"},{"id":"sr-82919dafc2adb0cd47481778fc3b4c7b","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-25495","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.376Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.8.22"]},{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.16.18"]}],"null_published_at":"2026-11-03T02:33:09.090Z","source_updated_at":"2026-07-08T07:27:37.160Z","source_disclosed_at":"2026-02-09T20:35:41.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:40.009Z"},{"id":"NVI-00003672","kind":"vulnerability","title":"Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2453-mppf-46cj","CVE-2026-25495"],"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.8.22 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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.16.18 for craftcms/cms. Confirm the publisher’s latest guidance.","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"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-46dd1e0bfe9e51ee7a091d7bb7afbeb1","url":"https://github.com/advisories/GHSA-2453-mppf-46cj","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2453-mppf-46cj","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.009Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 5.0.0-RC1; fixed 5.8.22"]},{"certainty":"source_listed","source_ids":["sr-46dd1e0bfe9e51ee7a091d7bb7afbeb1"],"technology":"craftcms/cms","known_exclusions":[],"conditions_summary":"## Summary\n\nThe `element-indexes/get-elements` endpoint is vulnerable to **SQL Injection** via the `criteria[orderBy]` parameter (JSON body). The application fails to sanitize this input before using it in the database query.\nAn attacker with **Control Panel access** can inject arbitrary SQL into the `ORDER BY` clause by omitting `viewState[order]` (or setting both to the same payload).\n\n> [!NOTE]\n> The `ORDER BY` clause executes per row. `SLEEP(1)` on 10 rows = 10s delay.\n\n---\n## PoC\n### Required Permissions\n\n- Access to the Control Panel\n\n### Steps to reproduce\n1. Log in to the control panel\n2. Navigate to any element index (e.g., **Users** `/admin/users`, **Entries**, **Assets**, etc.)\n3. Intercept the `POST` request to `/index.php?p=admin/actions/element-indexes/get-elements`\n4. Modify the JSON body to the following:\n```json\n{\"context\":\"index\",\"elementType\":\"craft\\\\elements\\\\User\",\"source\":\"*\",\"baseCriteria\":{\"siteId\":1},\"criteria\":{\"limit\":100,\"orderBy\": \"(elements.id) DESC, (SELECT SLEEP(5)) --\"},\"viewState\":{\"static\":false}}\n```\n5. Send the request\n6. Observe a delay in the response (delay = rows × sleep time)\n\nAlternatively, you can use the following `curl` (bash syntax) co","public_affected_ranges":["ECOSYSTEM: introduced 4.0.0-RC1; fixed 4.16.18"]}],"null_published_at":"2026-10-31T22:12:48.026Z","source_updated_at":"2026-07-08T07:27:37.160Z","source_disclosed_at":"2026-02-09T20:35:41.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:41:40.009Z"}],"next_cursor":null,"snapshot_revision":"42594"}