{"id":"CVE-2026-144417","aliases":["EUVD-2026-144557","GHSA-cxjx-4v5m-2vfx"],"status":"published","title":"JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql","description":"JimuReport is an open source reporting and business intelligence tool. Prior to 2.5.4, the dataset-preview endpoint POST /jmreport/qurestSql performs raw string substitution of request values into ${param} placeholders in SQL read from jimu_report_db.db_dyn_sql. The post-1.9.x authentication gate does not prevent this path because JimuReportTokenInterceptor.isSharingEffective authorizes an apiSelectId whenever its owning report has an active password-less share, even when the request carries no share token. The share-whitelisted POST /jmreport/getQueryInfo endpoint exposes the dataset identifiers needed to target the query. Crafted placeholder values can then produce boolean-based SQL injection against the report datasource and disclose arbitrary data available to that connection. This issue is fixed in 2.5.4.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve","others":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary","from":"nvd"}]},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2026-12-04T17:44:01Z","modified":"2026-12-04T22:08:42Z","fixes":[{"ecosystem":"Maven","package":"org.jeecgframework.jimureport:jimureport-spring-boot4-starter","fixed_in":["2.5.4"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.jeecgframework.jimureport:jimureport-spring-boot4-starter","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.4"}]}]}],"products":[{"vendor":"jeecgboot","product":"jeecgboot"}],"references":[{"url":"https://github.com/jeecgboot/JeecgBoot/security/advisories/GHSA-cxjx-4v5m-2vfx","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/jeecgboot/jimureport/releases/tag/v2.5.4","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144417","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cxjx-4v5m-2vfx"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144417.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144417","title":"JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql","description":"JimuReport is an open source reporting and business intelligence tool. Prior to 2.5.4, the dataset-preview endpoint POST /jmreport/qurestSql performs raw string substitution of request values into ${param} placeholders in SQL read from jimu_report_db.db_dyn_sql. The post-1.9.x authentication gate does not prevent this path because JimuReportTokenInterceptor.isSharingEffective authorizes an apiSelectId whenever its owning report has an active password-less share, even when the request carries no share token. The share-whitelisted POST /jmreport/getQueryInfo endpoint exposes the dataset identifiers needed to target the query. Crafted placeholder values can then produce boolean-based SQL injection against the report datasource and disclose arbitrary data available to that connection. This issue is fixed in 2.5.4.","status":"published","published":"2026-12-04T17:44:01.449Z","modified":"2026-12-04T17:44:01.449Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","level":"medium","assessor":"cna"}],"cwes":["CWE-89"],"updated_at":"2026-12-04T17:46:32.781712Z"}],"euvd":[{"id":"EUVD-2026-144557","description":"JimuReport is an open source reporting and business intelligence tool. Prior to 2.5.4, the dataset-preview endpoint POST /jmreport/qurestSql performs raw string substitution of request values into ${param} placeholders in SQL read from jimu_report_db.db_dyn_sql. The post-1.9.x authentication gate does not prevent this path because JimuReportTokenInterceptor.isSharingEffective authorizes an apiSelectId whenever its owning report has an active password-less share, even when the request carries no share token. The share-whitelisted POST /jmreport/getQueryInfo endpoint exposes the dataset identifiers needed to target the query. Crafted placeholder values can then produce boolean-based SQL injection against the report datasource and disclose arbitrary data available to that connection. This issue is fixed in 2.5.4.","status":"published","published":"2026-12-04T17:44:01Z","modified":"2026-12-04T17:44:01Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","level":"medium"}],"updated_at":"2026-12-04T19:42:05.09894Z"}],"ghsa":[{"id":"GHSA-cxjx-4v5m-2vfx","title":"JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql","description":"### Summary\n\nThe dataset-preview endpoint `POST /jmreport/qurestSql` substitutes request parameters into the dataset SQL (`jimu_report_db.db_dyn_sql`, e.g. `select * from rep_demo_order_product where order_fk_id = '${orderId}'`) using **raw string replacement — no binding, no escaping — in current jimureport 2.5.2** (latest release, 2026-09-08). This is the same defective substitution class as CVE-2023-1454.\n\nSince the 1.9.x hardening the endpoint is no longer reachable by anonymous callers directly: `JimuReportTokenInterceptor` rejects requests without a valid token. However the interceptor's share logic (`isSharingEffective`) resolves the report behind the requested `apiSelectId` (`jimu_report_db → jimu_report_id`) and grants access when **that report has any active share without a share token** — i.e. an ordinary public dashboard link. Public share links are distributed to end users by design, so on any deployment that has shared a report without password protection (the common case), an unauthenticated attacker can:\n\n1. obtain the report's dataset configuration anonymously through the share-whitelisted `POST /jmreport/getQueryInfo` (dataset ids / `apiSelectId`s are embedded in the report JSON),\n2. reach `qurestSql` in the share context,\n3. inject through the `${param}` placeholders.\n\n### Proof of Concept\n\nReproduced on a default local install (jimureport-spring-boot4-starter 2.5.2 + jeecg-boot 3.9.5 HEAD). Preparation: one active password-less share row for a report that owns a parameterized SQL dataset (`... where order_fk_id = '${orderId}'`). Then, **with no token at all**:\n\n```\nPOST /jeecg-boot/jmreport/qurestSql\n{\"apiSelectId\":\"\u003cdatasetId\u003e\",\"orderId\":\"1001\"}\n→ 200, 19 rows                       (baseline, value matches nothing real)\n\nPOST /jeecg-boot/jmreport/qurestSql\n{\"apiSelectId\":\"\u003cdatasetId\u003e\",\"orderId\":\"X' or '1'='1\"}\n→ 200, 37 rows                       (entire table — injection)\n```\n\nBoolean-blind extraction of `sys_user` credentials (row-count oracle; `select`/`union` are not on the jimureport keyword blacklist, and no error-based technique is needed):\n\n```\n{\"apiSelectId\":\"...\",\"orderId\":\"X' or (select substring(password,1,1) from sys_user where username='admin')='c\"}\n→ 37 rows   (TRUE: admin's password hash starts with 'c'; any other guess → 0 rows)\n```\n\nIterating `substring(password,n,1)` extracts the full hash offline through a clean row-count oracle.\n\n### Notes on the security filter\n\nThe jimureport-side `SqlInjectionUtil` keyword list does not contain `select`, `union`, `and`, `or`, `substring` etc., and the checks that do exist are only invoked on specific code paths; the boolean technique above passes untouched. Error-based functions (`extractvalue`, `updatexml`) are filtered, which is why the row-count oracle is used instead.\n\n### Impact\n\n- On any deployment with at least one active password-less share: **unauthenticated boolean-blind SQL injection into the report datasource**, enabling extraction of arbitrary data from that connection (on default installs the shared datasource is the main application database, so `sys_user` and `sys_data_source` are reachable, as demonstrated).\n- Share links are routinely created without tokens for public dashboards, so the precondition is realistic and permanent, not a corner case.\n\n### Suggested remediation\n\n1. Bind dataset parameters via PreparedStatement placeholders instead of string substitution in `qurestechSql` (and the same substitution used by `/jmreport/show` rendering);\n2. Require share tokens to be validated against the *specific dataset/`apiSelectId`* being queried (the current check only binds the share to the report, then grants all share-whitelisted endpoints for that report);\n3. Add `and`/`or`/`substring`/`select`/`union` to the jimureport blacklist as defense-in-depth, or adopt the grammar-whitelist approach used in the main application.\n\n### Related\n\n- CVE-2023-1454 — same endpoint, historically exploited pre-hardening; the authentication gate added afterwards does not address the underlying raw substitution, which persists in 2.5.2.\n- My other private report on `/drag/onlDragDatasetHead/getTotalData` documents the sibling weakness in the drag module (validator/template key mismatch) — the shared root pattern is \"template consumes keys that validation never sees\".\n\n### Notes\n\n- jimureport 2.5.2 is the latest release (Maven, 2026-09-08) and jeecg-boot 3.9.5 HEAD at reporting time; no public report of this share-context vector found as of 2026-09-16.\n- All testing was performed against a locally built instance; no third-party systems were touched; no public disclosure.","status":"published","published":"2026-12-04T22:08:39Z","modified":"2026-12-04T22:08:42Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","level":"medium"}],"cwes":["CWE-89"],"updated_at":"2026-12-04T22:29:34.61237Z"}],"nvd":[{"id":"CVE-2026-144417","description":"JimuReport is an open source reporting and business intelligence tool. Prior to 2.5.4, the dataset-preview endpoint POST /jmreport/qurestSql performs raw string substitution of request values into ${param} placeholders in SQL read from jimu_report_db.db_dyn_sql. The post-1.9.x authentication gate does not prevent this path because JimuReportTokenInterceptor.isSharingEffective authorizes an apiSelectId whenever its owning report has an active password-less share, even when the request carries no share token. The share-whitelisted POST /jmreport/getQueryInfo endpoint exposes the dataset identifiers needed to target the query. Crafted placeholder values can then produce boolean-based SQL injection against the report datasource and disclose arbitrary data available to that connection. This issue is fixed in 2.5.4.","status":"published","published":"2026-12-04T18:17:30.107Z","modified":"2026-12-04T18:17:30.107Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"}],"cwes":["CWE-89"],"updated_at":"2026-12-04T18:27:05.658162Z"}],"osv":[{"id":"CVE-2026-144417","title":"JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql","description":"JimuReport is an open source reporting and business intelligence tool. Prior to 2.5.4, the dataset-preview endpoint POST /jmreport/qurestSql performs raw string substitution of request values into ${param} placeholders in SQL read from jimu_report_db.db_dyn_sql. The post-1.9.x authentication gate does not prevent this path because JimuReportTokenInterceptor.isSharingEffective authorizes an apiSelectId whenever its owning report has an active password-less share, even when the request carries no share token. The share-whitelisted POST /jmreport/getQueryInfo endpoint exposes the dataset identifiers needed to target the query. Crafted placeholder values can then produce boolean-based SQL injection against the report datasource and disclose arbitrary data available to that connection. This issue is fixed in 2.5.4.","status":"published","published":"2026-12-04T17:44:01.449Z","modified":"2026-12-04T19:00:19.519181617Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","level":"medium"}],"cwes":["CWE-89"],"updated_at":"2026-12-04T19:23:17.075225Z"}]}}
