CVE-2023-37265 Incorrect identification of source IP addresses in CasaOS
Unauthenticated attackers can execute arbitrary commands as root due to incorrect IP address verification in CasaOS.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-37265?
CVE-2023-37265 is a critical authentication bypass vulnerability in IceWhaleTech CasaOS-Gateway, published on 17 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
CasaOS is an open-source Personal Cloud system. Due to a lack of IP address verification an unauthenticated attackers can execute arbitrary commands as `root` on CasaOS instances. The problem was addressed by improving the detection of client IP addresses in `391dd7f`. This patch is part of CasaOS 0.4.4. Users should upgrade to CasaOS 0.4.4. If they can't, they should temporarily restrict access to CasaOS to untrusted users, for instance by not exposing it publicly.
Weakness: CWE-306
Which versions are affected by CVE-2023-37265?
3 open source packages ship an affected version, including github.com/IceWhaleTech/CasaOS-Gateway. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/IceWhaleTech/CasaOS-Gateway Go | All versions | 0.4.4 |
github.com/IceWhaleTech/CasaOS-Gateway Go | All versions | 0.4.4 |
github.com/IceWhaleTech/CasaOS-Gateway Go | All versions | 0.4.4 |
Products include Icewhale Casaos, Icewhale Casaos-Gateway.
How do I fix CVE-2023-37265?
Upgrade github.com/IceWhaleTech/CasaOS-Gateway to 0.4.4 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2023-37265 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37265 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in IceWhaleTech CasaOS-Gateway
- 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
- CVE-2024-24765 CasaOS-UserService allows unauthorized access to any file
Sources
Also known as GHSA-vjh7-5r6x-xh6g, GO-2023-1932.