{"id":"CVE-2024-24765","aliases":["EUVD-2024-0932","GHSA-h5gf-cmm8-cg7c","GO-2024-2616"],"status":"published","title":"CasaOS-UserService allows unauthorized access to any file","description":"CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00971,"percentile":0.62166,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-200"],"published":"2024-03-06T15:22:07Z","modified":"2026-10-28T02:30:53Z","fixes":[{"ecosystem":"Go","package":"github.com/IceWhaleTech/CasaOS-UserService","fixed_in":["0.4.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/IceWhaleTech/CasaOS-UserService","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/IceWhaleTech/CasaOS-UserService","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/IceWhaleTech/CasaOS-UserService","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.7"}]}]}],"products":[{"vendor":"icewhale","product":"casaos"},{"vendor":"icewhaletech","product":"casaos-userservice"}],"references":[{"url":"https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-h5gf-cmm8-cg7c","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/IceWhaleTech/CasaOS-UserService/commit/3f4558e23c0a9958f9a0e20aabc64aa8fd51840e","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24765","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-h5gf-cmm8-cg7c"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24765.json","tags":["advisory"]},{"url":"https://github.com/IceWhaleTech/CasaOS-UserService","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-24765","title":"CasaOS-UserService allows unauthorized access to any file","description":"CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.","status":"published","published":"2024-03-06T17:31:56.841Z","modified":"2024-08-06T14:01:47.283Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:34:13.991836Z"}],"euvd":[{"id":"EUVD-2024-0932","description":"CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.","status":"published","published":"2024-03-06T17:31:56Z","modified":"2024-08-06T14:01:47Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-03T01:56:47.514809Z"}],"ghsa":[{"id":"GHSA-h5gf-cmm8-cg7c","title":"CasaOS-UserService allows unauthorized access to any file ","description":"### 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","status":"published","published":"2024-03-06T15:22:07Z","modified":"2024-03-12T15:14:23Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:37:40.81935Z"}],"nvd":[{"id":"CVE-2024-24765","description":"CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.","status":"published","published":"2024-03-06T18:15:46.807Z","modified":"2026-06-17T07:14:48.877Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T14:09:39.488031Z"}],"osv":[{"id":"CVE-2024-24765","title":"CasaOS-UserService allows unauthorized access to any file","description":"CasaOS-UserService provides user management functionalities to CasaOS. Prior to version 0.4.7, path filtering of the URL for user avatar image files was not strict, making it possible to get any file on the system. This could allow an unauthorized actor to access, for example, the CasaOS user database, and possibly obtain system root privileges. Version 0.4.7 fixes this issue.","status":"published","published":"2024-03-06T17:31:56.841Z","modified":"2026-10-28T02:30:53.941110108Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:44:38.897406Z"},{"id":"GHSA-h5gf-cmm8-cg7c","title":"CasaOS-UserService allows unauthorized access to any file ","description":"### 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","status":"published","published":"2024-03-06T15:22:07Z","modified":"2026-09-10T03:50:10.494221102Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-200"],"updated_at":"2026-11-02T15:46:48.546324Z"},{"id":"GO-2024-2616","title":"Path traversal and user privilege escalation in github.com/IceWhaleTech/CasaOS-UserService","description":"The UserService API contains a path traversal vulnerability that allows an attacker to obtain any file on the system, including the user database and system configuration. This can lead to privilege escalation and compromise of the system.","status":"published","published":"2024-03-11T20:09:34Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
