CVE-2024-24765 CasaOS-UserService allows unauthorized access to any file
An attacker can exploit path traversal in CasaOS-UserService to read arbitrary system files, potentially leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-24765?
CVE-2024-24765 is a high-severity path traversal vulnerability in IceWhaleTech CasaOS-UserService, published on 6 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-200
Which versions are affected by CVE-2024-24765?
3 open source packages ship an affected version, including github.com/IceWhaleTech/CasaOS-UserService. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/IceWhaleTech/CasaOS-UserService Go | All versions | 0.4.7 |
github.com/IceWhaleTech/CasaOS-UserService Go | All versions | 0.4.7 |
github.com/IceWhaleTech/CasaOS-UserService Go | All versions | 0.4.7 |
Products include Icewhale Casaos.
How do I fix CVE-2024-24765?
Upgrade github.com/IceWhaleTech/CasaOS-UserService to 0.4.7 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-24765 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24765 exists.
Other vulnerabilities in IceWhaleTech CasaOS-UserService
- CVE-2023-37265 Incorrect identification of source IP addresses in CasaOS
- CVE-2023-37266 Weak json web token (JWT) secrets in CasaOS
- CVE-2022-24193 Command Injection in CasaOS
- CVE-2024-24767 CasaOS Improper Restriction of Excessive Authentication Attempts vulnerability
- CVE-2023-37469 CasaOS Command Injection vulnerability
Sources
Also known as GHSA-h5gf-cmm8-cg7c, GO-2024-2616.