{"id":"GHSA-h5gf-cmm8-cg7c","revision":"42634217bd7d4b5887e477792d2f61fd","records":[{"revision":"42634217bd7d4b5887e477792d2f61fd","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-h5gf-cmm8-cg7c","aliases":["CVE-2024-24765","GO-2024-2616"],"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","state":0,"publishedAt":"2024-03-06T15:22:07+00:00","modifiedAt":"2026-09-10T03:50:10.4942211+00:00","affected":[{"ecosystem":"Go","name":"github.com/IceWhaleTech/CasaOS-UserService","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.4.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-h5gf-cmm8-cg7c","https://nvd.nist.gov/vuln/detail/CVE-2024-24765","https://github.com/IceWhaleTech/CasaOS-UserService/commit/3f4558e23c0a9958f9a0e20aabc64aa8fd51840e","https://github.com/IceWhaleTech/CasaOS-UserService","https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7"],"sourceUrl":"https://github.com/advisories/GHSA-h5gf-cmm8-cg7c","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-h5gf-cmm8-cg7c","identifiers":["GHSA-h5gf-cmm8-cg7c","CVE-2024-24765","GO-2024-2616"]},"retained":false,"historicalAffected":[]}],"coverage":[]}