{"id":"CVE-2024-39907","aliases":["CVE-2024-39907","GHSA-5grx-v727-qmq6","GO-2024-2990"],"related":[],"kind":"vulnerability","state":"published","title":"a sqlinjection in 1Panel","summary":"1Panel is a web-based linux server management control panel. There are many sql injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs. These sql injections have been resolved in version 1.10.12-tls. Users are advised to upgrade. There are no known workarounds for these issues.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"1Panel is a web-based linux server management control panel. There are many sql injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs. These sql injections have been resolved in version 1.10.12-tls. Users are advised to upgrade. There are no known workarounds for these issues.","source":"cvelist"},{"lang":"en","text":"### Summary\nThere are many sql injections in the project, and some of them are not well filtered, leading to arbitrary file writes, and ultimately leading to RCEs.\nThe proof is as follows\n\n### Details （one of them ）\n<img width=\"697\" alt=\"image\" src=\"https://github.com/1Panel-dev/1Panel/assets/129351704/895b7b43-9bc0-44b3-9c84-24c2dcc962da\">\n<img width=\"936\" alt=\"image\" src=\"https://github.com/1Panel-dev/1Panel/assets/129351704/1b8eb866-9865-4bef-a359-53335d709157\">\n<img width=\"684\" alt=\"image\" src=\"https://github.com/1Panel-dev/1Panel/assets/129351704/e865d6d0-7ecb-49f7-b4a2-f1b0bc407986\">\n\n\n### PoC\ncurl 'http://api:30455/api/v1/hosts/command/search' {\"page\":1,\"pageSize\":10,\"groupID\":0,\"orderBy\":\"**3**\",\"order\":\"ascending\",\"name\":\"a\"}\n<img width=\"664\" alt=\"image\" src=\"https://github.com/1Panel-dev/1Panel/assets/129351704/250d5a2a-cb32-44dc-9831-86dbc2f2b43f\">\nfor example as picture . just change orderby‘s num we can know How many columns does the data table have.Parameters require strict whitelist filtering\n\n### Impact\nRCE、data leak.","format":"markdown","source":"ghsa"},{"lang":"en","text":"1Panel has an SQL injection issue related to the orderBy clause in github.com/1Panel-dev/1Panel.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/1Panel-dev/1Panel before v1.10.12-tls.","format":"markdown","source":"go"},{"lang":"es","text":"1Panel es un panel de control de gestión de servidores Linux basado en web. Hay muchas inyecciones de SQL en el proyecto y algunas de ellas no están bien filtradas, lo que provoca escrituras de archivos arbitrarias y, en última instancia, conduce a RCE. Estas inyecciones de SQL se resolvieron en la versión 1.10.12-tls. Se recomienda a los usuarios que actualicen. No se conocen workarounds para estos problemas.","source":"nvd"}],"published":"2024-07-18T14:25:00.000Z","modified":"2026-09-10T03:50:16.337Z","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-89"],"affected":[{"ranges":[{"version":">= 1.10.9-tls, < 1.10.12-tls","status":"affected"}],"vendor":"1Panel-dev","product":"1Panel","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.10.12-lts","status":"affected"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.12-tls"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/1Panel-dev/1Panel","purl":"pkg:golang/github.com/1Panel-dev/1Panel","source":"go"},{"ranges":[{"status":"affected","introduced":"1.10.9-lts","fixed":"1.10.12-lts"}],"vendor":"fit2cloud","product":"1panel","cpe":"cpe:2.3:a:fit2cloud:1panel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/1Panel-dev/1Panel/security/advisories/GHSA-5grx-v727-qmq6","tags":["advisory","exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39907","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel/commit/ff549a47937c1314e6ee08453a1d2128242440cd","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/1Panel-dev/1Panel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-07-18T19:36:35.882Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39907","url":"https://www.cve.org/CVERecord?id=CVE-2024-39907","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.402Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5grx-v727-qmq6","url":"https://github.com/advisories/GHSA-5grx-v727-qmq6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.337Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2990","url":"https://pkg.go.dev/vuln/GO-2024-2990","licence":"CC-BY-4.0","modified":"2024-07-22T18:56:52.500Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39907","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39907","licence":"Public domain","modified":"2026-06-17T07:43:00.173Z"}],"updatedAt":"2026-11-25T22:58:43.041Z","epss":{"score":0.29183,"percentile":0.98205,"date":"2026-12-01T12:00:22.000Z"}}