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

High 7.5 Published Updated

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.

PackageAffectedFixed in
github.com/IceWhaleTech/CasaOS-UserService GoAll versions0.4.7
github.com/IceWhaleTech/CasaOS-UserService GoAll versions0.4.7
github.com/IceWhaleTech/CasaOS-UserService GoAll versions0.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.

Sources

Also known as GHSA-h5gf-cmm8-cg7c, GO-2024-2616.

Is CVE-2024-24765 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free