{"id":"CVE-2025-66292","aliases":["CVE-2025-66292","GHSA-vh2x-fw87-4fxq","GO-2026-4318"],"related":[],"kind":"vulnerability","state":"published","title":"DPanel has an arbitrary file deletion vulnerability in /api/common/attach/delete interface","summary":"DPanel is an open source server management panel written in Go. Prior to 1.9.2, DPanel has an arbitrary file deletion vulnerability in the /api/common/attach/delete interface. Authenticated users can delete arbitrary files on the server via path traversal. When a user logs into the administrative backend, this interface can be used to delete files. The vulnerability lies in the Delete function within the app/common/http/controller/attach.go file. The path parameter submitted by the user is directly passed to storage.Local{}.GetSaveRealPath and subsequently to os.Remove without proper sanitization or checking for path traversal characters (../). And the helper function in common/service/storage/local.go uses filepath.Join, which resolves ../ but does not enforce a chroot/jail. This vulnerability is fixed in 1.9.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"DPanel is an open source server management panel written in Go. Prior to 1.9.2, DPanel has an arbitrary file deletion vulnerability in the /api/common/attach/delete interface. Authenticated users can delete arbitrary files on the server via path traversal. When a user logs into the administrative backend, this interface can be used to delete files. The vulnerability lies in the Delete function within the app/common/http/controller/attach.go file. The path parameter submitted by the user is directly passed to storage.Local{}.GetSaveRealPath and subsequently to os.Remove without proper sanitization or checking for path traversal characters (../). And the helper function in common/service/storage/local.go uses filepath.Join, which resolves ../ but does not enforce a chroot/jail. This vulnerability is fixed in 1.9.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nDPanel has an arbitrary file deletion vulnerability in the `/api/common/attach/delete` interface. Authenticated users can delete arbitrary files on the server via path traversal.\n\n### Details\nWhen a user logs into the administrative backend, this interface can be used to delete files. The vulnerability lies in the `Delete` function within the `app/common/http/controller/attach.go` file.\n\nThe `path` parameter submitted by the user is directly passed to `storage.Local{}.GetSaveRealPath` and subsequently to `os.Remove` without proper sanitization or checking for path traversal characters (`../`).\n\nThe vulnerable code snippet:\n<img width=\"487\" height=\"363\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b811de6f-1df1-49f3-af78-ea77bc420804\" />\n\n\nAnd the helper function in `common/service/storage/local.go` uses `filepath.Join`, which resolves `../` but does not enforce a chroot/jail:\n<img width=\"564\" height=\"66\" alt=\"image\" src=\"https://github.com/user-attachments/assets/84d5a4f7-9054-4e1d-aa6b-6b50c80ba277\" />\n\n### PoC\n1. Log in to the DPanel dashboard to obtain the `Authorization` token.\n2. Send a POST request to delete a file (e.g., `/tmp/1.txt` inside the container).\n\n**Request:**\n```http\nPOST /dpanel/api/common/attach/delete HTTP/1.1\nHost: target-ip:8807\nAuthorization: Bearer <YOUR_TOKEN>\nContent-Type: application/x-www-form-urlencoded\n\npath=../../../../../../../../tmp/1.txt\n```\n\n<img width=\"1600\" height=\"940\" alt=\"image\" src=\"https://github.com/user-attachments/assets/40e4d3cb-57f7-4a4e-adcc-a9503af762be\" />\n<img width=\"346\" height=\"191\" alt=\"image\" src=\"https://github.com/user-attachments/assets/756c0891-e61b-434c-9386-6e701bbb1a97\" />\n<img width=\"1310\" height=\"885\" alt=\"image\" src=\"https://github.com/user-attachments/assets/31c883c2-725e-4618-977c-35fe19adafb1\" />\n<img width=\"1009\" height=\"209\" alt=\"image\" src=\"https://github.com/user-attachments/assets/2641fdfb-6d73-4940-bd92-44d748e0e6b7\" />\n<img width=\"1265\" height=\"876\" alt=\"image\" src=\"https://github.com/user-attachments/assets/14c67ec8-ec37-4820-90be-a24f58819020\" />","format":"markdown","source":"ghsa"},{"lang":"en","text":"DPanel has an arbitrary file deletion vulnerability in /api/common/attach/delete interface in github.com/donknap/dpanel","format":"markdown","source":"go"},{"lang":"es","text":"DPanel es un panel de gestión de servidor de código abierto escrito en Go. Anterior a 1.9.2, DPanel tiene una vulnerabilidad de eliminación arbitraria de archivos en la interfaz /api/common/attach/delete. Los usuarios autenticados pueden eliminar archivos arbitrarios en el servidor mediante salto de ruta. Cuando un usuario inicia sesión en el backend administrativo, esta interfaz puede usarse para eliminar archivos. La vulnerabilidad reside en la función Delete dentro del archivo app/common/http/controller/attach.go. El parámetro de ruta enviado por el usuario se pasa directamente a storage.Local{}.GetSaveRealPath y, posteriormente, a os.Remove sin una sanitización adecuada o sin verificar caracteres de salto de ruta (../). Y la función auxiliar en common/service/storage/local.go utiliza filepath.Join, que resuelve ../ pero no impone un chroot/jail. Esta vulnerabilidad está corregida en 1.9.2.","source":"nvd"}],"published":"2026-01-15T16:19:55.507Z","modified":"2026-06-17T09:56:37.340Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"version":"< 1.9.2","status":"affected"}],"vendor":"donknap","product":"dpanel","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.2"}],"ecosystem":"Go","package":"github.com/donknap/dpanel","purl":"pkg:golang/github.com/donknap/dpanel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.9.2"}],"ecosystem":"Go","package":"github.com/donknap/dpanel","purl":"pkg:golang/github.com/donknap/dpanel","source":"go"},{"ranges":[{"status":"affected","fixed":"1.9.2"}],"vendor":"dpanel","product":"dpanel","cpe":"cpe:2.3:a:dpanel:dpanel:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/donknap/dpanel/security/advisories/GHSA-vh2x-fw87-4fxq","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/donknap/dpanel/commit/cbda0d90204e8212f2010774345c952e42069119","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/donknap/dpanel/releases/tag/v1.9.2","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66292","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/donknap/dpanel","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-01-15T16:44:41.979Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66292","url":"https://www.cve.org/CVERecord?id=CVE-2025-66292","licence":"CVE Terms of Use","modified":"2026-01-15T16:44:51.018Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vh2x-fw87-4fxq","url":"https://github.com/advisories/GHSA-vh2x-fw87-4fxq","licence":"CC-BY-4.0","modified":"2026-02-03T02:56:24.035Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4318","url":"https://pkg.go.dev/vuln/GO-2026-4318","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:52.265Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66292","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66292","licence":"Public domain","modified":"2026-06-17T09:56:37.340Z"}],"updatedAt":"2026-11-25T22:59:10.646Z","epss":{"score":0.00649,"percentile":0.52436,"date":"2026-12-01T12:00:22.000Z"}}