{"id":"GHSA-h5gf-cmm8-cg7c","summary":"CasaOS-UserService allows unauthorized access to any file ","details":"### Summary\n\nhttp://demo.casaos.io/v1/users/image?path=/var/lib/casaos/1/avatar.png\n\nOriginally it was to get the url of the user's avatar, but the path filtering was not strict, making it possible to get any file on the system.\n\n\n### Details\n\nConstruct paths to get any file.\n\nSuch as the CasaOS user database, and furthermore can obtain system root privileges.\n\n### PoC\n\nhttp://demo.casaos.io/v1/users/image?path=/var/lib/casaos/conf/../db/user.db\n\n### Impact\n\nv0.4.6 all previous versions\n","aliases":["CVE-2024-24765","GO-2024-2616"],"modified":"2026-09-10T03:50:10.494221102Z","published":"2024-03-06T15:22:07Z","database_specific":{"cwe_ids":["CWE-200"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-03-06T15:22:07Z","nvd_published_at":"2024-03-06T18:15:46Z"},"references":[{"type":"WEB","url":"https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-h5gf-cmm8-cg7c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24765"},{"type":"WEB","url":"https://github.com/IceWhaleTech/CasaOS-UserService/commit/3f4558e23c0a9958f9a0e20aabc64aa8fd51840e"},{"type":"PACKAGE","url":"https://github.com/IceWhaleTech/CasaOS-UserService"},{"type":"WEB","url":"https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7"}],"affected":[{"package":{"name":"github.com/IceWhaleTech/CasaOS-UserService","ecosystem":"Go","purl":"pkg:golang/github.com/IceWhaleTech/CasaOS-UserService"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-h5gf-cmm8-cg7c/GHSA-h5gf-cmm8-cg7c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}